HomeAbout Me

Setting Up Puppet Syntax Highlighting in TextMate2

By Colin McNamara
June 03, 2013
1 min read

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.

TextMate Puppet Plain

Enter in Matthew Barr and is super awesome Puppet CI work. Very specifically, his puppet TextMate Bundle that works with TextMate2 - https://github.com/matthewbarr/puppet-textmate.tmbundle

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 puppet-textmate.tmbundle-master.zip
  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.

Highlighted Puppet TextMate

Resources


Tags

puppetdevopstextmatedevelopment toolsinfrastructure as codechefcontinuous integration

Share

Previous Article
Speaking at IPMA Forum: OpenStack, DevOps and Continuous Delivery
Colin McNamara

Colin McNamara

AI Innovation Leader & Supply Chain Technologist

Topics

Business & Strategy
Personal & Lifestyle
Technology & Innovation
Sustainability & Ethics

Related Posts

The Changing Value of the CCIE: Embracing Evolution in Technology Careers
March 04, 2014
9 min
© 2025, All Rights Reserved.

Quick Links

About MeContact Me

Social Media