> On Sep 12, 2021, at 11:14 AM, mntn@mntn.xyz wrote: > > I'm interested in opinions on syntax highlighting for preformatted text. Gemini has a lot of potential for distraction-free developer reference (I just discovered that godocs.io works in Gemini!) and syntax highlighting would help. > > In Markdown, you can add hints to preformatted text blocks like so: > > ```html > <p>This is HTML</p> > ``` > > This tells the client that the preformatted block is HTML, so the client can present the code in whatever way makes the most sense. Usually this is syntax highlighting, but I could imagine some clients adding collapsable code blocks based on tags, braces, and/or indentation depending on the language. > > The Gemtext spec would seem to have no problem with this, as the first line is considered "alt text" and it is up to the client to determine both what should be done with it and how it should affect the presentation. But I wanted to put this out there to get a broader perspective. Sounds like a neat idea. I can imagine _someone_ wouldn’t like it on the grounds that it’s on the noisy side color-wise, but a disabling toggle switch sounds like the sort of thing a buried preference would be for.
---
Previous in thread (2 of 11): 🗣️ Alexis (flexibeast (a) gmail.com)
Next in thread (4 of 11): 🗣️ Jonathan McHugh (indieterminacy (a) libre.brussels)