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.


  • Check out this demo page to quickly tryout all different stylings.
  • Check this link out on how to use.
Like what you read? Give Gautam Chandra N a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.