Class: QgsCodeEditorHTML

A HTML editor based on QScintilla2. Adds syntax highlighting and code autocompletion.

Note

may not be available in Python bindings, depending on platform support

QgsCodeEditorHTML containing sample HTML

QgsCodeEditorHTML containing sample HTML

Class Hierarchy

Inheritance diagram of qgis.gui.QgsCodeEditorHTML

Base classes

QgsCodeEditor

A text editor based on QScintilla2.

QsciScintilla

QsciScintillaBase

QAbstractScrollArea

QFrame

QWidget

QObject

QPaintDevice

Methods

toggleComment

Toggle comment for the selected text.

class qgis.gui.QgsCodeEditorHTML[source]

Bases: QgsCodeEditor

__init__(parent: QWidget | None = None)

Constructor for QgsCodeEditorHTML

Parameters:

parent (Optional[QWidget] = None)

toggleComment(self)[source]

Toggle comment for the selected text.

Added in version 3.32.