Enable syntax highlighter evolved in comments in wordpress

If you would like to enable syntax higlighter evolved by alex gorbatchev wordpress plugin to also do syntax higlighting in the comments then you will have to add enable shortcodes in your comments.Here is how to to enable syntax higlighter in comments.Add the following code to your theme’s function.php

add_filter( 'comments_template', 'do_shortcode' );
add_filter( 'comment_text', 'do_shortcode' );

That is all.

If you liked this article please do leave a reply and share it with friends.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.