Skip to content

Instantly share code, notes, and snippets.

@mattbierner
Created November 14, 2013 21:14
Show Gist options
  • Select an option

  • Save mattbierner/7474429 to your computer and use it in GitHub Desktop.

Select an option

Save mattbierner/7474429 to your computer and use it in GitHub Desktop.
Atum Line Highlighting Example
model.location.subscribe(\current -> {
if (current && current.start)
cm.removeLineClass(current.start.line - 1, 'background', 'active-line');
}, null, 'beforeChange');
model.location.subscribe(\x -> {
if (x)
cm.addLineClass(x.start.line - 1, 'background', 'active-line');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment