Varnish VCL Syntax Highlighting in Sublime Text

Profile image of Mattias Geniar

Mattias Geniar, October 26, 2015

Follow me on Twitter as @mattiasgeniar

I love the Sublime Text editor on Mac. It’s super simple & lightweight, it’s got plenty of shortcuts and once you get the hang of it – it’s a real power horse.

Since I do quite a bit work in Varnish, writing VCLs and custom rules, syntax highlighting is essential. Here’s a plugin that handles that.

$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User 
$ wget --no-check-certificate https://raw.githubusercontent.com/mattiasgeniar/Varnish.tmbundle/master/Syntaxes/VCL.tmLanguage

It’s a fork from the original work by zephirworks/Varnish.tmbundle, many thanks for that hard work!

varnish_syntax_highlighting

Much better than the plain-text alternative.



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.