ccie, vcp ccvp, rhce, giac, gcih, cisco, netscreen, netscaler, juniper, f5, security, virtualization, vmware

OpenStack Nerd, CCIE, DevOps Junkie

Changing the world, one person at a time

OpenStack Nerd, CCIE, DevOps Junkie header image 2

Puppet syntax highlighting using TextMate2

June 3rd, 2013 · 2 Comments · chef, continuous integration, devops, puppet

Do you use Puppet to manage your infrastructure? Are you like me and absolutely love TextMate2? If so you are probably pulling your hair out getting syntax highlighting working with TextMate2.

Frustrated Engineer Puppet TextMate


The original version of TextMate had a very wide array of bundles (called tmbundles) that extended its functionality. When TextMate2 was released, it did not have the ability to import older bundles written for version 1.

It does ship with a large amount of built in bundles, however Puppet and Chef don’t ship by default. So, instead of pretty highlighting calling out syntax errors that you have made (or showing how awesome as job you have done) you get a bland white output show below.



Enter in Matthew Barr and is super awesome Puppet CI work. Very specifically, his puppet TextMate Bundle that works with TextMate2 –

puppet textmate2 bundle

Installation is pretty simple (you don’t have to use git if you don’t want).

  1. Click on the ZIP button to download
  2. Unzip the file
  3. Rename the resulting folder from puppet-textmate.tmbundle-master  to puppet-textmate.tmbundle
  4. Double click on the file puppet-textmate.tmbundle to import

Now that you have that installed. You now can choose puppet the puppet module instead of plain yet and you end up with beautifully highlighted code.

hightlighted puppett extmate


Resources –

TextMate2 – Open Source Text Editor  –

Matthew Barr’s TextMate2 Puppet bundle –




Tags: ·····

2 responses so far ↓

  • 1 Trevor Roberts Jr // Jun 4, 2013 at 12:54 pm

    Hey Colin,

    Great post. I’ll check out the Puppet syntax highlighting with TextMate.

    I did a similar post for vim on Mac OS X using pathogen and vim-puppet GitHub projects:


  • 2 Matthew Barr // Feb 24, 2014 at 2:27 pm

    Actually, we got it added to to the official bundle list.

    I took Brice Figureau’s work, and added a bunch of updates from around the github universe, and with his help, merged it all together.

    You can now just select the bundle in Textmate 2, and it’ll be installed :)

Leave a Comment