eric6.QScintilla.Exporters.ExporterHTML
Module implementing an exporter for HTML.
Global Attributes
Classes
ExporterHTML |
Class implementing an exporter for HTML. |
HTMLGenerator |
Class implementing an HTML generator for exporting source code. |
Functions
ExporterHTML
Class implementing an exporter for HTML.
Derived from
ExporterBase
Class Attributes
Class Methods
Methods
Static Methods
ExporterHTML (Constructor)
ExporterHTML(editor, parent=None)
Constructor
- editor
-
reference to the editor object (QScintilla.Editor.Editor)
- parent
-
parent object of the exporter (QObject)
ExporterHTML.__generateFromMarkdown
__generateFromMarkdown(useDarkScheme)
Private method to convert Markdown text into HTML.
- useDarkScheme (bool)
-
flag indicating to export using a dark color
scheme
- Returns:
-
processed HTML
- Return Type:
-
str
ExporterHTML.__generateFromReSTDocutils
__generateFromReSTDocutils()
Private method to convert ReST text into HTML using 'docutils'.
- Returns:
-
processed HTML (string)
ExporterHTML.exportSource
exportSource()
Public method performing the export.
HTMLGenerator
Class implementing an HTML generator for exporting source code.
Derived from
object
Class Attributes
Class Methods
Methods
Static Methods
HTMLGenerator (Constructor)
HTMLGenerator(editor)
Constructor
- editor
-
reference to the editor object (QScintilla.Editor.Editor)
HTMLGenerator.generate
generate(tabSize=4, useTabs=False, wysiwyg=True, folding=False, onlyStylesUsed=False, titleFullPath=False)
Public method to generate HTML for the source editor.
- tabSize=
-
size of tabs (integer)
- useTabs=
-
flag indicating the use of tab characters (boolean)
- wysiwyg=
-
flag indicating colorization (boolean)
- folding=
-
flag indicating usage of fold markers
- onlyStylesUsed=
-
flag indicating to include only style
definitions for styles used in the source (boolean)
- titleFullPath=
-
flag indicating to include the full file path
in the title tag (boolean)
- Returns:
-
generated HTML text (string)