D
D
darked2020-04-28 07:21:19
1C-Bitrix
darked, 2020-04-28 07:21:19

1s-bitrix code syntax highlighting, how?

Good day,
There is a site on Bitrix, there is a forum on it, how to fasten syntax highlighting to insert code into a message, for example, such a module - https://highlightjs.org/download/?
Here is the page where I want to tie - Forum page with a message

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-04-28
@AlexeyCaTHaR

Here it is written how to use = https://highlightjs.org/usage/
connect scripts and styles, initialize or through the hljs.initHighlightingOnLoad() method; or through an event.
and in the blocks <pre><code> код </code></pre>
there will be code with highlight

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question