• I’d like to display code snippets in my blog as plain text. It keeps displaying as formatted HTML, for example <? echo "
    <li>Howdy</li>
    "; ?>
    will display as * Howdy.

    Can someone tell me how to do this? I’ve attempted to use <PRE> and <TEXTAREA>, but <PRE> doesn’t work the way I want it to (<LI> still appears as a *) and <TEXTAREA> makes everything look really messy.

    I’d like to be able to use: highlight_file or something, but it doesn’t seem like I can use PHP code within a blog entry.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to display code in blog entries?’ is closed to new replies.