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 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.



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!

Comments

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.


Leave a Reply

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