C++ Code Formatter
I just created my own syntax highlighter, which formats C++ code with the color tags for this forum. So it's easier to post my code.
If anybody would like to see it, i'll post it up on the forum for download.
int AddNumbers(int Number1, int Number2);
//display hello world message
cout << "Hello World" << endl;
//show a sum and its result
cout << "The sum of 2 + 2 = " << AddNumbers(2, 2) << endl;
int AddNumbers(int Number1, int Number2)
//declare variable for storing result
//get the answer to the sum
SumResult = Number1 + Number2;
//return the total result
If it's coded without any windows specific libraries, I could make sure it works under Linux as well, if you want me to.
Opps, forgot to tell you all. I coded it in VB6. :p
I did the same thing in MFC, I almost had it finished but I lost it along with all my other programs when my HD crashed. Oh well :( I had plans for number and string highlighting too... it woulda been great.
Well done btw :) Although I see some keywords in there that aren't highlighted... or was this on purpose?
Erm..could be a bug. I'll check that out. It seems it's not adding tags for any keywords within a function body...
By the way, I'm still learning C++, so how did you go about creating the similar application using C++ and the MFC?