Live data from Hacker News

Font with Built-In Syntax Highlighting (2024)

blog.glyphdrawing.club

1–10 of 39 posts

Re: Font with Built-In Syntax Highlighting (2024)

#3

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.

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.

Re: Font with Built-In Syntax Highlighting (2024)

#4

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.

Remember llama.otf?

Re: Font with Built-In Syntax Highlighting (2024)

#5

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.

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?

Re: Font with Built-In Syntax Highlighting (2024)

#8
I view stuff like this kind of like code that fits into a bootloader or whatever. It’s really more of the technical challenge than to actually solve a problem. The result is much better if you just run a script on your hand-coded file to add syntax highlighting as DOM elements. Still, love seeing stuff like this.

Re: Font with Built-In Syntax Highlighting (2024)

#9
Has anyone tried this with PowerPoint yet? Our org is very PowerPoint centric and always struggle a bit with the workflow for code.

Copy pasting from IntelliJ does give colours but none of the other niceties such as kerning or litigation. Screenshots are nice visually but a pain to maintain.

Re: Font with Built-In Syntax Highlighting (2024)

#10
post #9

Has anyone tried this with PowerPoint yet? Our org is very PowerPoint centric and always struggle a bit with the workflow for code. Copy pasting from IntelliJ does give colours but none of the other niceties such as kerning or litigation. Screenshots are nice visually but a pain to maintain.

From the article cons section:

> It only works where OpenType is supported. Fortunately, that's all major browsers and most modern programs. However, something like PowerPoint doesn't support OpenType.

Post reply on HN