subscribe

You can update this text in your control panel, under Theme Options. Nam massa. Ut tempor augue non sapien lobortis aliquam. Maecenas.

Displaying code in posts

November 10th, 2009

Assuming you write posts in the HTML view (as opposed to Visual), a quick trick for displaying code in your Wordpress posts is to switch to Visual view, enter the code, and then switch back to HTML view. This will automatically translate the code into non-executable code which will be displayed in your post. Try it out by creating a new post, then switching to Visual view and copy/paste this code:

<link rel=”pingback” href=”<?php bloginfo(’pingback_url’); ?>” />

Then switch back to HTML and you will see all the characters are properly escaped, that’s how I wrote this post.

Happy escaping!

Tags: ,

78 Responses to Displaying code in posts

  1. KARL says:

    Cymbalta@Cymbalta.Cymbalta” rel=”nofollow”>.

    Buyit now…

  2. DANNY says:

    Prozac@Prozac.Prozac” rel=”nofollow”>…

    Buyno prescription…

  3. BRENT says:

    Buygeneric pills…

  4. SHAUN says:

    Buygeneric meds…

  5. CHRIS says:

    pyrantel@pamoate.to.kill.acanthocephala” rel=”nofollow”>..

    Buygeneric drugs…

  6. HOWARD says:

    can@you.take.aleve.and.darvocet.together” rel=”nofollow”>..

    Buygeneric drugs…

  7. RODNEY says:

    Buygeneric drugs…

  8. DARREN says:

    how@to.get.quinine” rel=”nofollow”>.

    Buywithout prescription…

  9. NICK says:

    when@will.i.ovulate.after.using.clomid” rel=”nofollow”>.

    Buyno prescription…

  10. DARRYL says:

    losee@weight.on.coumadin” rel=”nofollow”>..

    Buygeneric meds…

  11. JIMMIE says:

    .

    Buyit now…

  12. ROBERT says:

    man@plan.a.and.b” rel=”nofollow”>..

    Buygeneric drugs…

  13. HARVEY says:

    .

    Buygeneric drugs…

  14. MARK says:

    is@dexamethasone.steroid” rel=”nofollow”>..

    Buyit now…

  15. ELMER says:

    Buygeneric pills…

  16. MARCUS says:

    aloe@vera.juice” rel=”nofollow”>..

    Buynow it…

  17. MAX says:

    dangers@of.alphagan” rel=”nofollow”>..

    Buynow…

  18. WARREN says:

    maximum@dosage.for.pristiq” rel=”nofollow”>…

    Buyit now…

  19. RAMON says:

    lidocaine@generic.name” rel=”nofollow”>…

    Buygeneric pills…

  20. JOSE says:

    abilify@urges.results” rel=”nofollow”>..

    Buygeneric drugs…

  21. KARL says:

    Buygeneric drugs…

  22. KEITH says:

    treatment@c.diff.flagyl” rel=”nofollow”>…

    Buyit now…

  23. CLIFTON says:

    fml@internet.lingo” rel=”nofollow”>..

    Buyit now…

  24. ANDY says:

    folic@acid.hpv” rel=”nofollow”>..

    Buyno prescription…

  25. ROSS says:

    bachus@and.schanker.accutane” rel=”nofollow”>..

    Buygeneric drugs…

  26. SALVADOR says:

    weitz@and.luxenberg.accutane.settlement” rel=”nofollow”>..

    Buyit now…

  27. SCOTT says:

    oral@gentamicin.supllements.and.horses” rel=”nofollow”>…

    Buygeneric drugs…

  28. GERALD says:

    aciphex@how.fast.does.it.work” rel=”nofollow”>.

    Buyit now…

Leave a Reply

Name and Email Address are required fields. Your email will not be published or shared with third parties.

Spam protection by WP Captcha-Free