#### PyKDE - Python Bindings for KDE

# class KSyntaxHighlighter |
Table of contents
Modules
kspell Classes
All Classes

Module | kspell
Class | KSyntaxHighlighter
Inherits | QSyntaxHighlighter

### enums

- SyntaxMode = {PlainTextMode, RichTextMode }

### methods

- KSyntaxHighlighter (textEdit, colorQuoting = 0, QuoteColor0 = Qt .black, QuoteColor1 = QColor (0x00 ,0x80 ,0x00 ), QuoteColor2 = QColor (0x00 ,0x80 ,0x00 ), QuoteColor3 = QColor (0x00 ,0x80 ,0x00 ), mode = PlainTextMode)

  returns a KSyntaxHighlighter instance
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  textEdit | QTextEdit |
  colorQuoting | bool | 0
  QuoteColor0 | QColor | Qt .black
  QuoteColor1 | QColor | QColor (0x00 ,0x80 ,0x00 )
  QuoteColor2 | QColor | QColor (0x00 ,0x80 ,0x00 )
  QuoteColor3 | QColor | QColor (0x00 ,0x80 ,0x00 )
  mode | KSyntaxHighlighter.SyntaxMode | PlainTextMode

- highlightParagraph (text, endStateOfLastPara)

  returns (int)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  text | QString |
  endStateOfLastPara | int |