💾 Archived View for bbs.geminispace.org › u › gritty › 18751 captured on 2024-08-31 at 15:53:51. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-08-19)

➡️ Next capture (2024-12-17)

🚧 View Differences

-=-=-=-=-=-=-

Comment by 🍀 gritty

Re: "Syntax Highlighting in Code Blocks"

In: s/Lagrange

this would go well with a pastebin-style capsule that I think gemini could use

🍀 gritty

Jul 21 · 6 weeks ago

Original Post

🌒 s/Lagrange

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...

/u/cthulhu/image/324.png

💬 cthulhu · 2 comments · 3 likes · Jul 21 · 6 weeks ago