C, C++, Pascal and Java syntax coloring!

We will post here whenever new features are added to the OJ System or the Web site.

Moderator: Board moderators

Post Reply
fpnc
System administrator
Posts: 201
Joined: Sun Oct 07, 2001 2:00 am
Location: Valladolid, Spain

C, C++, Pascal and Java syntax coloring!

Post by fpnc »

We are pleased to announce this:

[pascal]program a(input, output);
var x:integer;
begin
for i:=1 to 100 do begin { comment }
while not eof(input) do begin
readln(k);
end;
end;
end.
[/pascal]

[c]#define kk

void main(int argc, char *argv[])
{
printf("this is a %d\n", s);
for (i=0; i<20 && i>20; i++)
{
scanf("%s", &s);
}
return 0;
return(1);
}[/c]

[cpp]#define kk

void main(int argc, char *argv[])
{
cin << k;
printf("this is a %d\n", s);
for (i=0; i<20 && i>20; i++)
{
scanf("%s", &s);
}
return 0;
return(1);
}[/cpp]

[java]class myfirstjavaprog
{
public static void main(String args[])
{
System.out.println("Hello World!");
}
}[/java]

Enjoy them!
Best regards,

Fernando N
Post Reply

Return to “New features”