Answer the question
In order to leave comments, you need to log in
What is most commonly used for client side syntax highlighting in javascript?
Hello. The first time I needed to do syntax highlighting on the pages of the site. I found a bunch of ready-made solutions, I don’t know what to choose. Please advise the most common, most common solution for this problem. I myself am looking towards highlightjs.org
Answer the question
In order to leave comments, you need to log in
For static code with line numbers displayed, there is an old SyntaxHighlighter . Some minor css changes may be required for acceptable display.
if the code is static, highlightjs is fine , if it's dynamic, codemirror
We connected it and only then noticed that there is no way to display line numbers.
Not suitable. The code is static.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question