Show Codes on website or Blogger with Copy Option ft. Prismjs.com
Steps :-
1. Add PrismJS Library To Your Website .
(i) Add CSS CDN .
(ii) Add Javascript CDN
2. Now, Use The Combo of <pre> and <code> Tag To Show Your Code .
Sample Code...
Here is Code Will Excuted as mentioned UPPlugins :-
1. Show line Numbers :-
For Showing Line numbers add <body class="line-numbers"> <!-- enabled for the whole page --> . See More Details ->
Note :- You must have to use HTML Entity Encoder To Show HML in Code Tag Otherwise the will run in the page .
Example :- https://mothereff.in/html-entities
Comments