syntax highlighting in the stylish editor

edited January 2009 in Stylish
Hey, there's an extension called diavolo that provides an XBL binding for a source code editor with syntax highlighting and autocomplete:
The example XPI supports CSS highlighting and autocomplete.

It would be great if stylish used it, perhaps keeping the textarea option as a fallback.

The main challenge with migrating to diavolo is the difference in APIs - textareas have selectionStart/selectionEnd which you use actively, while the binding in diavolo just exposes nsIEditor.


  • Yes, I intend to look into this.
  • There appear to be at least one bad bug (CSS getting corrupted by the editor) and a few minor ones (error checking says invalid things are valid). I've sent an e-mail to Daniel to see what he thinks.
Sign In or Register to comment.