Some test cases of me using prism to add the css declaration to indicate language used.
I posted a question recently in the Perch slack chat about what would be a good syntax highlighter for sharing code on tutorials. I received three recommendations to try out Prismjs and I was glad I asked.
So as a test I created a Perch template to use in Blocks to test various code snippets. The documentation in prism says users should apply use the following syntax
<pre>
<code>
Write code here
</code>
</pre>
and apply a class on the html code snippet to indicate which language is used. Prism has options for many languages. From simple markup, to php, sass, javascript, react, python, etc.