vscode-mermaid-editor
vscode-mermaid-editor copied to clipboard
Syntax highlighting doesn't seem to work
Hello!
First off, thanks for creating this, the preview is excellent and works really well.
However, I'm having some issues with the syntax highlighting. For most of my diagrams, it highlights the opening sequenceDiagram
but very little else. Are there any known issues there?
I'm sorry for your inconvenience. The syntax highlight has been in the early stage yet. I'll add more highlights in the near future release. Thank you for your patience.
Ah, thats no problem at all! Would you be open to contributions?
Yes, I appreciate it if I could have your contribution! Thank you.
It looks like this project already implements mermaid syntax highlighting for markdown: https://github.com/bpruitt-goddard/vscode-mermaid-syntax-highlight
I wonder if it would be easy/possible to reuse the code/logic?
hey i've same issue. I'd like to switch to the dedicated extension mentioned above as it covers my case in full, but somehow this extension takes priority. would it be possible to disable the bundled syntax highlighting?
Made a (bit bold) proposal here: https://github.com/tomoyukim/vscode-mermaid-editor/pull/59
Thank you for your good proposals. I decided to remove it once. I totally agree with using vscode-mermaid-syntax-highlight
. Actually, I tried to use it with this extension before but it didn't work fine at my local. So, I created a PR to resolve it. I guess maybe you'll not find syntax highlighting until it's merged. But I believe it's not worth keeping currently broken syntax highlighting.
@tomoyukim thanks for your quick reaction, unfortunately this didn't fix it 100% so I created another PR https://github.com/tomoyukim/vscode-mermaid-editor/pull/60