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;
}
Printable View
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;
}
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
Isn't this considered spam? :D
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.
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>
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\.....
Glad to see codeform has a following. :D (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.)
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.Quote:
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.