Comment by ๐Ÿš€ stack

=> Re: "I have old dream to implement code syntax highlight (for..." | In: s/rust_software

Gemtext syntax us pretty trivial... Why not just parse the first few chars yourself?

Not using too many libraries is good for the soul.

=> ๐Ÿš€ stack

2024-12-02 ยท 7 weeks ago

2 Later Comments โ†“

=> ๐Ÿ€ gritty ยท Dec 02 at 23:46:

I had a similar idea but more along the lines of a pastebin for gemni. could upload useful cgi scripts

=> ๐Ÿ‘ป ps [OP] ยท Dec 03 at 01:45:

Thanks, found (by recommendation) and already integrated this crate:

=> โ€” https://github.com/trishume/syntect

it's simply as maybe connect JS plugin, now have another deals with extensions detection, etc :)

finally have this feature, and some tutorials in geminispace looks much better, even integration pretty raw yet

Original Post

=> ๐ŸŒ’ s/rust_software

I have old dream to implement code syntax highlight (for gemtext) - is any crate you could advice for these needs? Also, looking for ANSI -> RGB conversion crate (for terminal colors emulation)

=> ๐Ÿ’ฌ ps ยท 3 comments ยท 2024-12-02 ยท 7 weeks ago

Proxy Information
Original URL
gemini://bbs.geminispace.org/u/stack/22388
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
72.514946 milliseconds
Gemini-to-HTML Time
0.538446 milliseconds

This content has been proxied by September (ba2dc).