Closed tomquas closed 2 years ago
I'm not sure I can reproduce this. Here is how that content is highlighted for me .
hmm, can i ask what theme you're using? here's a shot of my view on this...
Are you sure you're using the Caddyfile syntax highlighting? Check the bottom-right of your IDE, does it say "Caddyfile"?
Looks like the /*
is being parsed as a comment, but /*
is not a comment in the Caddyfile, so it must be from some other language.
you're totally right. and i feel stupid...
the file was named 'Caddyfile-dev' and VS chose the Groovy highlighter. copied to file to 'Caddyfile' and all works well. sorry.
is there a way for the plugin to register 'Caddyfile*' for caddy-style highlighting?
is there a way for the plugin to register 'Caddyfile*' for caddy-style highlighting?
I believe there is a manual file association option you can set, otherwise I could add the association to the extension by default.
FWIW I'd appreciate having Caddyfile*
work too, but it should exclude caddyfile.go
and caddyfile.md
which tend to come up reasonably often in the Caddy codebase and docs.
System Information
caddy
Version: 2.5.2Describe the bug i defined the section below to import from host specs:
the last header statement's text/* ruins highlighting such that all following statements are shown without coloring. By moving that line up and down you can track the effect to this part of the header statement.
Expected Behavior Keep highlighting going.