plugins/normalize-whitespace/demo.html

Branch


Log

Author Commit Date CI Message
Patrick Seal 91dea0c8 2022-06-10T11:29:28 Normalize Whitespace Plugin: Add configuration via attributes (#3467) Co-authored-by: Michael Schmidt <msrd0000@gmail.com>
Andreas Rohner 99c30e4e 2016-02-12T11:03:08 Add missing prism.js to the documentation of normalize-whitespace
Andreas Rohner f1c71994 2016-02-12T10:53:38 Cleanup normalize-whitespace and improve keep-markup integration This patch removes the misleading references to the parse-settings plugin from the normalize-whitespace documentation and adds a description for all supported operations. The keep-markup plugin sets the property Prism.plugins.KeepMarkup to allow the normalize-whitespace plugin to optimize its operation. Furthermore, the normalize-whitespace plugin makes sure, that it is the first plugin to run on a particular code block.
Andreas Rohner e86ec01f 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.