Looking for a Wordpress plugin

by frankl
13 replies
Hi,

Can you recommend a good wordpress plugin to display html, php etc. codes in posts?

I don't want to execute the codes, just display them inside the posts in a box.

Thanks
#plugin #wordpress
  • Profile picture of the author webpeon
    I cant recommend an exact wordpress plugin to accomplish this but what you are probably looking for is an html editor that allows the use of the <pre> tag

    anything inside a pre tag is displayed in its exact format
    Signature
    Web 2 Mobile
    The Future of The Web
    {{ DiscussionBoard.errors[6409781].message }}
  • {{ DiscussionBoard.errors[6409793].message }}
  • Profile picture of the author frank007
    Originally Posted by frankl View Post

    Hi,

    Can you recommend a good wordpress plugin to display html, php etc. codes in posts?

    I don't want to execute the codes, just display them inside the posts in a box.

    Thanks
    Hello,

    If you need to write code in your post you can put that under <code></code> tags, for example: <code><?php echo ('Hello World!'); ?></code>. Don't go for any plugin as it would put unnecessary load on the system only.

    Thank you
    {{ DiscussionBoard.errors[6411582].message }}
  • Profile picture of the author eluminousdev
    Hi Friend,

    Yes there are specific tags available in editor itself also or you can use <code></code> tag to display the code in WP Posts.
    {{ DiscussionBoard.errors[6433123].message }}
  • Profile picture of the author ndesoo
    if you want to execute the php script in the post content, you can try the plugin "PHP Execution" => wordpress.org/extend/plugins/php-execution-plugin
    {{ DiscussionBoard.errors[6457583].message }}
  • Profile picture of the author cpaunit
    you should try WP-CodeBox. you will find it helpful
    Signature
    http://www.cpaunit.com
    Searching Host & Post Offers to Promote
    {{ DiscussionBoard.errors[6477865].message }}
  • Profile picture of the author dreamtech
    If you want to write html code in your post you can put that under <code></code> tags, for example: <code><?php echo ('Hello World!'); ?></code>.
    {{ DiscussionBoard.errors[6479938].message }}
  • Profile picture of the author msu
    Better to use one of the plugins mentioned above then use the pre or code tag - for some reason, that doesn't always convert to plain text, especially if you're trying to include an img tag or something.
    Signature
    New to WordPress? Save time with my beginner's guide:
    WordPress Step-by-Step
    (for Kindle & Kindle Apps)

    I'm a top-notch WordPress developer: hire me
    {{ DiscussionBoard.errors[6487873].message }}
  • Profile picture of the author teguhyuliantos
    You can go to wordpress official website and looking the plugin that you mean. There are thousands of plugins for you to try.
    {{ DiscussionBoard.errors[6489905].message }}
  • Profile picture of the author Okoji
    Banned
    Plugin is not always the best.
    {{ DiscussionBoard.errors[6489966].message }}
  • Profile picture of the author Emil from Bavaria
    I second WP-Syntax, works for all kinds of code (languages)
    {{ DiscussionBoard.errors[6501250].message }}
  • Profile picture of the author afriedl
    Use Wordpress Code Snippet. It does a great job of displaying your code and even does syntax highlights.
    {{ DiscussionBoard.errors[6507318].message }}

Trending Topics