R
R
Ramil2017-06-21 16:19:52
npm
Ramil, 2017-06-21 16:19:52

How to highlight source code on a page?

The page displays the html source code in the code tag. You need to highlight this code. How can this be implemented? Html is generated from Jade. Is there a plugin for gulp?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2017-06-21
@k12th

Google "syntax highlight". There are several libraries, the first thing that came to mind is https://highlightjs.org/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question