@li_haoyi Do you have any [Scala]JS code which syntax-highlights Scala code in a browser? Seems like you would have all the jigsaw pieces...
Looks like there are a couple of general highlighting libs which do it, but I wouldn't trust them to correctly read some of the code I have.
-
-
https://github.com/lihaoyi/Ammonite/blob/master/amm/repl/src/main/scala/ammonite/repl/Highlighter.scala … should be fully Scala.js compatible and be trivially retargetable to emit HTML instead of ANSI colors
-
Cool, thank you. When you linked me to Ammonite, I assumed it was a bunch of work, but from that source, it appears quite doable.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.