I am using ace editor and I am highlighting lines by defining this code:
var Range = ace.require(\'ace/range\').Range; editor.session.addMarker(new Range(item