Syntax highlighting for Arduino code [Update]

If anyone wants to post Arduino code with syntax highlighting on a WordPress site, that is quite easy to set up. You need only two things:

The plugin needs to get installed and activated. The language file needs to be placed in $WPROOT/wp-content/plugins/wp-syntax/geshi/geshi. After that the code can be easily marked as preformatted text with
<pre lang="Arduino">
// arduino code
</pre>

Update 15.11.2012

I just noticed that the language file was missing in the GeSHi directory of my installation. I assume that it got deleted when I updated the plugin. Something to keep in mind for future updates.

Published by

Gerald

Diplom-Informatiker (DH) in Darmstadt. Ich blogge über Entwicklung, Internet, mobile Geräte und Virtualisierung. Meine Beiträge gibt es auch bei Google+ und Facebook.

Leave a Reply

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