๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ u โ€บ sy โ€บ 20601 captured on 2024-12-17 at 15:26:57. Gemini links have been rewritten to link to archived content

View Raw

More Information

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

Comment by ๐Ÿš€ sy

Re: "colored code in gemini"

In: u/A161

Most clients do not bother to strip ANSI escapes. You can directly put the output from a code highlighter in the gemtext. E.g.: "bat --color=always --theme=GitHub". Just try to find one that blends with various background colors.

๐Ÿš€ sy

Oct 09 ยท 2 months ago

1 Later Comment

๐Ÿš€ stack ยท Oct 09 at 22:17:

It's not that "it's not userfriendly yet", it's basically undefined behaviour. It sort of works in some browsers, and some games rely on it, but it's not specified in the spec and should be generally avoided.

Original Post

๐Ÿš€ A161

colored code in gemini โ€” hello, just want to test gemini. seems nice. does anyone know a client that can automatically detect language of code parts and color them like a code editor or github etc? would be great for tutorials, documentations and stuff.

๐Ÿ’ฌ 4 comments ยท Oct 09 ยท 2 months ago