positron48/prism-code-highlight

Prism syntax highliter extension for Bolt.

v1.0.6 2022-06-05 20:08 UTC

This package is auto-updated.

Last update: 2025-03-16 21:12:25 UTC


README

The Bolt extension automatically add prism syntax highliter on your site.

Current build of prism here.

Enabled languages:

  • markup
  • css
  • clike
  • javascript
  • arduino
  • bash
  • c
  • csharp
  • cpp
  • dart
  • dns-zone-file
  • docker
  • gcode
  • git
  • go
  • graphql
  • http
  • java
  • javadoclike
  • log
  • lua
  • makefile
  • markdown
  • markup-templating
  • nginx
  • php
  • phpdoc
  • php-extras
  • processing
  • python
  • scheme
  • sql
  • twig
  • uri

Enabled plugins:

  • line-numbers
  • toolbar
  • copy-to-clipboard

Install

composer require positron48/prism-code-highlight

Config is available on config/extensions/positron48-prismcodehighlight.yaml. You can enable or disable prism on backend (admin pages) and frontend separately.

Customization

You can also make your own build and rewrite css and js file at /assets/prism-code-highlight/ after installation of extension.