You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be awesome if Chroma would support a caddyfile lexer so that we can syntax highlight all the examples in the Caddy documentation! It would also mean that the Caddy could syntax highlight its own configuration!
See here for information on the syntax. It's quite simple.
Caddy v1 and Caddy v2 have slightly different syntax, but @mohammed90 found this VS Code syntax for v1 which could be useful as a base reference?
Thanks!
The text was updated successfully, but these errors were encountered:
I actually played around with this a bit today and had some success, but unfortunately that Textmate syntax is really quite bad. I think Textmate support in general is a good idea, but for this particular syntax it's probably better just to write one from scratch.
It shouldn't be too hard to write a new one from scratch; the Caddyfile is relatively simple, but there might be a few edge cases that take some time to work out (and that's OK for later too).
Caddy supports markdown rendering via Blackfriday, which uses Chroma for syntax highlighting.
I think it would be awesome if Chroma would support a
caddyfile
lexer so that we can syntax highlight all the examples in the Caddy documentation! It would also mean that the Caddy could syntax highlight its own configuration!See here for information on the syntax. It's quite simple.
Caddy v1 and Caddy v2 have slightly different syntax, but @mohammed90 found this VS Code syntax for v1 which could be useful as a base reference?
Thanks!
The text was updated successfully, but these errors were encountered: