Chris's Blog

Devops Shokunin

Puppet Syntax Highlighting

Comments Off on Puppet Syntax Highlighting

To get nicely formatted Puppet code in your blog like the following:

class test1 {
  file => "/tmp/test":
    ensure => present,
    owner => "chris",
    require => Package["test1"],
  }
}

1) Install the WP-GeSHi-Highlight plugin in your word press

2) Find your geshi directory

find /usr -name systemverilog.php

3) Down load the puppet.php syntax file to the same directory

 wget http://www.mague.com/files/puppet.php 

4) To use add the following tag before your puppet code
<pre lang=”puppet”>
and close with
</pre>

Comments are closed.