Prism.js TD v.2
by neohiro79
HTML
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.0/styles/googlecode.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.0/highlight.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.22.0/themes/prism.min.css" rel="stylesheet" />
<!--<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.22.0/plugins/unescaped-markup/prism-unescaped-markup.min.css" rel="stylesheet" />-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.22.0/prism.min.js"></script>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.22.0/plugins/unescaped-markup/prism-unescaped-markup.min.js"></script>-->
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.22.0/plugins/autoloader/prism-autoloader.min.js"></script>-->
</head>
<body class="language-markup"><!-- default code language -->
<h1>Prism.js Testcases:</h1>
<!--
https://github.com/PrismJS/prism/issues/2651
Prism only highlights the text content of code elements.
You have escape all < and & characters inside code elements or use our Unescaped markup plugin.
-->
<b>HTML, CSS & JS:</b>
<!--<pre><code class="language-markup">--><!-- for default global markup styling see body class -->
<!--<pre><code class="language-none">--><!-- individually opt out -->
<pre><code>
<!-- this is a html comment -->
<!-- this is a html comment
across multiple lines
-->
<p>
This is a paragraph
</p>
<style>
/* this is a css and a js comment */
/* this is a css and js comment
across multiple lines
*/
html { display : block; }
</style>
<script>
// this is a javascript comment
/* this is a css and a js comment */
/* this is a css and js comment
across...
CSS
/* https://cdnjs.com/libraries/prism */