0

How to use highlight js library?

How can I use highlight.js in website's code and text area. How to initialize highlight.js library.

31st May 2021, 4:01 AM
Coder-Rohit[{(∞)}]
Coder-Rohit[{(∞)}] - avatar
4 ответов
+ 1
Coder-Rohit[{(∞)}] I have created an example with highlight JS for you. https://code.sololearn.com/Wp3Siilk26Ua/ To change the theme, you need to change the linked stylesheet name. In this page there is a list of supported themes. https://highlightjs.org/static/demo/ I used Agate theme in my example.
31st May 2021, 6:45 AM
Ore
Ore - avatar
0
How can I control highlight.js theme
31st May 2021, 4:08 AM
Coder-Rohit[{(∞)}]
Coder-Rohit[{(∞)}] - avatar