A
A
Alexander Vladimirovich2014-07-15 13:01:58
JavaScript
Alexander Vladimirovich, 2014-07-15 13:01:58

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

4 answer(s)
V
Vlad Tokarev, 2014-11-18
@polyanin

For static code with line numbers displayed, there is an old SyntaxHighlighter . Some minor css changes may be required for acceptable display.

P
Push Pull, 2014-07-15
@deadbyelpy

if the code is static, highlightjs is fine , if it's dynamic, codemirror

A
Alexander Vladimirovich, 2014-07-15
@polyanin

We connected it and only then noticed that there is no way to display line numbers.
Not suitable. The code is static.

J
Jeremy Jackson, 2014-07-15
@jeremy13

ace ajax is still there, use it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question