angular-ui / ui-ace

This directive allows you to add ACE editor elements.
http://angular-ui.github.io/ui-ace
MIT License
578 stars 172 forks source link

Add marker _session.addMarker #19

Open timactive opened 10 years ago

timactive commented 10 years ago

It is possible to create marker for example. I have error with Range constructor TypeError: Illegal constructor Example :

$scope.aceLoaded = function(_editor){ var _session = _editor.getSession(); _session.addMarker(new Range(1, 0, 10, 0), "ace_active-line", "fullLine"); };

douglasduteil commented 10 years ago

Hum... Oui it's possible your Range constructor error might comes from a conflict with the Range interface. Here is a minimal demo

bernardocorbella commented 10 years ago

hey, just got here to point out that the minimal version isn't working correctly for me.