Plugin Directory

WP Chili

Author: Andrea Ercolino

Easy code highlighting for Wordpress with Chili (the bundled version is 1.9):

  1. Switch to the code tab
  2. Put your code snippet inside <code class="lang"></code> tags
  3. Replace the above lang with the language to highlight

Examples

  • <code class="php">echo "&lt;script&gt;alert( 'Hello ' + $name );&lt;/script&gt;";</code>
  • <code class="javascript">alert( 'Hello ' + $name );</code>

Tips

  • Put your code inside <pre><code class="lang"></code></pre> tags if you want to preserve white space
  • Use WP Chili with Enzymes to achieve greater flexibility (like not having to switch to the code tab for introducing your code snippets, like not having to escape the code yourself, like applying templates, ...)

Download

FYI

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(1 ratings)