• Show log

    Commit

  • Hash : e86ec01f
    Author : Andreas Rohner
    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.

  • Properties

  • Git HTTP https://git.kmx.io/kmx.io/prism.js.git
    Git SSH git@git.kmx.io:kmx.io/prism.js.git
    Public access ? public
    Description

    Lightweight, robust, elegant syntax highlighting.

    https://github.com/PrismJS/prism/

    Users
    thodg
    Tags