File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,16 @@ export class Editor extends HTMLWidget {
124124 return this ;
125125 }
126126
127+ addLineClass ( options : { lineNum : number , where ?: "text" | "background" | "gutter" , cssClass : string } ) : this {
128+ this . _codemirror . addLineClass ( this . _codemirror . getLineHandle ( options . lineNum ) , options . where ?? "background" , options . cssClass ) ;
129+ return this ;
130+ }
131+
132+ removeLineClass ( options : { lineNum : number , where ?: "text" | "background" | "gutter" , cssClass : string } ) : this {
133+ this . _codemirror . removeLineClass ( this . _codemirror . getLineHandle ( options . lineNum ) , options . where ?? "background" , options . cssClass ) ;
134+ return this ;
135+ }
136+
127137 removeAllHighlight ( ) : this {
128138 for ( const marked of this . _markedText ) {
129139 marked . clear ( ) ;
You can’t perform that action at this time.
0 commit comments