Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Context aware syntax highlighting #445

can3p opened this Issue · 2 comments

3 participants


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 <?php .. ?> 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.


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


Now this works in PHP mode too.

@nightwing nightwing closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.