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 ?

Example:

[CODE]
test test
test test
[/CODE]

Code php, C, java

Comments

  • R_JR_J Ex-Fanboy Munich Admin
    edited April 2014

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

    markdown:
    ~~~
    ...
    ~~~

    BBCode
    [code] ... [/code]

    peregrineUnderDog
  • 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>
    
    <p>Example:</p>
    
    <p>[CODE]
    test test
    test test
    [/CODE]</p>
    
    <p>Code php, C, java</p>
                </div>
    
    <div id="editor-uploads-discussionid26504" class="editor-upload-saved editor-upload-readonly">
    
    
    </div>
    <div class="Reactions"><a class="ReactButton Quote Visible" href="http://vanillaforums.org/post/quote/26504/Discussion_26504"><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="http://vanillaforums.org/post/facebook/discussion?id=26504"><span class="ReactSprite ReactFacebook"></span></a> <a class="ReactButton PopupWindow" href="http://vanillaforums.org/post/twitter/discussion?id=26504"><span class="ReactSprite ReactTwitter"></span></a></div>         </div>
    
    Linc
  • 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...

    UnderDog
  • 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 http://vanillaforums.org/discussion/comment/204031/#Comment_204031

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

    UnderDog
Sign In or Register to comment.