Code block and highlighting using Prism.

This is a Vaadin mapping for my <code-block> element.

If you're already using prism-element by Johannes Goebel, there's probably no reason to switch. The main difference is that I implemented a custom web component with Lit that uses Prism directly while Johannes used Polymer's prism-element. Also, I handle language and theme importing differently.

Install

Link to this version
StableReleased 08 November 2021BSD 3-clause "New" or "Revised" License
Framework Support
Vaadin platform 14+
Install with
Release notes - Version 1.0.0