varnishfoo icon indicating copy to clipboard operation
varnishfoo copied to clipboard

VCL pygments needed

Open KristianLyng opened this issue 9 years ago • 4 comments

I want to use .. code:: VCL to be clear, but I need pygments...

KristianLyng avatar Feb 07 '16 14:02 KristianLyng

I've got some pygments going now, enough to get things moving for myself.

Unfortunately, pygments aren't very pluggable. Until I get around to pushing this up-stream, you either need to accept syntax errors/warnings, apply the pygments patch in the repo and install the patched pygments yourself, or change any reference to VCL as a syntax hilighting thing in the RST.

In the meanwhile, the result can be seen on varnishfoo.info, and it isn't quite done yet.

KristianLyng avatar Feb 08 '16 05:02 KristianLyng

Pull request open:

https://bitbucket.org/birkenfeld/pygments-main/pull-requests/554/varnish-vcl-lexers/diff

The lexer is still not 100% complete, but this is FAR better than nothing.

KristianLyng avatar Feb 08 '16 12:02 KristianLyng

This is mostly done, but I'm leaving the ticket open until the pull request is merged. Obviously there will be updates as I add content, but that's no reason to keep the initial ticket open.

KristianLyng avatar Feb 12 '16 11:02 KristianLyng

https://github.com/KristianLyng/varnishfoo/pull/31 or similar should allow you to close this issue.

huayra avatar Apr 06 '17 00:04 huayra