Jan 4
Recently, Akash Bavlecha pointed out to me that the SyntaxHighlighter Mango Plugin that I built only worked when it was used in the main "content" field of a post/page. If he tried to use it in the "excerpt" field, it didn't work. Turns out that this was the result of an omission on my part which I didn't notice because I have yet to highlight code in an excerpt.
In any case, I have fixed this issue and version 2.0.1 of the plugin now works when used in both Content and Excerpt sections of posts or pages (which is the way it was meant to work from the beginning). If you downloaded the plugin before January 2, you should upgrade the plugin by using the same install URL as found at the bottom of the original post.
I apologize for any inconvenience and/or confusion this may have caused, and thanks Akash for alterting me to this!
Nov 2
A little while ago, I released a SyntaxHighlighter Plugin for Mango Blog. Although I was fairly happy with my first Mango plugin, I still thought there was room for improvement. Certain things about it bugged me, so I finally dug in and did a complete rewrite. So I am very pleased to release version 2.0 of the plugin! Here is a list of the improvements introduced in this version:
- It uses the latest version (2.1.364) of Alex Gorbatchev's SyntaxHighlighter script. The previous version of the plugin used the deprecated version 1.5.1.
- I eliminated the dependency on the syntaxhl TinyMCE plugin (which added a syntaxhiglighter button to the WYSIWYG editor) to do the syntax highlighting. I found that using syntaxhl was kind of clunky and now you can simply insert code by pasting it directly into the editor between a pair of [code][/code] tags (without disabling TinyMCE or going into "source view"). Therefore, this new version won't add a syntaxhighlighter button to the editor. Please read the README file (included in the download) for more details on how to use the plugin.
- Along with the latest version of the SyntaxHighlighter script comes configurable themes to change the look of the syntax highlighting as well as several new syntax "brushes" (including Groovy, Scala, Erlang, and a few others).
- "Legacy Mode" can be enabled for those who used the previous version of my plugin (or just SyntaxHighlighter 1.5.1 directly) and have a lot of existing posts. This setting will make the plugin backward-compatible.
- The plugin itself was refactored to take advantage of the enhancements to Mango's plugin architecture that were introduced with version 1.3 of Mango.
I hope people find this useful. There are more details in the README file included with the plugin, so make sure to read that so you can take advantage of the new features. People upgrading from version 1 of my plugin should especially read it.
Please note: this plugin was made so that authors wouldn't have to switch back and forth between WYSIWYG mode and HTML mode to add code blocks in their posts. This plugin will ONLY work properly if the code blocks are entered in WYSIWIG mode (you should see a tool bar at the top of the content editor). If the top of your content editor looks like this:

Click on the little pencil-and-paper icon to get back into WYSIWIG mode for it to look like this:

And you should be good to go!
Get the SyntaxHighLighter Plugin
- Plugin version:
- 2.0.1
- Last Updated:
- 2010-01-02
- Requires:
- Mango Blog 1.3+
- Auto-install URL:
- http://mangoblog-extensions.googlecode.com/files/syntaxhighlighter_mango_plugin.zip
Aug 4
Note: This version of the SyntaxHighlighter plugin has been
deprecated. I've left this post up for purely historical documentation.
The new version works in a COMPLETELY different manner so disregard
this entire post. For info on the latest version and the download, go
to this post.
I've been using SyntaxHighlighter JavaScript code formatter for my blog posts. They way I integrated it into my blog was by basically hacking my Mango installation. I hard-coded the script calls in my Mango skin and I also added the syntaxhl TinyMCE plugin to my blog post editor in the admin (manually changing the TinyMCE configuration in the process). I recently upgraded my Mango installation to the latest version (1.3.1) which, of course, wiped out a lot of the hacks for the SyntaxHighlighter functionality (which, of course is the main downside to this way of doing things). I've been meaning to get more into Mango plugin development, so I saw this as an opportunity to write my first Mango plugin. So I present to you the SyntaxHighlighter Mango Plugin.
Read more...
Jul 22
At the age of 3, my son Eli was diagnosed with PDD-NOS, which is a "mild form" of autism. Although his condition is not as severe as those on the other end of the autism spectrum, he definitely has challenges (mostly in the realm of social skills with peers and language) that we are helping him overcome. The great thing is that he has deinitely made a lot of progress since his diagnosis (he is now 4 and a half).
Read more...
2-16-2010
2-12-2010
1-11-2010
1-4-2010
1-4-2010