Textmate with Puppet syntax highlighting

To enable syntax highlighting for puppet in textmate, follow this guide.

Preconditions

  • Textmate installed
  • Git installed (available with command line developer tools)

Steps

Create new folder somewhere on your directories. I do directly on Desktop.

# create new directory
$ mkdir ~/Desktop/Bundles

Go inside created folder and clone from Git repository.

# change directory
$ cd ~/Desktop/Bundles

# run git clone
$ git clone https://github.com/masterzen/puppet-textmate-bundle.git Puppet.tmbundle

Move the “Puppet.tmbundle” file into specific folder and delete created folder on desktop.

# move file
$ mv ~/Desktop/Bundles/Puppet.tmbundle ~/Library/Application\ Support/TextMate/Bundles/

# delete created directory
$ rm -fr ~/Desktop/Bundles

Now select a *.pp file and open with Textmate. In the Textmate dialog, select “Puppet” and “Install Bundle”.