Intro
Lumis is a syntax highlighter built on Tree-sitter and Neovim themes.
It keeps the same core workflow across runtimes:
- pick a language
- pick a theme
- pick a formatter
- render HTML or terminal output
Why Lumis
- Tree-sitter parsing instead of regex-based tokenization
- 110+ languages with nested language support
- 250+ themes sourced from Neovim colorschemes
- 5 formatters: HTML Inline, HTML Linked, HTML Multi-Themes, Terminal, and BBCode Scoped
- handles incomplete code (useful for streaming)
- one API across 6 runtimes: CLI, Rust, Elixir, JavaScript, Browsers / CDN, and Java
How it works
- Tree-sitter parses code into syntax trees
- Neovim colorschemes supply the color data
- highlight queries come from
nvim-treesitter
Every code block on this site is highlighted by Lumis itself, using the multi-themes formatter with github_light and github_dark themes for automatic light/dark mode switching.