Integrating Codesnippet and Editormonkey plugin for Wordpress 2.x

I just tried out one of the best wordpress plugins out there the Codesnippet and Editormonkey , since for people like me who like to paste code everywhere they can :p and also since wordpress is not so kind to us :( , i had to go search for a plugin that would make my life a bit easier. Codesnippet is a great plugin to get syntax highlighting done for your code. Similarly Editormonkey replaces the default WYSIWYG editor in Wordpress 2.x with a much more advanced WYSIWYG editor with choices to either use TinyMCE or FCKEditor. Well i tried them both and was very impressed but when i started using the both together, came across some gliches Codesnippet stopped working since Editormonkey would change much of my code into HTML with "<" and ">" etc converted to  &lt; and &gt; and i could no longer use "code" blocks with "lang" attributes. So i tried hacking into it and came up with a few fixes for Codesnippet to work with Editormonkey. So if you are one of those who likes to use both you can download the modified "Codesnippet.php" from here.

You might also want to change the css for "Codesnippet" under Options->Code Highligting to something like this

border:1px solid #ccc; background:#eee; padding: 5px;margin:10px; font-size: xx-small; overflow:auto

 

looks much nicer in firefox.

Don’t forget to visit Codesnippet’s page at http://blog.enargi.com/codesnippet/   and Editormonkey at http://www.rajprasad.net/plugins/editormonkey
really great plugins….

Update: looks like the codesnippet site is down but u can download codesnippet from here

This is not the exact release, its just a tar of the files in my plugins directory . I have put it up just coz there is no download available elsewhere. 

Cheers!

Comments

  1. adc
    October 15th, 2006 | 1:52 am

    the enargi site has disappeared and codesnippet taken with it, can you post a zip of it here?

  2. October 19th, 2006 | 10:46 pm

    I have put in a link for Codesnippet cheers!

Leave a reply