ja display snippet from text code example

Example: ja display snippet from text

<html>
    <head>
      <title>test</title>
    <!-- load highlight.js css & js -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.0.0/styles/default.min.css" rel="stylesheet" type="text/css" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.0.0/highlight.min.js" type="text/javascript"></script>
    </head>
    <body>

    <!-- set up your tag which want to highlight -->
    <pre><code class="xml"> 
<script src='URL type='text/javascript'></script><script>functionName();</script>
    </code></pre>

    <script>
    // initialize highlight
    hljs.initHighlightingOnLoad();
    </script>

    </body>
    </html>

Tags:

Misc Example