Y
Y
yamatoko2015-05-17 05:27:13
css
yamatoko, 2015-05-17 05:27:13

How to make code highlighting for blogger?

Advise a simple way, style is better , not a plugin that is loaded from a third-party site. I found several ways, but they are either outdated or require literally 8 files to be connected.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Moskus, 2015-05-17
@yamatoko

Highlighting code with CSS alone is not done because for CSS it must be marked up with HTML elements.
What is so difficult in editing the template and connecting, for example, this one https://highlightjs.org/usage/ - I don’t know. Three lines total.

D
Denis Malinochkin, 2015-05-17
@DiAsCrafts

As Moskus already said , highlight.js can be used . However, there is also the Prism library , which has different language coverage (for example, it has Jade highlighting). Therefore, I would advise considering both solutions, starting from the necessary support.

S
Sergey Mochalov, 2015-11-04
@Vyatka

If directly in the entries themselves for Blogger ...
Then it is enough to insert in the template code before

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question