bramp / js-sequence-diagrams

Draws simple SVG sequence diagrams from textual representation of the diagram
https://bramp.github.io/js-sequence-diagrams/
BSD 2-Clause "Simplified" License
7.81k stars 1.08k forks source link

Improve syntax highlighting in the editor #181

Open andrewdonkin opened 7 years ago

andrewdonkin commented 7 years ago

Adds a highlighting mode to Ace for the sequence diagram language.

This is a bit nasty, a quick copy/paste/hack of asciidoc, but it makes the editor look a little better.

image

It feels like this should be a PR on Ace instead, but I thought it might reach the people who need it better if it was part of js-sequence-diagrams.

To use it, put mode-sequencebramp.js in js/ace and change your index.html to editor.getSession().setMode("ace/mode/sequencebramp");

bramp commented 6 years ago

Excellent @andrewdonkin I'll happily accept this! Would you mind resolving the issues that hound bot found.

andrewdonkin commented 6 years ago

Done. I'd squash them if I could. Didn't know what I was doing but there are no console errors and the bot has shut up.