Publish post 'Add a Pygments Lexer to Chroma' #2

Merged
ccm merged 6 commits from ccm-chroma-post into trunk 2025-06-22 16:56:46 +00:00
Showing only changes of commit a763406701 - Show all commits

View File

@ -1,11 +1,13 @@
{ {
blurb: "Add a new lexer to chroma" blurb: "Add a new lexer to chroma"
} }
$index
## Intro ## Intro
Chroma doesn't have a MoonScript lexer. It does has a Python script that can Gitea uses Chroma for syntax highlighting. Chroma doesn't have a MoonScript
convert Pygments lexers, though, and Pygments has a MoonScript lexer. lexer. It does has a Python script that can convert Pygments lexers, though,
and Pygments has a MoonScript lexer.
## Run MoonScript lexer generation script ## Run MoonScript lexer generation script
@ -180,4 +182,3 @@ lexer markup output.
... ...
``` ```
If you wanted to save