https://github.com/cvette/neos-code-block
  
  
    A node type to add code blocks with syntax highlighting to your Neos CMS project. 
    https://github.com/cvette/neos-code-block
  
highlighting neoscms nodetype
        Last synced: 7 months ago 
        JSON representation
    
A node type to add code blocks with syntax highlighting to your Neos CMS project.
- Host: GitHub
- URL: https://github.com/cvette/neos-code-block
- Owner: cvette
- License: gpl-3.0
- Created: 2017-04-15T19:57:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T18:57:09.000Z (over 7 years ago)
- Last Synced: 2025-03-24T15:11:20.934Z (7 months ago)
- Topics: highlighting, neoscms, nodetype
- Language: CSS
- Homepage:
- Size: 20.5 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
 
Awesome Lists containing this project
README
          [](https://packagist.org/packages/cvette/neos-code-block)
[](https://packagist.org/packages/cvette/neos-code-block) 
[](https://packagist.org/packages/cvette/neos-code-block)
# 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](http://qbnz.com/highlighter/) 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](http://qbnz.com/highlighter/geshi-doc.html#using-an-external-stylesheet) for more information.
## License
The GNU General Public License Version 3 (GPLv3). Please see [LICENSE](LICENSE) for more information.