Skip to content

Caddyfile syntax highlighting #338

@francislavoie

Description

@francislavoie

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions