LibreTexts / ckeditor-binder-plugin

A CKeditor plugin that makes adding binder enabled pre tags easy.
GNU General Public License v3.0
4 stars 2 forks source link

syntax highlighting for SageMath #43

Open narrator0 opened 4 years ago

narrator0 commented 4 years ago

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.

celine168 commented 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.

moorepants commented 4 years ago

I think this is a good idea. We need to store the highlighting str separately.