Varnish VCL Syntax Highlighting in Sublime Text

Mattias Geniar, Monday, October 26, 2015

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

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


Much better than the plain-text alternative.

Hi! My name is Mattias Geniar. I'm a Support Manager at Nucleus Hosting in Belgium, a general web geek & public speaker. Currently working on DNS Spy & Oh Dear!. Follow me on Twitter as @mattiasgeniar.

Share this post

Did you like this post? Will you help me share it on social media? Thanks!


trouble Tuesday, October 27, 2015 at 13:23 - Reply

“Syntax highlighting is essential”? I find it distracting most of the time. Particularly in configuration files. Instead of focusing on the structure and meaning of my text, I find myself automatically fighting to make the colours look pretty and regular.

The main reason I turn on syntax highlighting is reading code written by people who rely on syntax highlighting to convey structure.

Peter Jaffray Saturday, August 11, 2018 at 23:06 - Reply

I just installed this and I find one of the best features of Sublime is the ability to do syntax highlighting for everything. “Trouble” is a noob.

Meg Seegmiller Wednesday, May 8, 2019 at 20:49 - Reply

Still amazing. Thank you so much for sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *