davidedc / livecodelab

a web based livecoding environment
http://livecodelab.net/
MIT License
327 stars 63 forks source link

Syntax highlighting of trailing comments backtrack to first slash of line #298

Open juliendorra opened 6 years ago

juliendorra commented 6 years ago

Adding a trailing comment to a line with slashes, the purple color for comments backtrack and now start from the first slash in the line, instead of the double slash that start the comment.

(trailing comments are useful and can be better for readability if well used)

See captures below:

capture d ecran 2017-10-03 a 17 21 38

capture d ecran 2017-10-03 a 17 21 28

rumblesan commented 6 years ago

yup, it's something we've been aware of for a while, but just never gotten around to fixing. I'll try to have a dig into it this weekend. syntax highlighting could maybe do with some improvements again.

@juliendorra would be interesting to hear any feedback you have based on the workshops you've run recently

rumblesan commented 5 years ago

This now seems to be sorted in the most recent cut of LCL which will ideally get released soon. will close this when it's live. currently available at http://livecodelab.net/play2.5v3/