Context aware syntax highlighting #445

Closed
can3p opened this Issue Oct 5, 2011 · 2 comments

Comments

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

Contributor

fjakobs commented Oct 5, 2011

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.

Member

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