2017 © Pedro Peláez
 

spress-plugin spress-codeblock

Add codeblock Twig function to Spress.

image

ghislainphu/spress-codeblock

Add codeblock Twig function to Spress.

  • Wednesday, May 25, 2016
  • by GhislainPhu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Spress Codeblock

Spress 2 ready, (*1)

Spress plugin to enable the Twig codeblock function from ramsey/twig-codeblock., (*2)

Getting Started

Update your composer.json to use GhislainPhu/Pygments.php instead of kzykhys/Pygments.php:, (*3)

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/GhislainPhu/Pygments.php"
        }
    ],
    "require": {
        "kzykhys/pygments": "dev-symfony-process-3 as 1.0-dev"
    }
}

Run:, (*4)

composer require ghislainphu/spress-codeblock

Usage

Please refer to upstream's README.md for more informations., (*5)

Known issues

  • < and > are converted to &lt; and &gt; in markdown files, (*6)

    This issue exists because the markdown converter runs before Twig., (*7)

    Solution: Wrap your code inside of a div tag: ```html, (*8)

{% codeblock lang:php %}

```, (*9)

License

This project is licensed under the MIT License., (*10)

See LICENSE.md for more informations., (*11)

The Versions

25/05 2016

dev-master

9999999-dev

Add codeblock Twig function to Spress.

  Sources   Download

MIT

The Requires

 

by Ghislain PHU

plugin pygments syntax highlight spress

25/05 2016

0.1.0

0.1.0.0

Add codeblock Twig function to Spress.

  Sources   Download

MIT

The Requires

 

by Ghislain PHU

plugin pygments syntax highlight spress