Generic Syntax Highlighting – for code examples
Use the GeSHi block to display syntax highlighted code for a range of languages used in WordPress.
Screenshot
Example
PHP example
echo 'Code is Poetry';
and that's a fact
HTML example
<p>Code is Poetry</p>
echo 'Code is Poetry';
Notes
- Supported languages are:
- None – code is escaped by not highlighted
- HTML – supports HTML5
- CSS – see also CSS – oik-css/css
- JavaScript
- jQuery
- PHP
- MySQL
- If you want to display CSS and have it apply to your content use the CSS – oik-css/css block.
- Forked from and transforms from GeSHi – oik-block/geshi.
- Transforms from the [bw_geshi] shortcode.