The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript react client side code highlighting and prettying

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #281623


    I am using nextjs with react and styled-components.
    I was trying to implement some code snippets on my website and wasn’t that successful.
    I stumbled across some npm packages wich didn’t work that great or I was always missing either highlighting or prettying.
    I read about highlight.js and Prism as well as their npm package and core js file.

    I was hoping now since css-tricks have beautiful code snippets on their page, that someone here know how they did it.
    I am especially looking also for a way to match the highlighting style to look as the colors on my page.

    prettying + highlighting + matching the highlighting my style colors

    Thanks sooo much.
    Best, Adrian

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.