Skip to content

Filed under Code

Apache.conf Syntax Highlighting in Sublime Text 2

A quick package install that turns a wall of rewrite rules into something you can actually read.

I have been spending the last two days in Sublime Text 2 laboriously creating 301 rewrite rules for a site migration. None of the file types and highlight rulesets I had installed helped me read what I was working on any better.

A quick search later and I found a blog post about Apache configuration syntax highlighting, and three minutes later I was up and running.

The colors. So beautiful. So readable.

Update: an even easier option

A reader shared a far easier way to install this package. If you have Package Control installed, open the command palette, choose install, and search for ApacheConf.tmLanguage. Press enter and you are done.