Add DynastieColor button icon to tinymce

This commit is contained in:
2012-11-15 18:39:17 +01:00
parent e12b8685b1
commit 5597bd0523
3 changed files with 66 additions and 64 deletions

View File

@@ -220,7 +220,7 @@ class Index(DynastieGenerator):
self.addWarning('Language ' + language + ' not supported by current version of pygments')
lexer = get_lexer_by_name('c', **lexer_options)
formatter_options = {'classprefix' : 'color_', 'style' : 'emacs'}
formatter_options = {'classprefix' : 'color_emacs_', 'style' : 'emacs'}
for k in node.attributes.keys():
attr = node.attributes[k]
@@ -228,7 +228,9 @@ class Index(DynastieGenerator):
if attr.name == 'language': continue
name = attr.name
value = attr.value
if name == 'colouring': name = style
if name == 'colouring':
name = 'style'
formatter_options['classprefix'] = 'color_' + value + '_'
formatter_options[name] = value
formatter = get_formatter_by_name('html', **formatter_options)