3
6 Comments

Looking for a good code markup lib for my new project

I'm looking for a sound code markup library for my new project.
These days I'm creating a new code generator web app, and I'm looking for a good code markup lib that I can use.
I'm sure that there are good open-source ones, but I just found an open-source full code editor on Github

Any recommendations?

on June 5, 2022
  1. 1

    If you're using React, I'd recommend the react-syntax-highlighter npm module: https://www.npmjs.com/package/react-syntax-highlighter

    Otherwise, I'd definitely recommend prism.js or highlight.js!

  2. 1

    Do you mean an opensource code editor/IDE? If so, I'd recommend Monaco which is used for VS Code: https://github.com/microsoft/monaco-editor

    Or do you mean a code syntax highlighter such as https://highlightjs.org/ ?

    1. 2

      Yes, im looking for a code highlighter. This is the proper term!
      Thank's

      1. 1

        Ahh ok! Yeh highlightjs and prism are the top ones I reckon.