Open narrator0 opened 4 years ago
I realize that we could do this by renaming the "data-language" attribute to something like 'text/x-python'
, a mode from CodeMirror. However, this could make our code very confusing and would prefer to restructure it in some way so we could differentiate between "languages" and syntax highlighting.
I think that that we should turn the concept of language into a Javascript object with properties of name and syntax highlighting mode, but would appreciate other suggestions as well.
I think this is a good idea. We need to store the highlighting str separately.
What is the problem?
Code Mirror does not support syntax highlighting for SageMath. See supported list for reference.
Potential Fix
We can try to use Python's syntax highlighting somehow.