Jump to content


I can not find a BBcode for Formating Code?


4 replies to this topic

#1 anewhobby

    Member

  • Members
  • PipPip
  • 40 posts

Posted 06 January 2009 - 03:54 AM

Hi there...

I was woundering if you guys have a hidden BBcode for formating code ....

Liek GeSHi or somthing.. so when postign code on teh forum it is proprly colour coded and cormated?

Example:- Say like http://pastebin.com/

There are other forums that have tehse function... it is not a problem.. i just thought mabey this feature wsa already hear but i do not know how to acess it.,..

I have tried [code=C++][code="C++"] stuff like that but nothing.

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5311 posts
  • LocationSanta Clara, CA

Posted 06 January 2009 - 04:29 AM

it's just [code]...[/code]. You can find a list of the markup tags for the forum here.
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 anewhobby

    Member

  • Members
  • PipPip
  • 40 posts

Posted 06 January 2009 - 04:55 AM

Reedbeta said:

it's just [code]...[/code]. You can find a list of the markup tags for the forum here.

Yea, i have seen this page.. and teh [code] options dose not have any colour coding in it based on the code used... i was just asking if tehr was a function like this.

#4 Kenneth Gorking

    Senior Member

  • Members
  • PipPipPipPip
  • 939 posts

Posted 06 January 2009 - 05:22 AM

It defaults to C++, I think, which is about 98% of the code posted here
"Stupid bug! You go squish now!!" - Homer Simpson

#5 Reedbeta

    DevMaster Staff

  • Administrators
  • 5311 posts
  • LocationSanta Clara, CA

Posted 06 January 2009 - 05:22 AM

It highlights based on C/C++ syntax, though I don't know what other languages are available (if any).

#include <cstdio>

int main (int argc, char ** argv)
{
    printf("Hello, world!\n");
    return 0;
}

reedbeta.com - developer blog, OpenGL demos, and other projects





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users