Ready to get started?Download WordPress


Posting source code and missing tags (3 posts)

  1. Anonymous
    Posted 10 years ago #

    I wanted to be able to post some PHP or HTML source code, but on posting, the beginning <?php line or <html> tags are missed when viewed. Is there any modifications that can be made to ensure the full source code is displayed?

  2. Dougal Campbell
    Posted 10 years ago #

    To display code, substitute '&lt;' for all the '<' characters.
    If you type: "&lt;?php blah blah blah ?>", it will show up here as "<?php blah blah blah ?>".

  3. Anonymous
    Posted 10 years ago #

    While that substituting ‘<’ for all the ‘<’ characters is true, i was hoping for an automated way of posting the exact contents of a post as i am intending to have visitors post code. Maybe i should play around with the wordpress code.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.