Good Wordpress Theme / Plugin for Demonstrating Code Examples and Scripts

I have an old version of Wordpress, and its WYSIWYG editor really twists the code examples on my blogs (deleting lines and spaces when saving, etc.).

I want to update and install a theme / plugin that simplifies in a display codepleasant way.

Any suggestions?

+3
source share
3 answers

Many sites use Google Code Prettify to highlight syntax in code, and people have developed Wordpress extensions that make it easy to add GCP to your blog. Here is an example of one of them:

http://www.deanlee.cn/wordpress/google-code-prettify-for-wordpress/

+2
source
+2

I recommend WP-Syntax . From usage notes:

Block code blocks with <pre lang = "LANGUAGE" line = "1"> and </pre> where LANGUAGE supports GeSHi language syntax. Line attribute as desired.

+1
source

Source: https://habr.com/ru/post/1740881/


All Articles