
The first screenshot (or the second, if the images are in a row) shows the current bespin syntax highlighting engine. It applies on a per-line base regular expressions to highlight the different parts. This approach is very fast, and new language color definitions can easily be added, but the engine is not aware of the internal structure of the code the user is typing in, and therefore such an engine cannot be extended to show in realtime syntax errors and provide intelligent code indentation and completion. The engine splits code into the following elements for colorizing:- comments
- C-style comments
- keywords
- strings
- punctuation
The second screenshot (or first, if the images are in a row) also shows that a few more Javascript code elements got identified and colored:
- atoms
- variables
- variable definitions
- local variables
- properties
- operators
- CSS
- HTML mixed (with JS, CSS)
- PHP mixed (with JS, CSS, HTML)
- Django mixin (my proof-of-concept, never got officially released)
2 comments:
You might want to rephrase the 'first screenshot/second screenshot' bit. Since the images are floated to the right, the second image actually comes first in the visual flow.
Menno, thanks for pointing to that. The really bad thing is that they get floated the way you describe, if the browser is large enough,otherwise they are in a column at right in reverse (or correct, in visual flow) order !
Post a Comment