Updating the index now only rehighlights lines with meta keywords

This commit is contained in:
Veronica K. B. Olsen
2020-10-05 22:55:21 +02:00
parent efdf88be66
commit 003d28f9db
3 changed files with 33 additions and 8 deletions
+3 -6
View File
@@ -288,13 +288,10 @@ class GuiDocEditor(QTextEdit):
return True
def reHighLightText(self, forceBigDoc=False):
"""Run the syntax highlighter again.
def updateTagHighLighting(self, forceBigDoc=False):
"""Rerun the syntax highlighter on all meta data lines.
"""
if not self.bigDoc or forceBigDoc:
qApp.setOverrideCursor(QCursor(Qt.WaitCursor))
self.hLight.rehighlight()
qApp.restoreOverrideCursor()
self.hLight.rehighlightByType(GuiDocHighlighter.BLOCK_META)
return
def redrawText(self):