public static StartUpdate ( TextDocument doc, Mono.TextEditor.Highlighting.SyntaxMode mode, int startOffset, int endOffset ) : void | ||
doc | TextDocument | |
mode | Mono.TextEditor.Highlighting.SyntaxMode | |
startOffset | int | |
endOffset | int | |
return | void |
void HandleTextReplaced(object sender, DocumentChangeEventArgs e) { if (doc == null || doc.SuppressHighlightUpdate || doc.CurrentAtomicUndoOperationType == OperationType.Format) { return; } SyntaxModeService.StartUpdate(doc, this, e.Offset, e.Offset + e.InsertionLength); }
public void UpdateDocumentHighlighting() { if (doc == null || doc.SuppressHighlightUpdate) { return; } SyntaxModeService.StartUpdate(doc, this, 0, doc.TextLength); }
void HandleTextSet(object sender, EventArgs e) { if (doc == null || doc.SuppressHighlightUpdate) { return; } SyntaxModeService.StartUpdate(doc, this, 0, doc.TextLength); }