
C Struct
C struct SAMPLE for clangd / highlighter fixtures.
- File
- C · C
- Use case
- Syntax highlightingCode parsing+1
Find files, editable templates and browser test targets by what you need to make or test. The directory below is cut by format; the two collections under it cut the same library by subject and by workflow.
Page 1 of 6; 24 results per page.

C struct SAMPLE for clangd / highlighter fixtures.

The classic hello-world in C (an include, main, and printf) for testing highlighters, C compilers, and parsers against the canonical first program.

A realistic C program: a singly linked list with a typedef struct, malloc/free memory management, pointer walking, and error handling, for testing highlighters, compilers, and static analysers.

A small C# iterator Fibonacci utility: realistic snippet for language tooling.

Idiomatic C# hello-world for syntax highlighters and Roslyn-style parsers.

C# LINQ chain SAMPLE for Roslyn fixtures.

C++17 optional SAMPLE for clangd fixtures.

The classic hello-world in C++: iostream and std::cout, for testing highlighters, C++ compilers, and parsers.

A realistic C++ snippet with a class template, STL algorithms (max_element, accumulate), std::move, and range handling, for testing highlighters, g++/clang++, and parsers against real templates.

Minimal Clojure hello for CIDER / clj-kondo fixtures.

Clojure reduce utility: realistic snippet.

Clojure thread-first macro for highlighter tests.

Intentionally invalid Clojure (unbalanced forms) for clj-kondo-style tests.

Tiny SAMPLE tooling config snippet (docker-compose-snippet) for editor/linter harnesses.

Tiny SAMPLE tooling config snippet (editorconfig-snippet) for editor/linter harnesses.

Tiny SAMPLE tooling config snippet (eslint-flat-snippet) for editor/linter harnesses.

Tiny SAMPLE tooling config snippet (github-actions-snippet) for editor/linter harnesses.

Tiny SAMPLE tooling config snippet (prettier-config) for editor/linter harnesses.

Tiny SAMPLE tooling config snippet (tsconfig-strict-snippet) for editor/linter harnesses.

Intentionally lint-bait SAMPLE csharp snippet (empty-catch-invalid) for rule-engine tests.

A realistic component stylesheet using custom properties, flexbox, a fluid clamp() font size, color-mix(), a keyframe animation, and a media query, for testing CSS parsers, linters (stylelint), and highlighters.

A minimal stylesheet that centres a heading with grid: the simplest useful CSS file for testing highlighters, CSS parsers, and minifiers.

Tiny Dart class with a counter: fixture for Dart analysis servers.

Dart async Future SAMPLE for analysis-server tests.