Wordpress

How To: Adding a PeopleSoft PeopleCode Brush to SyntaxHighlighter Evolved

Update: I now use Crayon instead of SyntaxHighlighter Evolved as my blog syntax highlighter.

I managed to create a PeopleCode Brush for SyntaxHighlighter Evolved. Feel free to perform the following steps to add the brush to your own blog:

1. Create brush file “shBrushPeopleCode.js
2. Upload brush file “shBrushPeopleCode.js“ to your WordPress “/wp-content/plugins/syntaxhighlighter/third-party-brushes” folder.
3. Log into WordPress dashboard and click on the Plugins menu link.
4. Select SyntaxHighlighter Evolved from your list of plugins.
5. Edit file “syntaxhighlighter/syntaxhighlighter.php“.
6. In the syntaxhighlighter.php file, search for “// Register some popular third-party brushes“.
7. Find the wp_register_script function calls and add the following:

8. Search for “$this->brushes = (array) apply_filters( ‘syntaxhighlighter_brushes’, array(“.
9. In the section of code below where you searched, add the following:

10. Finally, update (save) the file.

Leave a Reply

Your email address will not be published. Required fields are marked *

ERROR: si-captcha.php plugin: GD image support not detected in PHP!

Contact your web host and ask them to enable GD image support for PHP.

ERROR: si-captcha.php plugin: imagepng function not detected in PHP!

Contact your web host and ask them to enable imagepng for PHP.