Is it possible to highlight typst _code_ on Typst Universe?

Hi! Is there a way to highlight typst code in my package’s README on Typst Universe?

I’ve tried typc , but that doesn’t work.

Note: I asked the same question on Discord #quick-questions, 2026-01-16, but no one answered.


Edit on 2026-01-22: As suggested below by Andrew, I created Clarify and expland the list of languages supported for syntax highlighting on Typst Universe · Issue #812 · typst/webapp-issues · GitHub.

Hey there. Since typ works, this can be a bug or an oversight. I’d expect it to just work like in document or on forum. Though it might be because the same problem exists in repositories/issue trackers, i.e., only typ/markup mode is supported.

1 Like

I find that diffis not supported either, although highlight.js does parse it.

Odd. Sounds like color scheme is missing, if it’s per-language…or more like “CSS class” dependent. Probably better to document this in the issue tracker. I’d expect it to not be parsed/recognized nor highlighted, or both. Surprised that it’s something in between.

1 Like