UNPKG

@tanstack/highlight

Version:

Tiny class-based syntax highlighting for documentation.

99 lines (93 loc) • 6.4 kB
# Shipped Languages Import only the definitions the application registers. | Language | Export | Direct import | Aliases | | --- | --- | --- | --- | | Ada | `ada` | `@tanstack/highlight/languages/ada` | None | | Apache | `apache` | `@tanstack/highlight/languages/apache` | - | | AppleScript | `applescript` | `@tanstack/highlight/languages/applescript` | `osascript` | | AWK | `awk` | `@tanstack/highlight/languages/awk` | None | | Batch | `batch` | `@tanstack/highlight/languages/batch` | `bat`, `dos` | | C | `c` | `@tanstack/highlight/languages/c` | `h` | | C# | `csharp` | `@tanstack/highlight/languages/csharp` | `c#`, `cs` | | C++ | `cpp` | `@tanstack/highlight/languages/cpp` | `c++`, `cc`, `cxx`, `hpp`, `hxx` | | Clojure | `clojure` | `@tanstack/highlight/languages/clojure` | `clj`, `edn` | | CMake | `cmake` | `@tanstack/highlight/languages/cmake` | - | | CoffeeScript | `coffeescript` | `@tanstack/highlight/languages/coffeescript` | `coffee`, `cson` | | Common Lisp | `lisp` | `@tanstack/highlight/languages/lisp` | `commonlisp`, `cl` | | Crystal | `crystal` | `@tanstack/highlight/languages/crystal` | `cr` | | CSS | `css` | `@tanstack/highlight/languages/css` | - | | D | `d` | `@tanstack/highlight/languages/d` | None | | Dart | `dart` | `@tanstack/highlight/languages/dart` | - | | Diff | `diff` | `@tanstack/highlight/languages/diff` | `patch` | | Dockerfile | `dockerfile` | `@tanstack/highlight/languages/dockerfile` | `docker` | | EJS | `ejs` | `@tanstack/highlight/languages/ejs` | - | | Elixir | `elixir` | `@tanstack/highlight/languages/elixir` | `ex`, `exs` | | Elm | `elm` | `@tanstack/highlight/languages/elm` | None | | Env | `env` | `@tanstack/highlight/languages/env` | `dotenv` | | Erlang | `erlang` | `@tanstack/highlight/languages/erlang` | `erl` | | F# | `fsharp` | `@tanstack/highlight/languages/fsharp` | `fs`, `f#`, `fsx` | | Fortran | `fortran` | `@tanstack/highlight/languages/fortran` | `f90`, `f95`, `f03`, `f08` | | GLSL | `glsl` | `@tanstack/highlight/languages/glsl` | None | | Go | `go` | `@tanstack/highlight/languages/go` | `golang` | | GraphQL | `graphql` | `@tanstack/highlight/languages/graphql` | `gql` | | Groovy | `groovy` | `@tanstack/highlight/languages/groovy` | None | | Haskell | `haskell` | `@tanstack/highlight/languages/haskell` | `hs` | | HTML | `html` | `@tanstack/highlight/languages/html` | `htm`, `xml`, `angular-html` | | HTTP | `http` | `@tanstack/highlight/languages/http` | - | | INI | `ini` | `@tanstack/highlight/languages/ini` | `cfg` | | Java properties | `properties` | `@tanstack/highlight/languages/properties` | `java-properties` | | Java | `java` | `@tanstack/highlight/languages/java` | - | | JavaScript | `js` | `@tanstack/highlight/languages/js` | `javascript`, `mjs`, `cjs`, `js-vue` | | JSON | `json` | `@tanstack/highlight/languages/json` | `jsonc`, `json5` | | JSX | `jsx` | `@tanstack/highlight/languages/jsx` | - | | Julia | `julia` | `@tanstack/highlight/languages/julia` | `jl` | | Kotlin | `kotlin` | `@tanstack/highlight/languages/kotlin` | `kt`, `kts` | | LaTeX | `latex` | `@tanstack/highlight/languages/latex` | `tex` | | Less | `less` | `@tanstack/highlight/languages/less` | None | | Lua | `lua` | `@tanstack/highlight/languages/lua` | - | | Makefile | `makefile` | `@tanstack/highlight/languages/makefile` | `make`, `mk`, `mak` | | Markdown | `markdown` | `@tanstack/highlight/languages/markdown` | `md` | | MATLAB | `matlab` | `@tanstack/highlight/languages/matlab` | None | | Mermaid | `mermaid` | `@tanstack/highlight/languages/mermaid` | - | | Nginx | `nginx` | `@tanstack/highlight/languages/nginx` | - | | Nix | `nix` | `@tanstack/highlight/languages/nix` | `nixos` | | Objective-C | `objectivec` | `@tanstack/highlight/languages/objectivec` | `objc`, `obj-c`, `objective-c`, `mm` | | OCaml | `ocaml` | `@tanstack/highlight/languages/ocaml` | `ml` | | Pascal / Delphi | `pascal` | `@tanstack/highlight/languages/pascal` | `pas`, `delphi`, `dpr` | | Perl | `perl` | `@tanstack/highlight/languages/perl` | `pl` | | PHP | `php` | `@tanstack/highlight/languages/php` | - | | Plaintext | `plaintext` | `@tanstack/highlight/languages/plaintext` | `text`, `txt`, `-->` | | PowerShell | `powershell` | `@tanstack/highlight/languages/powershell` | `pwsh`, `ps1`, `ps` | | Protocol Buffers | `protobuf` | `@tanstack/highlight/languages/protobuf` | `proto` | | Python | `python` | `@tanstack/highlight/languages/python` | `py` | | R | `r` | `@tanstack/highlight/languages/r` | None | | Ruby | `ruby` | `@tanstack/highlight/languages/ruby` | `rb` | | Rust | `rust` | `@tanstack/highlight/languages/rust` | `rs` | | Scala | `scala` | `@tanstack/highlight/languages/scala` | `sc` | | Scheme | `scheme` | `@tanstack/highlight/languages/scheme` | `scm`, `racket` | | SCSS | `scss` | `@tanstack/highlight/languages/scss` | None | | Shell | `shell` | `@tanstack/highlight/languages/shell` | `bash`, `sh`, `zsh`, `cmd`, `console` | | SQL | `sql` | `@tanstack/highlight/languages/sql` | - | | Svelte | `svelte` | `@tanstack/highlight/languages/svelte` | - | | Swift | `swift` | `@tanstack/highlight/languages/swift` | - | | TOML | `toml` | `@tanstack/highlight/languages/toml` | - | | TSRX | `tsrx` | `@tanstack/highlight/languages/tsrx` | `octane` | | TSX | `tsx` | `@tanstack/highlight/languages/tsx` | - | | TypeScript | `ts` | `@tanstack/highlight/languages/ts` | `typescript`, `angular-ts` | | Verilog / SystemVerilog | `verilog` | `@tanstack/highlight/languages/verilog` | `v`, `sv`, `svh` | | VHDL | `vhdl` | `@tanstack/highlight/languages/vhdl` | None | | Visual Basic .NET | `vbnet` | `@tanstack/highlight/languages/vbnet` | `vb` | | Vue | `vue` | `@tanstack/highlight/languages/vue` | - | | WebAssembly text | `wat` | `@tanstack/highlight/languages/wat` | `wasm` | | x86 assembly | `x86asm` | `@tanstack/highlight/languages/x86asm` | `asm`, `nasm` | | YAML | `yaml` | `@tanstack/highlight/languages/yaml` | `yml` | ## Embedded Registration | Outer language | Optional delegated registrations | | --- | --- | | HTML | `js`, `ts`, `css` | | Vue | `js`, `ts`, `css` | | Svelte | `js`, `ts`, `css` | | EJS | `js` | | PHP | `html` (and its optional script/style languages) | | Markdown | The language named by each fence | The aggregate `@tanstack/highlight/languages` entry can tree-shake in a compatible bundler. Direct subpaths make isolation explicit and are the default for size-sensitive clients.