Hash :
e86ec01f
Author :
Date :
2016-01-07T10:39:37
Add whitespace-normalizer plugin
This plugin normalizes whitespace in code blocks. It can perform
various operations. The user can configure them through the plugin
object located at Prism.plugins.NormalizeWhitespace.
Prism.plugins.NormalizeWhitespace.setDefaults({
'remove-trailing': true,
'remove-indent': true,
'left-trim': true,
'right-trim': true,
/*'indent': 2,
'remove-initial-line-feed': false,
'tabs-to-spaces': 4,
'spaces-to-tabs': 4*/
});
The plugin can be disabled for certain code blocks, by adding the
class "no-whitespace-normalization" to it.
There is also a HTML-interface using the parse-settings plugin.