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

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsCodeEditorHTML. See the FAQ for more details.

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)

virtual toggleComment(self)[source]

Toggle comment for the selected text.

Added in version 3.32.