|
-
Jun 20th, 2006, 09:13 AM
#1
Thread Starter
Frenzied Member
Code Colouring
This is some code
VB Code:
If strName = "ILMV" then
MsgBox "w00t"
End If
Using PHP etc, how do i colour code like that ^^^
-
Jun 20th, 2006, 09:52 AM
#2
Re: Code Colouring
Python
Code:
# Find out what char the term has.
for link in constants.LINK_CHAR:
if link[0] == term and char1 != '':
char2 = link[1]
if link[0] == term and char1 == '':
char1 = link[1]
-
Jun 20th, 2006, 12:01 PM
#3
Re: Code Colouring
PHP Code:
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <dos.h>
void main()
{
int i,j;
clrscr();
textmode(C80);
for(i=1;i<26;i++)
{
for(j=1;j<80;j++)
{
gotoxy(j,i);
textbackground(rand() % 15);
delay(10);
cprintf(" ");
}
}
getch();
}
-
Jun 20th, 2006, 12:02 PM
#4
Re: Code Colouring
Code:
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <dos.h>
void main()
{
int i,j;
clrscr();
textmode(C80);
for(i=1;i<26;i++)
{
for(j=1;j<80;j++)
{
gotoxy(j,i);
textbackground(rand() % 15);
delay(10);
cprintf(" ");
}
}
getch();
}
-
Jun 20th, 2006, 12:03 PM
#5
Re: Code Colouring
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <dos.h>
void main()
{
int i,j;
clrscr();
textmode(C80);
for(i=1;i<26;i++)
{
for(j=1;j<80;j++)
{
gotoxy(j,i);
textbackground(rand() % 15);
delay(10);
cprintf(" ");
}
}
getch();
}
-
Jun 20th, 2006, 05:14 PM
#6
Re: Code Colouring
I wish if there was auto indentation in [code] and [Highlight=VB] tags
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jun 20th, 2006, 06:26 PM
#7
Re: Code Colouring
Code:
# Find out what char the term has.
for link in constants.LINK_CHAR:
if link[0] == term and char1 != '':
char2 = link[1]
if link[0] == term and char1 == '':
char1 = link[1]
EDIT: Just testing if it's gonna show in the same colors (using the VBF FF extension) and I totally forgot you made it
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|