Context aware syntax highlighting #445

can3p opened this Issue Oct 5, 2011 · 2 comments


None yet
3 participants

can3p commented Oct 5, 2011

In some cases it's great to have an ability to add different highlighting for already highlighted text. E.g, you want to hightlight jsdoc keywords:

 * @param {Type} param Here we could hightlight @param

The other example is passing variables into the strings:
"This is PHP string that $has some ${var}iables in it "

For PHP files sources should be also highlighted only inside tags

I've looked through all examples and didn't find a way to implement it. If it's not possible now, it will be great to see such support in future.


fjakobs commented Oct 5, 2011

It is already done in the JS mode. Check out Should be easy to add it to the PHP mode as well.


nightwing commented Jul 13, 2013

Now this works in PHP mode too.

@nightwing nightwing closed this Jul 13, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment