athens
athens copied to clipboard
Integrate with CodeMirror for code blocks
Start of implementation is already done within md-parser.
AFAIK Codemirror is meant to create an editable space for writing code. Can we be sure that all the cursor behavior, transactions, and keyboard shortcuts will be the same for codemirror as for other blocks?
@shanberg I think we can just ignore basically most keybindings when inside CodeMirror.
There are libraries which only perform the syntax highlighting like prism or highlight.js if the overhead of CodeMirror's whole stack isn't desirable.
I would already be happy to have at least a code block, something like this, but with working intents:

The way I had to get to this is shameful and it's not even good looking nor can it be copied:

I have no remorse whatsoever. 😂
Please tell me if there is a better way.
We have some degree of code block I thought.
text
text
text
No indent though. @martin-braun