
C
C Struct
C struct SAMPLE for clangd / highlighter fixtures.
- File
- C · C
- Use case
- Syntax highlighting / Code parsing
The source-code category is a syntax-highlighting, linting, and parser fixture set: idiomatic hello-worlds plus realistic snippets across many languages, all original and documented. HTML, CSS, JavaScript, and TypeScript (shipped as .mts to sidestep the MPEG-TS .ts collision) cover the web front-end; Python, Ruby, PHP, and Shell the scripting side; Java, Kotlin, Swift, Go, and Rust the application languages; C and C++ the systems layer; SQL the database; and Wave G adds Julia, Haskell, Lua, R, Clojure, Fortran, and Nim. Intentionally invalid lint fixtures are clearly labelled. A tiny multi-language monorepo ZIP accompanies the set for unpack-then-lint pipelines. Everything text-previewable opens in the in-browser editor.
Filter source code on Browse · 125 files · 31 subcategories
Results start with a representative from each related test family. Use a card’s variant menu or the filters below to reach a specific format, profile, or failure case; every sample retains its own detail page and download.
Hello-world and realistic snippets across many languages, including C#, Dart, Elixir, Zig, Scala, Julia, Haskell, Lua, R, Clojure, Fortran, and Nim, plus intentionally invalid lint fixtures clearly labelled as such.
Yes. Every text-previewable code format is editable and has an editor quick-start preset.
Wave G includes a tiny multi-language SAMPLE monorepo ZIP for unpack-then-lint pipelines.
Start with one example from each use-case group, then continue through its other test families. Choose a use case, search, or filter to find a specific profile; a card’s variant menu contains its related samples.
115 test families · 125 available files · Page 1 of 7

C
C struct SAMPLE for clangd / highlighter fixtures.

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

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

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

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.

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

Elixir
Elixir GenServer stub SAMPLE for Beam tooling.

Fortran
Minimal Fortran 90 hello for gfortran / highlighter fixtures.

Go
Go generics helper for gopls / highlighter fixtures.

Haskell
Haskell foldl snippet for AST and highlighter tests.

HTML
A minimal, valid HTML5 document (doctype, head, and a single heading) for testing HTML parsers, highlighters, and validators against the simplest well-formed page.

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

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

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

Julia
Julia broadcast operators (.^ .+ ) for highlighter and parser edge cases.

Kotlin
Kotlin data class SAMPLE for Kotlin language-server tests.

Lua
Tiny Lua coroutine yield loop for language tooling.

Monorepo
Tiny multi-language SAMPLE monorepo ZIP (web/api/util/scripts) for unpack-then-lint and monorepo tooling.
The use-case group filter replaces the long list of category sections.