silverbulletmd / silverbullet

The knowledge tinkerer's notebook
https://silverbullet.md
MIT License
2.61k stars 189 forks source link

Feature request: Add syntax highlighting for assembly #1020

Open r3qip3r opened 3 months ago

r3qip3r commented 3 months ago

Would it be possible to add highlighting support for assembly? Should be named something like x86asm, I believe.

zefhemel commented 3 months ago

Realistically what I need to include this is an existing CodeMirror language mode for it. There's a long list here: https://github.com/codemirror/legacy-modes/tree/main/mode

But I don't see an assembly one on there.

r3qip3r commented 3 months ago

:-( That's a pity. Hope that CodeMirror changes this. CM supports 'gas' which is an alternative syntax. I myself use the Intel syntax, which is present in highlight.js.