Add DynastieColor button icon to tinymce
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user