Content
View differences
Updated by Oliver Günther over 6 years ago
CodeMirror uses different language codes for highlighting syntax than rouge.
Frontend:
[https://github.com/codemirror/CodeMirror/tree/master/mode](https://github.com/codemirror/CodeMirror/tree/master/mode)
Backend:
https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers
Example:
C#: Frontend only supports `clike` while backend supports `csharp`. Either the frontend or the backend will be improperly highlighted.
Frontend:
[https://github.com/codemirror/CodeMirror/tree/master/mode](https://github.com/codemirror/CodeMirror/tree/master/mode)
Backend:
https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers
Example:
C#: Frontend only supports `clike` while backend supports `csharp`. Either the frontend or the backend will be improperly highlighted.