##// END OF EJS Templates
Copy codemirror mode configuration instead of changing it...
Copy codemirror mode configuration instead of changing it If we change it, the modified (wrong) mode is saved in the notebook, which wrecks havoc on highlighting once the notebook is saved and reopened.

File last commit:

r13347:54891794
r17543:a4fee4f8
Show More
tokenize2.py
9 lines | 160 B | text/x-python | PythonLexer
"""Load our patched versions of tokenize.
"""
import sys
if sys.version_info[0] >= 3:
from ._tokenize_py3 import *
else:
from ._tokenize_py2 import *