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 &amp; 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>
      &#x3C;!-- this is a html comment --&#x3E;
      &#x3C;!-- this is a html comment 
           across multiple lines 
      --&#x3E;   
      &#x3C;p&#x3E;
      This is a paragraph
      &#x3C;/p&#x3E;
      
      &#x3C;style&#x3E;
    
      /* this is a css and a js comment */
      /* this is a css and js comment 
         across multiple lines
      */
      html { display : block; }
      
      &#x3C;/style&#x3E;
      
      &#x3C;script&#x3E;
    
      // 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 */