[wp-trac] [WordPress Trac] #9173: Add CodePress syntax highlighting to Theme and Plugin editors

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 19 07:06:40 GMT 2009


#9173: Add CodePress syntax highlighting to Theme and Plugin editors
-------------------------+--------------------------------------------------
 Reporter:  beaulebens   |       Owner:                         
     Type:  enhancement  |      Status:  new                    
 Priority:  normal       |   Milestone:  2.8                    
Component:  UI           |     Version:  2.7                    
 Severity:  normal       |    Keywords:  has-patch needs-testing
-------------------------+--------------------------------------------------
 Attached is a patch to add syntax highlighting to both the Plugin and
 Theme editors using the aptly-named, yet technically unrelated
 "[http://codepress.sourceforge.net/ CodePress]" javascript library.

 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' );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9173>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list