View Single Post
Do NOT use CODE tag for posting source code
Old
  (#1)
koraX
Member
 
koraX's Avatar
 
Status: Offline
Posts: 145
Join Date: Jan 2004
Location: Slovak Republic
Default Do NOT use CODE tag for posting source code - 06-01-2004

Do NOT use CODE tag for posting source code

Code:
// THIS PIECE OF CODE MAKES NO SENSE:
void BotThink( cBot *pBot )
{ 
   printf("testing string highlighting %d",1);
   int too_bad_number_are_not_highlighted = 12345;
   // STEP 1: Update status
   pBot->UpdateStatus(); 
   // PASS THROUGH ENGINE
   if((keywords_were_blue)&&(variables_were_not)) {
		I_would_be_happy = TRUE;
   }
   /* another comment */
   return;
}
use PHP tag instead :

PHP Code:
// THIS PIECE OF CODE MAKES NO SENSE:
void BotThinkcBot *pBot )

   
printf("testing string highlighting %d",1);
   
int too_bad_number_are_not_highlighted 12345;
   
// STEP 1: Update status
   
pBot->UpdateStatus(); 
   
// PASS THROUGH ENGINE
   
if((keywords_were_blue)&&(variables_were_not)) {
        
I_would_be_happy TRUE;
   }
   
/* another comment */
   
return;



kXBot
koraX's utils
- see my homepage for other projects (OpenGL CSG Editor, FAT16 Sim, NNetwork Sim, ...)

Last edited by koraX; 06-01-2004 at 10:00..
  
Reply With Quote