7 Module implementing an exporter for HTML. |
7 Module implementing an exporter for HTML. |
8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 try: # Only for Py2 |
|
13 import StringIO as io # __IGNORE_EXCEPTION__ |
|
14 except (ImportError, NameError): |
|
15 import io # __IGNORE_WARNING__ |
|
16 |
|
17 # This code is a port of the C++ code found in SciTE 1.74 |
12 # This code is a port of the C++ code found in SciTE 1.74 |
18 # Original code: Copyright 1998-2006 by Neil Hodgson <neilh@scintilla.org> |
13 # Original code: Copyright 1998-2006 by Neil Hodgson <neilh@scintilla.org> |
19 |
14 |
20 import os |
15 import os |
21 import sys |
16 import sys |
|
17 import io |
22 |
18 |
23 from PyQt5.QtCore import Qt |
19 from PyQt5.QtCore import Qt |
24 from PyQt5.QtGui import QCursor, QFontInfo |
20 from PyQt5.QtGui import QCursor, QFontInfo |
25 from PyQt5.QtWidgets import QApplication |
21 from PyQt5.QtWidgets import QApplication |
26 from PyQt5.Qsci import QsciScintilla |
22 from PyQt5.Qsci import QsciScintilla |