Search code examples
javascriptace-editor

Extend Ace Editor highlighter


How to extend Ace (ace.ajax.org) highlighter to create link for each class identifier?

Straightforward approach doesn't work

$(function() {
     $('.ace_identifier').css("background-color","black");
});

http://jsfiddle.net/igos/qLAvN/


Solution

  • $('.ace_identifier').css("background-color","black"); doesn't work because ace creates dom nodes asynchronously

    adding this css works .ace_identifier{background-color: rgba(0,0,0,0.1)} works http://jsbin.com/izecit/1/edit