not that I think anybody's interested, and not to hijack this thread any further, but I just completed it in Java (I need to re-learn it for my CS courses):
Code:
#include<iostream>
int main()
{
int a,b,c;
float fa,fb,fc;
double da,db,dc;
std::cout<<"Hello World"<<std::endl; //end-of-line comment
//line comment
/*multi
line
comment*/
"multi
line
quote"
//comment with new keyword
/*comment witn new keyword*/
"quotes with new keyword"
return 0;
}
I attached the code (just change SyntaxHlt and Finder from .txt to .java and keywords to .dat) just in case anybody's bored enough to take a look at it... if you know more about java than I, pointers would be appreciated, and I know there are holes in the code (one big one: if you escape a quote in a literal string, you'll run into problems), and some keywords (like double) are colorized more than once (because of 'do' and 'double')... I'm sure there are plenty others, but I'm really only making this for personal use (and for anybody else if they want to use it)
edit: you'll also notice that the keywords file isn't in alphabetical order - it has to do with what I mentioned before about the double-coloring... if it comes across 'do', it'll change it so double will come out to double