Add CodePress syntax highlighting to Theme and Plugin editors
|Reported by:||beaulebens||Owned by:|
You'll want to download v0.9.6 of CodePress from here: http://codepress.sourceforge.net/download/codepress-v.0.9.6.zip and put it here: /wp-includes/js/codepress/
Currently, I have enabled highlighting for CSS, JS, PHP, HTML and TXT files. CodePress technically supports a few others, but you can actually only ever edit PHP or CSS files through the current editors, so I figured that was plenty.
After you have the JS in place, apply the patch and load up either editor and you should see syntax highlighting immediately.
You can also load the CodePress library on any other page/plugin/etc using:
wp_enqueue_script( 'codepress' );