💾 Archived View for bbs.geminispace.org › u › skyjake › 18743 captured on 2024-12-17 at 15:27:32. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-08-31)
-=-=-=-=-=-=-
Re: "Syntax Highlighting in Code Blocks"
When it comes to the copy-paste issue, it would be pretty trivial for me to strip all ANSI formatting when copying text to the clipboard. Maybe I’ll make that a context menu action or something.
Another improvement would be to allow configuring filter hooks more granularly, for example only for preformatted blocks, leaving the rest of the page source unmodified.
Jul 21 · 5 months ago
this would go well with a pastebin-style capsule that I think gemini could use
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...