eric6/QScintilla/Exporters/ExporterHTML.py

changeset 7954
d32319ede131
parent 7949
17c0a4ec3cf0
child 7960
e8fc383322f7
equal deleted inserted replaced
7953:68c12f4cb876 7954:d32319ede131
172 for subs_idx in range(subs_count): 172 for subs_idx in range(subs_count):
173 styleIsUsed[subs_idx - subs_start] = True 173 styleIsUsed[subs_idx - subs_start] = True
174 font = lex.font(subs_start + subs_idx) 174 font = lex.font(subs_start + subs_idx)
175 colour = lex.color(subs_start + subs_idx) 175 colour = lex.color(subs_start + subs_idx)
176 paper = lex.paper(subs_start + subs_idx) 176 paper = lex.paper(subs_start + subs_idx)
177 html += '.S{0:d} {{\n'.format(subs_idx - subs_start) 177 html += '.S{0:d} {{\n'.format(
178 subs_idx - subs_start)
178 if font.italic(): 179 if font.italic():
179 html += ' font-style: italic;\n' 180 html += ' font-style: italic;\n'
180 if font.bold(): 181 if font.bold():
181 html += ' font-weight: bold;\n' 182 html += ' font-weight: bold;\n'
182 if wysiwyg: 183 if wysiwyg:

eric ide

mercurial