💾 Archived View for bbs.geminispace.org › u › gritty › 18751 captured on 2024-12-17 at 15:27:33. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-08-31)
-=-=-=-=-=-=-
Re: "Syntax Highlighting in Code Blocks"
this would go well with a pastebin-style capsule that I think gemini could use
Jul 21 · 5 months ago
Syntax Highlighting in Code Blocks — /u/cthulhu/image/324.png Syntax Highlighting (png, ~82 Kb) DISCLAIMER. Do not do this! It's impossible to copy-paste highlighted text, tons of the ANSI-escapes will be on your conscience! We'll use Lagrange MIME-hooks and Python script with "rich" and "pygments" modules. [gemini link] Lagrange (git.skyjake.fi) Hooks are configured using the file "mimehooks.txt" in Lagrange's config directory. Each hook has a regexp that is matched against the response MIME...