Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

is there a plugin that replaces/enhances the built-in Page/Post HTML editor so that HTML is syntax-highlighted? What I'm looking for is something like "Power Code Editor" but for editing Pages/Posts.

NOTE: Just to be absolutely clear: I am not looking for a plugin that let me post highlighted code snippets, I just want to edit the HTML code of my posts in a nicer editor :)

An added bonus would be a formatter function to cleanup the indentation.

Is anybody aware of such a plugin? Thanks!

share|improve this question

closed as off topic by toscho Nov 2 '12 at 20:57

Questions on WordPress Development Stack Exchange are expected to relate to WordPress within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
possible duplicate of Syntax highlighting for post/page editor –  toscho Feb 3 '12 at 10:49

4 Answers 4

I was looking forever for the solution. I finally found this plugin which actually does a lot of things. But i only used the option to add a HTML button to the row of buttons which lets you edit post/page html with CodeMirror (http://codemirror.net/) highlighting.

Link to plugin: http://wordpress.org/extend/plugins/ultimate-tinymce/

share|improve this answer

I've installed the Ultimate TinyMCE plug-in. It is a bit of over-kill for syntax highlighting, but it does provide that functionality. The setting is under button group 2. It's called "HTML Code Magic Button". It does a good job of formatting and highlighting. It didn't like my <br style="clear: both"> nor my <p style="clear:both;"></p>. It kept wanting to make it <p></p> or just clear it out totally. Other than that, it works great.

share|improve this answer

You could try http://wordpress.org/extend/plugins/wp-advanced-code-editor/ - it hasn't been updated recently, but seems to work...

share|improve this answer
    
It works, kinda. Don't know why but it leaves the old editor grayed out but still visible in the background, which does not make editing simple. It would be great without this side-effect though –  Sergio Nov 30 '11 at 9:31

Try this one http://wordpress.org/extend/plugins/html-editor-syntax-highlighter/

share|improve this answer
    
An answer should be more than a link to an external site. Please explain the Why and How. Thanks. –  toscho Apr 19 '12 at 13:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.