danielinsley.com

TinyMCE syntax highlighted code editor

2008.03.29

We're currently using the super-improved TinyMCE version 3.0rc1, which apparently has gone through an entire rewrite for the 3.0 release. Aside from making TinyMCE incredibly faster and more efficient, they also implemented an awesome API for easily creating plugins. I decided to test the new API out with an improved code editor that utilizes Codepress.

Image

You can click on the above screenshot to see it in action. I've packed the full Codepress download into the plugin. There was some minor modifications made to the Codepress javascript for styling the iframe, but you should be able to easily drop in an upgraded version without too much of a problem.

I've only been able to test this in Firefox 2.0.0.11, so if you have any problems with any other browsers please leave a comment and I'll try and sort them out. There's only really one other thing I'd like to add to the plugin and that's the ability to wrap the text. There's currently a feature request on Sourceforge for code wrapping inside of Codepress, so maybe I'll poke around and see if I can implement it and submit a patch back to them.

For any problems with the code editor itself, you should contact the authors of Codepress. If there's any problems with the plugin itself then feel free to leave a comment.

The plugin will only work with 3.0rc1 or greater.

Download: advcode_0.1.tar.gz

Comments

Hi I like that editor from Codepress. I have downloaded the file and extract it to tinymce plugin folder, but the editor is not appearing. I have added advcode plugin to tinymce init section but it haven't worked for me. Could you help me out.

Hi, I would be interested in trying out your code editor but the download link no longer works.

Is there any chance that you could upload it to your site again?

ye, the download link no longer works.

Is there any chance that you could upload it to your site again?

I really interested in this plugin

Add comment

About me

I'm a 23 year old Software Developer from British Columbia, Canada. I currently have the privilege of writing Ruby full time at viviti.com. I enjoy spending my time with my family, programming, watching hockey, and listening to all kinds of music!

Daniel Insley's Linkedin Profile