Skip to main content

Intro

Lumis is a syntax highlighter built on Tree-sitter and Neovim themes.

It keeps the same core workflow across runtimes:

  1. pick a language
  2. pick a theme
  3. pick a formatter
  4. 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


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.