# eric6.QScintilla.Exporters.ExporterHTML

Module implementing an exporter for HTML.

### Global Attributes

None

### Classes

ExporterHTML | Class implementing an exporter for HTML.
HTMLGenerator | Class implementing an HTML generator for exporting source code.
_StrikeThroughExtension | Class is placed here, because it depends on imported markdown, and markdown import is lazy.

### Functions

None

## ExporterHTML

Class implementing an exporter for HTML.

### Derived from

ExporterBase

### Class Attributes

None

### Class Methods

None

### Methods

ExporterHTML | Constructor
__generateFromMarkdown | Private method to convert Markdown text into HTML.
__generateFromReSTDocutils | Private method to convert ReST text into HTML using 'docutils'.
exportSource | Public method performing the export.

### Static Methods

None

#### 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()

Private method to convert Markdown text into HTML.

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.

Up

## HTMLGenerator

Class implementing an HTML generator for exporting source code.

### Derived from

object

### Class Attributes

None

### Class Methods

None

### Methods

HTMLGenerator | Constructor
generate | Public method to generate HTML for the source editor.

### Static Methods

None

#### 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)

Up

## _StrikeThroughExtension

Class is placed here, because it depends on imported markdown, and markdown import is lazy.

(see http://achinghead.com/ python-markdown-adding-insert-delete.html this page for details)

### Derived from

markdown.Extension

### Class Attributes

DEL_RE

### Class Methods

None

### Methods

extendMarkdown |

### Static Methods

None

#### _StrikeThroughExtension.extendMarkdown

extendMarkdown(md, md_globals)
Up