Addon implementing a code block with syntax highlight for Plone projects with Volto.
@plonegovbr/volto-code-block can be seen in action at the following sites:
You can also check its Storybook.
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
If you already have a Volto project, just update package.json
:
"addons": [
"@plonegovbr/volto-code-block"
],
"dependencies": {
"@plonegovbr/volto-code-block": "*"
}
Go to http://localhost:3000/
The development of this add on was sponsored by the Brazilian Plone Community