Posts: 1,845
Threads: 44
Joined: Aug 2002
Quote:I suppose the lack of comments on my program is because you
don't have allegro.
Well, a compiled verision is available at my site. (link under sig)
#1: My C++ compiler (MSVS6) stopped working a while ago.
#2: Allegro needs a dynamic link library ALLEG40.DLL to be able to run EXEs that are using Allegro
Posts: 1,080
Threads: 87
Joined: Feb 2002
Well google can solve #2 quite easily ^_^
/post]
Posts: 1,845
Threads: 44
Joined: Aug 2002
I downloaded the DLL, but it doesn't seem to work. The screen just stays black for a moment, then the program exits... :???:
Posts: 3,343
Threads: 83
Joined: Mar 2003
Quote:It ain't needed. If you realize, every IDE that works with C or C++ does not have a special colour for functions, not even the most common. That has to do with the way C/C++ is designed as a language, as Neo said.
Nevertheless, it *is* requested by some people...
Posts: 1,845
Threads: 44
Joined: Aug 2002
In Visual C++, only the keywords (the list I printed above) and numbers have a color, and of course special signs like { }, ( ) and [ ].
Posts: 197
Threads: 14
Joined: May 2004
Could you search the text for "(" and highlight/bold the letters before it, stopping at whitespace? That would find functions and some keywords (with some tweaking to get the times where the function name and parenthesis w/ arguments are separated by a space.)
ex:
printf ("Sup");