Teen Programmers Unite  
 

 

Return to forum top

Code in messages

Posted by Psion [send private reply] at March 31, 2002, 07:59:05 PM

It's high time that I added a way to display code in a monospaced font in these forums. =) You can now begin a block of code with [ followed by %, and end one with % followed by ].

    Here is
         an example!


Neat, eh?
Posted by gian [send private reply] at April 01, 2002, 02:40:30 AM

#include <stdio.h>

int main( void )
{
     printf("Psion, you rock!\n");
     return 0;
}
Posted by RedX [send private reply] at April 01, 2002, 06:08:32 AM

#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
   cout << "Cool"  << "!" << endl;
   return 0;
}
Posted by metamorphic [send private reply] at April 01, 2002, 06:35:23 AM

WOHOOO! well done Psion! twas about time we have code formatting

Posted by taubz [send private reply] at April 01, 2002, 09:26:50 PM

new PosterThwaper(Posters.lookup("CodeRed")).thwap();
Posted by gian [send private reply] at April 01, 2002, 10:21:39 PM

 new PosterIPOJ(Posters.lookup("JAGuarXjs9")).IPOJRape(); 
Posted by taubz [send private reply] at April 02, 2002, 01:22:24 AM

My function has package-level access only, and I signed my package, so your method can't call my function Posters.lookup! Ha!

Posted by gian [send private reply] at April 02, 2002, 03:59:45 AM

Dammit!

Posted by vikram_1982 [send private reply] at April 05, 2002, 10:26:49 AM

hi everybody;greatwork;
Posted by CodeRed [send private reply] at April 05, 2002, 11:33:02 AM

Could it be any fuxing smaller
Posted by Linux_Penguin [send private reply] at April 06, 2002, 09:33:47 AM

Heres an idea, in the code you should add another tag so you can highlight certain areas that may be of importance to whomever is reading. Such as

 blah blah blah [r this area in red r] blah blah blah 
and you could have only the primary colors or something.
Posted by CodeRed [send private reply] at April 06, 2002, 02:27:59 PM

heres an idea, MAKE IT BIGGER. Are you all running at 64x480 or something? I am at 1600x1200 and can't read it without moving my head forward

Posted by CodeRed [send private reply] at April 06, 2002, 02:28:18 PM

correction: 640x480

Posted by taubz [send private reply] at April 06, 2002, 02:42:08 PM

Internet Explorer by default displays fixed width fonts smaller for some reason (or the corresponding Courier New font size is simply smaller). I don't believe it has anything to do with TPU.

- taubz

Posted by RedX [send private reply] at April 06, 2002, 03:01:27 PM

You can set the size of the letters bigger in IE.
I've found a way to do it, but since I've a Dutch version of IE, it would be difficult to explain how.
For those who have the Dutch version:

extra - internet-opties - lettertypen
(rufly translats to: extra - internet-options (or preferences) - fonts)

select Courier New on the left and select Lucida Console on the right. This is an ugly font but it's better to read.

Or you could get (stronger) glasses.

RedX

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.