Built-in inline tokenizers for common languages: Elixir, JSON, Markdown.
These are kept for backward compatibility and fast-path CLI rendering.
For full language support (Python, Rust, Go, etc.) use
Alaja.Syntax.register_language/2 with Alaja.Syntax.Engine.
Summary
Functions
ANSI 16-colour palette for the buffer pipeline — maps atoms to
{r, g, b} tuples. Bright variants use the half-bright split.
Unknown atoms fall back to white.
Maps a token type atom to an ANSI color name (string).
Maps a token type atom to an atom colour name (for buffer pipeline).
Tokenizes Elixir source code.
Tokenizes JSON source code.
Tokenizes Markdown source code.
Functions
@spec ansi_16_colors() :: %{required(atom()) => {0..255, 0..255, 0..255}}
ANSI 16-colour palette for the buffer pipeline — maps atoms to
{r, g, b} tuples. Bright variants use the half-bright split.
Unknown atoms fall back to white.
Maps a token type atom to an ANSI color name (string).
Maps a token type atom to an atom colour name (for buffer pipeline).
Tokenizes Elixir source code.
Tokenizes JSON source code.
Tokenizes Markdown source code.