R
R
Rad1us2015-12-16 08:48:07
WordPress
Rad1us, 2015-12-16 08:48:07

Which plugin to use to highlight code in Wordpress posts?

I use Crayon Syntax Highlighter so far, I also tried EnlighterJS Syntax Highlighter. But all this is not right - I need the most simple and convenient plugin that would highlight lines of code as implemented in Habré (gray background, code in a different font and the absence of any scrollbars and other things):
ff8e676518924de299fbb12273acc582.PNG
(screen made from this article, if anything - habrahabr.ru/post/273191/)
In theory, there is a WP-Syntax plugin, it gives what I need, with one exception - it is extremely inconvenient to use it, you always need to go into a text editor and write a construction like <pre bla-bla-bla> ТУТ КОД </pre>
there Is there any a suitable plugin in mind, or how else can I implement what I need?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nobles, 2015-12-16
@rad1us

I recommend WordPress Rainbow Hilite. There are highlighting options for different code. I myself use it on my website, an example can be found here: rightblog.ru/2905

W
WP Panda, 2015-12-16
@wppanda5

There are many of them, the most universal
https://wordpress.org/plugins/syntaxhighlighter/sc...
the one that was recommended above is also nothing
if knowledge allows, I recommend that you write your own based on prismjs.com ready-made on it is in the repository, but everything is done through ass, he is the best in my opinion. But his markup of the code that he picks up differs from the generally accepted one, so if the site already has a lot of code in the articles, then it won’t work out painlessly, but the script itself is cool.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question