src/eric7/QScintilla/Exporters/ExporterHTML.py

branch
eric7
changeset 9487
78cb053591c9
parent 9482
a2bc06a54d9d
child 9573
9960d19d66b5
--- a/src/eric7/QScintilla/Exporters/ExporterHTML.py	Tue Nov 08 11:50:50 2022 +0100
+++ b/src/eric7/QScintilla/Exporters/ExporterHTML.py	Tue Nov 08 12:19:25 2022 +0100
@@ -699,3 +699,17 @@
         foot = """\n</body>\n</html>\n"""
 
         return head + body + mermaid_initialize + foot
+
+
+def createExporter(editor, parent=None):
+    """
+    Function to instantiate an exporter object.
+
+    @param editor reference to the editor object
+    @type QScintilla.Editor.Editor
+    @param parent parent object of the exporter (defaults to None)
+    @type QObject (optional)
+    @return exporter object
+    @rtype ExporterHTML
+    """
+    return ExporterHTML(editor, parent=parent)

eric ide

mercurial