I am storing a number of HTML blocks inside a CMS for reasons of easier maintenance. They are represented by s.
Does anybody know a JavaScript Widget of some sort that can do syntax highlighting for HTML within a textarea or similar, while still staying a plain text editor (no WYSIWYG or advanced functions)?
解决方案
It's not possible to achieve the required level of control over presentation in a regular textarea.
If you're OK with that, try CodeMirror or Ace (formerly skywriter and bespin).