This is a simple demonstration of the Python syntax highlighting module
for CodeMirror.
Features of this parser include:
- 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.
- Parser Options:
- pythonVersion (Integer) - 2 or 3 to indicate which version of Python to parse. Default = 2
- strictErrors (Bool) - true to highlight errors that may not be Python errors but cause confusion for this parser. Default = true
Written by Timothy Farrell (license). Special
thanks to Adam Brand and Marijn Haverbeke for their help in debugging
and providing for this parser.