+ # for html entities
+ charfmt3 = PyQt4.QtGui.QTextCharFormat ()
+ charfmt3.setForeground (PyQt4.QtCore.Qt.magenta)
+
+ # for template variables - ${temp_var}
+ charfmt4 = PyQt4.QtGui.QTextCharFormat ()
+ charfmt4.setForeground (PyQt4.QtCore.Qt.darkGray)
+ charfmt4.setFontItalic (True)
+