Igor S.
Igor S.

Reputation: 3350

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/

Upvotes: 0

Views: 1482

Answers (1)

a user
a user

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

Related Questions