
C
C Struct
C struct SAMPLE for clangd / highlighter fixtures.
- File
- C · C
- Use case
- Syntax highlighting / Code parsing
Idiomatic hello-world programs and realistic snippets across sixteen languages, exercising comments, string escapes, interpolation, numeric literals, and language keywords, for testing syntax highlighters, editor themes, and tree-sitter grammars.
Each card starts with one representative test file. Choose a use case, search, or filter to find a specific profile; a card’s variant menu contains its related samples.
117 test families · 121 available files · Page 1 of 7

C
C struct SAMPLE for clangd / highlighter fixtures.

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

C
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.

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

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

Csharp
C# LINQ chain SAMPLE for Roslyn fixtures.

C++
C++17 optional SAMPLE for clangd fixtures.

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

C++
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.

Clojure
Minimal Clojure hello for CIDER / clj-kondo fixtures.

Clojure
Clojure reduce utility: realistic snippet.

Clojure
Clojure thread-first macro for highlighter tests.

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

Css
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.

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

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

Dart
Dart async Future SAMPLE for analysis-server tests.

Dart
Minimal Dart hello-world for Flutter/Dart IDE and highlight tests.