Saturday, 14 March 2020

Syntax highlighter c# Example

                              Here I have going  to explain how to use syntax highlighter



Step 1) Add in head tag
 
 <link rel="stylesheet"
      href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/styles/default.min.css"/>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/highlight.min.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>

Step 2)

   

                    <pre><code class="css">#para1 {
  text-align: center;
  color: red;
}</code></pre>

1 comment: