Closed andrewrk closed 5 years ago
Stack Overflow uses code-prettify (source).
Not sure if this is possible, but it would be pretty neat to write a compiler for PEGs that generates code-prettify
and pygments
lexers and then feed it the zig-spec.
pygments just gained zig support upstream: https://bitbucket.org/birkenfeld/pygments-main/pull-requests/820/added-lexer-for-zig-programming-language/diff
http://pygments.org/languages/
This would provide Zig syntax highlighting on SourceHut ~and I believe Stack Overflow~.