On Wed, 12 Oct 2005, Peter da Silva wrote:

<pre>

   if ( you_have_code_to_embed() ) {
     wrap_it_in_a_pre_block_and_get_on_with_your_life();
   }

</pre>

<pre>
        for(i = 0; i < 10; i++) {
                puts("Hey! Where'd my code go?");
                if(!you_can_see_this())
                        break;
        }
        if(i>=10)
                puts("Oh, there it is!");
</pre>

Well, okay, there is that... :-)

This way may lie madness, but what about an upload filter that auto-escapes angle brackets for anything wrapped in <pre> or <code> tags? Surely some of the blogging toolkits have such abilities, as plugins if not as core functionality, no?



--
Chris Devers

Reply via email to