Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Context aware syntax highlighting #445

Closed
can3p opened this Issue · 2 comments

3 participants

@can3p

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.
@gissues:{"order":45.34161490683255,"status":"backlog"}

@fjakobs
Owner

It is already done in the JS mode. Check out https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/javascript_highlight_rules.js. Should be easy to add it to the PHP mode as well.

@nightwing
Owner

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.