WordPress Code Highlight plugin – WP-GeSHi-Highlight

WP-GeSHi-Highlight is an enhanced highlighting plugin for WP-Syntax. The output code is more concise and comes with the latest WordPress API calls. WP-GeSHi-Highlight supports multi-language highlighting.

WP-GeSHi-Highlight code writing format

<pre lang = “html” line = “1” escaped = “true”>
// add code here …
</ pre>

Where lang = “html” means the code language is html, please modify it according to your needs; line = “1” means show the line number.

Note: using WP-GeSHi-Highlight code highlighting plugin in WordPress backend, you need to add code in html mode, do not switch to the visual mode, otherwise the code is easy to escape!

If you are not satisfied with the effect, there has a wp-geshi-highlight.css file in WP-GeSHi-Highlight plugin directory, just copy this file to your current theme root directory, and then modify the css code inside can. This way, even if you update the WP-GeSHi-Highlight plugin, you will not lose your custom styles.

Search WP-GeSHi-Highlight on the WordPress backend plugin installation interface or install WP-GeSHi-Highlight here https://wordpress.org/plugins/wp-geshi-highlight/