This code was painted using my Code Painter. Download it by link in my signature.Code://By SiavoshKC #include <iostream> using namespace std; int main() { int a =12; int b =9; cout<< "Hello" << a+ b << endl; return 0; }
This code was painted using my Code Painter. Download it by link in my signature.Code://By SiavoshKC #include <iostream> using namespace std; int main() { int a =12; int b =9; cout<< "Hello" << a+ b << endl; return 0; }
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
I'm not sure if I trust that download link.
If you are going to distribute this then it should come with the code. I dont run .exe files I download unless I am pretty sure they wont do anything nasty
Well, in the mean time... just looking at the code you posted, I can't say I like the colors. Datatypes are colored the same as keywords and preprocessor directives. Libraries are colored the same as string constants. It's all a little confusing.
Sent from my iPad®
Well it's close to the color scheme Visual Studio would use by default, not that I'm defending it.
What I don't like is the boldface, that was a mistake. If you've ever read a black & white printout of some code, you'd understand why, siavoshc. Bold can play a much more important role if you don't print in color.
I am going to upload whole source code after some clean-ups. It is in C++\CLI.
The selected color for each item is not a problem. It is too simple to change them.
Code:#include <iostream>
Last edited by siavoshkc; 08-10-2008 at 01:44 AM.
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
This looked like fun so I had a go too. So far it only works with C and the tags create a lot of bloat, but it seems to work ok, which is the main thing. I put the code on webpage generated by the prog. Heres a link to my syntax highlighter.
Cheers.
Doesn't even come close to codeform by dwks
Or its painted self... http://dwks.theprogrammingsite.com/m...m/formself.htm
And online self... http://dwks.theprogrammingsite.com/myprogs/cfonline.htm
Is this an installer... inside a WinRAR self extractor... that's been run through UPX? >.<
Furthermore, your program wants admin privileges to install >.>
So, like, a 1.5MB executable to ship ~80KB exe?
Some comments:
1) Word counts are off - Try typing some whitespace in the box, you'll see.
2) You seem to be missing a few keywords (typename, catch, default being the three I noticed.)
3) // Comments, on the last line, are not highlighted
4) You write to C:\Program Files\Your\Dir ... it gets redirected to C:\Users\blah\AppData\Local\.....
Last edited by Cactus_Hugger; 08-12-2008 at 08:58 PM.
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)
Glad to see codeform has a following. (Don't forget the clipboard Perl scripts!)
By the way: in the latest version of codeform (1.2.0), tags that are the same colour are merged together, eliminating the "bloat" that I assume mike_g was referring to. I can't remember how I did it, but I'm sure you could find out by looking at its source. (Basically, record the starting tag, allow skipping over whitespace, and check if the next tag is the same as the previous one.)
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Yeah, thats the same as what I had done. It chopped a third off the size. Last night I added colouring to the brackets and all the space I had saved was lost again :/ I might see if I can shrink the tags using xml.Basically, record the starting tag, allow skipping over whitespace, and check if the next tag is the same as the previous one.
I guess that's the price you pay for coloured brackets.
BTW, if you're generating HTML, CSS can really reduce filesizes. Plus it makes the output more easily customizable. Of course, this doesn't work for, say, BBCode.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.