How to show PHP code in comments
I've got the HTML Formatter add-on installed, but whenever I put bits of PHP within the <code> tags, they don't show up. Is there an add-on that will help?
0
This discussion has been closed.
Comments
Later...
I think I misunderstood your question, did you set the format to HTML?
Right, I don't have those options in my own forum. And when I try to check the box for "Show the comment format type selector when adding comments", it unchecks itself.
you could try to replace < by <
Yes, but some folks are posting huge chunks of PHP, they'll probably not want to have to change all the brackets.
<?php "Hello world"; ?>
if you have installed and enabled extension Html Formatter and you select Format comments as Html bellow the comment body input
Here is copy&paste of your post from above formatted by Html formatter:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php the_content(); ?> <?php endwhile; endif; ?>
What's the problem? :-)
http://newwinnipeg.com/community/discussion/2118/