Varnish VCL Syntax Highlighting in Sublime Text

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

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.