
C — Hello World
The classic hello-world in C — an include, main, and printf — for testing highlighters, C compilers, and parsers against the canonical first program.
- File
- C · C
- Use case
- Syntax highlightingCode parsing+1
Search files, editable visual templates, and live browser targets from one registry-backed directory. Filtered query views stay crawlable for links but are deliberately noindex; the stable taxonomy pages below remain the canonical search surfaces.
Page 1 of 6; 24 results per page.

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.

C struct SAMPLE for clangd / highlighter fixtures.

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.

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.

C++17 optional SAMPLE for clangd fixtures.

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

Minimal Clojure hello for CIDER / clj-kondo fixtures.

Clojure reduce utility — realistic snippet.

Clojure thread-first macro for highlighter 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.
We use Google Analytics and show ads via Adsterra. Non-essential cookies and ad scripts run only after you allow the matching categories. See our cookie policy.