Python syntax highlighting differs from demo version

I have this line of code:
(2.539+20.24 * pow(${C},2)+1.187*${Mn}*${C}-0.4084*${Si}*${C}*${Mn})

The python syntax highlighting for this line on the demo version (CodeMirror: Python mode)
looks different from my implementation (v6). Maybe it has been changed with the new version, since the demo is v5. Is there any possible way of bringing back the old color scheme?


Not really. The library, highlighter, and parser work completely different between these two versions. You may get a bit closer to what you want by using the legacy Python mode, and possibly defining a custom highlighter that precisely follows the old style.

1 Like