Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to post code like php, C, C++ ...

sarossaros New
edited April 2014 in Vanilla 2.0 - 2.8

What should I install code to post in forum ?


test test
test test

Code php, C, java


  • R_JR_J Ex-Fanboy Munich Admin
    edited April 2014

    Depends on the format you have chosen:
    < code >... </ code>
    < pre > .... </ pre>


    [code] ... [/code]

  • R_JR_J Ex-Fanboy Munich Admin
    edited April 2014

    By the way: I guess the HTML < code > will always work, but beware: html is no code for the code tag. See that mess...

    <div class="Item-Body">
                <div class="Message">   
                   <p>What should I install code to post in forum ?</p>
    test test
    test test
    <p>Code php, C, java</p>
    <div id="editor-uploads-discussionid26504" class="editor-upload-saved editor-upload-readonly">
    <div class="Reactions"><a class="ReactButton Quote Visible" href=""><span class="ReactSprite ReactQuote"></span> Quote</a> <span class="Column-Score Hidden">0</span><!-- Reactions --> <span class="Bullet">·</span> <span class="ReactMenu"><span class="ReactButtons"> <a rel="nofollow" data-reaction="promote" title="Promote" href="/react/discussion/promote?id=26504" class="Hijack ReactButton ReactButton-Promote"><span class="ReactSprite ReactPromote"></span> <span class="ReactLabel">Promote</span></a>  <a rel="nofollow" data-reaction="insightful" title="Insightful" href="/react/discussion/insightful?id=26504" class="Hijack ReactButton ReactButton-Insightful"><span class="ReactSprite ReactInsightful"></span> <span class="ReactLabel">Insightful</span></a>  <a rel="nofollow" data-reaction="awesome" title="Awesome" href="/react/discussion/awesome?id=26504" class="Hijack ReactButton ReactButton-Awesome"><span class="ReactSprite ReactAwesome"></span> <span class="ReactLabel">Awesome</span></a>  <a rel="nofollow" data-reaction="lol" title="LOL" href="/react/discussion/lol?id=26504" class="Hijack ReactButton ReactButton-LOL"><span class="ReactSprite ReactLOL"></span> <span class="ReactLabel">LOL</span></a> </span></span><!-- Share --> <span class="Bullet">·</span>  <a class="ReactButton PopupWindow" href=""><span class="ReactSprite ReactFacebook"></span></a> <a class="ReactButton PopupWindow" href=""><span class="ReactSprite ReactTwitter"></span></a></div>         </div>
  • R_JR_J Ex-Fanboy Munich Admin

    Ever posted the "evil" smiley >:) at the beginning of a line?


    Not so evil any more....

  • R_JR_J Ex-Fanboy Munich Admin

    Uhm, sorry. Please excuse me spamming...

  • peregrineperegrine MVP
    edited April 2014

    aside from the formatting suggestions r_j offered....

    by the way if any one has trouble posting html tags without the tag being acted upon. you could use

    the &lt; e.g. &lt;html> becomes <html>

    some people use geshi plugin

    and there is a mod

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.