Reputation: 3350
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/
Upvotes: 0
Views: 1482
Reputation: 24084
$('.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
Upvotes: 3