Syntax highlighting for admin-side text areas (during node or block editing) I'm trying to find a module that will highlight HTML (and preferably CSS/JavaScript inside of style/script tags, but that's an added bonus) when I'm editing a node or block in the administrative side of Drupal.

While I've searched on drupal.org for syntax highlighting modules and come across options like GeSHi and Syntax Highlighter, both of those seem to be for the public-facing end content and not the administrative side. Am I wrong and would one be suitable for me? I've also seen a few projects that highlight PHP code blocks, but that's less important to me than HTML/CSS/JavaScript.

I never use a WYSIWYG editor for my own HTML but some highlighting would be very helpful in editing my content.
I use the BUEditor module, for which you can add syntax highlighting with some additional configuration.  You can specify to only allow administrators access to this interface via the module's options page.

Step-by-step instructions


Install the BUEditor module (I used 1.6).
Download bue.highlight.min.css and bue.highlight.min.js from this page.  I placed these files in a bueditor directory inside the directory for my custom theme.
Go to the BUEditor config page: /admin/config/content/bueditor.  Edit the settings for the relevant version(s) of BUEditor (probably default, but it depends on which you assign to each role-- if you want, you can configure different BUEditor options per role, but then you will need to set up syntax highlighting for each.)
On the Editor settings screen, click the Editor paths tab and then add the following Editor specific library files (My example assumes that you put the JS in your theme directory.):


  %THEME/bueditor/bue.highlight.min.css
  %THEME/bueditor/bue.highlight.min.js
  

Then, scroll down to the bottom of that page (under Buttons) and add tpl:syntax along with this code:


js:
BUE.postprocess._turnOnHlight = function(E, $) {
  setTimeout(function(){E.highlight('html')});
};



Then save the configuration and you should be good to go.