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 and podcaster. Currently working on DNS Spy. Follow me on Twitter as @mattiasgeniar.

I respect your privacy and you won't get spam. Ever.
Just a weekly newsletter about Linux and open source.

SysCast podcast

In the SysCast podcast I talk about Linux & open source projects, interview sysadmins or developers and discuss web-related technologies. A show by and for geeks!

cron.weekly newsletter

A weekly newsletter - delivered every Sunday - for Linux sysadmins and open source users. It helps keeps you informed about open source projects, Linux guides & tutorials and the latest news.

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

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

Reply


    Mattias Geniar Tuesday, October 27, 2015 at 15:02

    Each his own preference of course. I find a “wall of text” without sane colours to be extremely different to interpret and very easy to spot syntax errors – something that color highlighting can easily solve.

    Reply


Leave a Reply

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