A highlight is a line number that is highlighted across the entire editor.
Create a new highlight with editor.createHighlight() (see:
createHighlight}) and delete it with highlight.delete().
Assign a css class to the highlight with highlight.cssClass (see: cssClass) to
determine things like what background color you'd like the highlight to have.
Set the line number of the highlight with highlight.lineNumber (see:
lineNumber). This will move the highlight to the new line number.
Set the visibility of the highlight with highlight.visible (see: visible).
This will show or hide the highlight.
Highlight
A highlight is a line number that is highlighted across the entire editor.
Create a new highlight with
editor.createHighlight()
(see: createHighlight}) and delete it withhighlight.delete()
.Assign a css class to the highlight with
highlight.cssClass
(see: cssClass) to determine things like what background color you'd like the highlight to have.Set the line number of the highlight with
highlight.lineNumber
(see: lineNumber). This will move the highlight to the new line number.Set the visibility of the highlight with
highlight.visible
(see: visible). This will show or hide the highlight.Example
Example CSS: