feed Posts (RSS | eMail)
feed Comments (RSS | eMail)
Loading in process - please be patient.

Please consider signing the Google Gmail Automatic BCC Option Petition
and spread the word. Thanks!

I need more signatures - at least, help me reach the 100 for starters! :-)
[click box to close]

Recently, I thought it would be nice to have a syntax highlighting feature if you present code snippets - you might know this behaviour from your code editor. I found two WordPress plugins, but unfortunately, I did not quite manage to make them work in the right way:

  • “Highlight.js”: softwaremaniacs.org/soft/highlight/en/
    This solution is based on JavaScript in combination with CSS. There is also a WordPress plugin available, but I somehow didn’t succeed to integrate it into my own stylesheet - it just wouldn’t look right.
  • “WP-Syntax”: wordpress.org/extend/plugins/wp-syntax/
    This WordPress plugin uses GeSHi, the “Generic Syntax Highlighter” which is based on PHP. It works OK when you have the WordPress visual editor deactivated - otherwise, it will replace “<”, “>” and “&” with the HTML-entities which does not look nice in a code snippet.

I must admit: I didn’t try TOO hard, because the amount of code snippets in my blog keeps within reasonable limits.

The post ends here. Wanna leave a response? Have Your Say!

Next post: Hitman - The Movie
Previous post: Tooth Fairy

Trackback URI | Comments RSS | Permalink

del.icio.us del.icio.us eMail this post eMail Print Print
Did you like this post? NoYes
No votes yet, be the first!
Loading ... Loading ...

Have Your Say!

back to top