Skip to content

Volto add-on providing a code block with syntax highlighting.

Notifications You must be signed in to change notification settings

affinitic/volto-code-block

 
 

Repository files navigation

Code Block for Volto (@plonegovbr/volto-code-block)

Addon implementing a code block with syntax highlight for Plone projects with Volto.

npm Code analysis checks Unit tests

Screenshots

Code Block with Dark style

Screenshot

Code Block with Light style

Screenshot

Examples

@plonegovbr/volto-code-block can be seen in action at the following sites:

You can also check its Storybook.

Install

New Volto Project

Create a Volto project

npm install -g yo @plone/generator-volto
yo @plone/volto my-volto-project --addon @plonegovbr/volto-code-block
cd my-volto-project

Install new add-on and restart Volto:

yarn install
yarn start

Existing Volto Project

If you already have a Volto project, just update package.json:

"addons": [
    "@plonegovbr/volto-code-block"
],

"dependencies": {
    "@plonegovbr/volto-code-block": "*"
}

Test it

Go to http://localhost:3000/

Credits

The development of this add on was sponsored by the Brazilian Plone Community

PloneGov-Br

About

Volto add-on providing a code block with syntax highlighting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.3%
  • Less 14.6%
  • Makefile 8.1%