Font with Built-In Syntax Highlighting (2024)

(blog.glyphdrawing.club)

34 points | by california-og 3 hours ago

3 comments

  • zX41ZdbW 36 minutes ago
    > it breaks when your code goes to a newline. there's no way to keep context line to line...

    This is a blocker for my applications.

  • Gracana 39 minutes ago
    Perhaps you could add this technology to Z80 sans, to get syntax highlighted Z80 disassembly.

    https://github.com/nevesnunes/z80-sans

  • vbezhenar 1 hour ago
    So script inside web page is bad, but script inside font is good? That's interesting definition of bloat. I'd prefer ordinary webpage using locally installed fonts with explicit JavaScript snippet to highlight keywords.
    • benrutter 1 hour ago
      Unless I missed it, the OP doesn't quote reducing bloat as a motivation- more just working without javascript.

      I took it to be along the lines of an "easier to work with" type motivation, rather than reducing package sizes.

    • blauditore 45 minutes ago
      Is it really a script though? IIUC it's more like contextual declaration (e.g. of previous char is X, then use style Y), no?
    • WesolyKubeczek 1 hour ago
      Remember llama.otf?