Closed FichteFoll closed 2 months ago
+1 to this change. React projects use JSX, which is sort of markup inside the coffeescript source. Right now it looks like this:
It would be great to have syntax highlighting inside the backticks.
+1, working with React as well.
+1 Too! I've actually switched to the method described here: http://neugierig.org/software/blog/2014/02/react-jsx-coffeescript.html
in order to work around the syntax highlighting limitations which were driving me crazy.
This issue still hasn't been fixed. I'm using the Flatland theme on Sublime Text 3 with Monokai as my color scheme
You can use backticks to denote literal JavaScript blocks in CS.
What do you think about including javascript's syntax into the patterns so it highlights the code? The thing itself won't be hard, it's just a few lines more.
What I consider problematic is that some color schemes might not highlight source within source special, e.g. by changing the background color. The scheme I use (Twilight) defines something for
text source
but notsource source
.Here is a preview what I made it look like:
Steps:
Add this to your color scheme or assure there is a
source source
selector:Change line 148-9 in
CoffeeScript.tmLanguage
from:to:
Add this after line 157: