cvette/neos-code-block

Last activity 27 Apr 2018 3 2 444
composer require cvette/neos-code-block

This package includes a node type to add code blocks with syntax highlighting to your Neos CMS project.

v2.0

Version
v2.0
Type
neos-plugin
Release Date
Apr 27, 2018 18:56
Source
git
Distribution
zip
Requires
GPL-3.0+ 563e10f176bf80c862473274bae42cd0fb20bdd5

Latest Stable Version Total Downloads License

Code block Neos plugin

This plugin adds a nodetype that allows you to display blocks of code with syntax highlighting for a wide range of languages. The highlighing is done on the server-side by using the GeSHi library.

You can set the language, toggle line numbers, set the starting line number and highlight single lines via the property editor.

Installation

composer require cvette/neos-code-block

Usage and custom styles

The Codeblock node type works out-of-the-box by inlining the necessary CSS. If you want to customize the styling you can disable the inline CSS by setting the inlineCss path of the Vette.CodeBlock:Geshi prototype to false:

prototype(Vette.CodeBlock:Geshi) {
      inlineCss = false
}

Example CSS files can be found in Resources/Public/Styles/. Please refer to the GeSHi documentation for more information.

License

The GNU General Public License Version 3 (GPLv3). Please see LICENSE for more information.

The content of the readme is provided by Github
The same vendor provides 6 package(s).