From c9fddb1f4a326a6d7fe35985fa6f8a81e3c4668a Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Sat, 21 Jun 2025 16:16:15 -0700 Subject: [PATCH] Update blurb and title --- ... => 2025-06-20-add-a-pygments-lexer-to-chroma.md} | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) rename posts/{2025-06-20-chroma.md => 2025-06-20-add-a-pygments-lexer-to-chroma.md} (93%) diff --git a/posts/2025-06-20-chroma.md b/posts/2025-06-20-add-a-pygments-lexer-to-chroma.md similarity index 93% rename from posts/2025-06-20-chroma.md rename to posts/2025-06-20-add-a-pygments-lexer-to-chroma.md index 1cd581b..8072e81 100644 --- a/posts/2025-06-20-chroma.md +++ b/posts/2025-06-20-add-a-pygments-lexer-to-chroma.md @@ -1,5 +1,14 @@ { - blurb: "Add a new lexer to Chroma" + title: "Add a Pygments Lexer to Chroma" + blurb: "[Pygments][4] and [Chroma][5] are syntax highlighting libraries + written in [Python][6] and [Go][7], respecitvely. Chroma is missing a + language we like, which Pygments already supports. We add support for our + language to Chroma by converting the existing lexer from Pygments. + + [4]: https://github.com/pygments/pygments + [5]: https://github.com/alecthomas/chroma + [6]: https://www.python.org/ + [7]: https://go.dev/" } $index @@ -9,6 +18,7 @@ $index syntax highlighter, [Pygments](https://github.com/pygments/pygments), and includes a [script](https://github.com/alecthomas/chroma/blob/484750a96fc430f49d6b69cc2a2a8b7a67691446/_tools/pygments2chroma_xml.py) to help convert Pygments lexers for use with Chroma. We describe how below. + ## Setup We're going to be using the `python` and `golang` [Docker][4] images. Docker