Hiccups with highlightjs
Today, I was searching for code highlighters to use in one of my projects. I came across highlightjs but I ran into few hiccups while integrating it. I listed them below so that others will not waste time on those.
- As a habit, I went to the project’s github page and tried to include the source files, which dint work. You should always get the packages from https://highlightjs.org/download/
- The downloaded package (in my case, just the ruby language) had all the css files included. Make sure you put only the required one in your assets folder. Otherwise, you will see funny stlylings mostly because of overriding from other stylesheets.