Scrivito Highlight Code
A code hightlighting React component/Scrivito widget for the Scrivito CMS.
Open your terminal.
$ cd to your Scrivito project
$ npm install scrivito-highlight-code
Add this line to your index.js:
Also add the styling of the widget to your app. This can be done by either loading it via
css-loader (e.g. in
Or by including the styling to your style sheets (e.g. in
Code syntax hightlighting for more than 180 programming languages.
In the widget properties you can set:
- Which language is in use