Support for Python got recently added to Codemirror, thanks to Timothy Farrell. So I grabbed those sources and ported them to bespin. It doesn't work yet perfect in every case one can think of, but it does highlight Python.
The current features are (summarized from original demo page):
- Token-based syntax highlighting - currently very little lexical analysis happens. Few lexical errors will be detected.
- Use the normal indentation mode to enforce regular indentation, otherwise the "shift" indentation mode will give you more flexibility (not used yet in bespin).
- Parser Options: Python version, error display
No comments:
Post a Comment