class_docstr: Syntax highlighter for the Python language.
      
class_docstr_tok: ["Syntax","highlighter","for","the","Python","language","."]
docstr: Apply syntax highlighting to the given block of text.
          
docstr_tok: ["Apply","syntax","highlighting","to","the","given","block","of","text","."]
code: def highlightBlock(self, text):
      """Apply syntax highlighting to the given block of text."""
      # Do other syntax formatting
      rules = self.rules.copy()
      for expression, nth, format in rules:
          format = self.styles[format]
  
          for n, match in enumerate(re.finditer(expression, text)):
              if n < nth:
                  continue
              start = match.start()
              length = match.end() - start
              self.setFormat(start, length, format)
  
      self.applySearchHighlight(text)
      self.setCurrentBlockState(0)
  
      # Do multi-line strings
      in_multiline = self.match_multiline(text, *self.tri_single)
      if not in_multiline:
          in_multiline = self.match_multiline(text, *self.tri_double)
  
imports: import keyword
  import os
  import pkgutil
  import re
  import subprocess
  import sys
  from argparse import Namespace
  from collections import OrderedDict
  from functools import lru_cache
  import pyqtgraph
  from pyqtgraph.Qt import QT_LIB, QtCore, QtGui, QtWidgets
  import exampleLoaderTemplate_generic
  import utils
label_desc: Use image node_id 3 for calling the PythonHighlighter obj's underlying member method code with example usage: obj.highlightBlock(text) without return types