From 9334c854fb65e74930fa7fcdb8cf68629ec28708 Mon Sep 17 00:00:00 2001 From: "Ryosuke.I" Date: Thu, 27 Dec 2018 15:18:03 +0900 Subject: [PATCH] add definition of highlightLines --- types/ace/index.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/types/ace/index.d.ts b/types/ace/index.d.ts index cd20b57f05..2588539c0c 100644 --- a/types/ace/index.d.ts +++ b/types/ace/index.d.ts @@ -549,6 +549,16 @@ declare namespace AceAjax { getFoldsInRange(range: Range): any; highlight(text: string): void; + + + /** + * Highlight lines from `startRow` to `EndRow`. + * @param startRow Define the start line of the highlight + * @param endRow Define the end line of the highlight + * @param clazz Set the CSS class for the marker + * @param inFront Set to `true` to establish a front marker + **/ + highlightLines(startRow:number, endRow: number, clazz: string, inFront: boolean): Range; /** * Sets the `EditSession` to point to a new `Document`. If a `BackgroundTokenizer` exists, it also points to `doc`.