![]() |
| | #1 |
| System Novice Join Date: Jan 2006 Location: Tehran
Posts: 1,075
| Code Painter Code: //By SiavoshKC
#include <iostream>
using namespace std;
int main()
{
int a =12;
int b =9;
cout<< "Hello" << a+ b << endl;
return 0;
}
__________________ Microsoft Visual Studio 2008 Professional (On Microsoft Windows XP SP2) Learn the language before using it. (C++ Books and C Books) Read the FAQ before making a problem. Then make a Google and Forum search. My code painter new version Version 0.97 DOWNLOAD NOW! (Let the pop up, pop!) SiavoshKC |
| siavoshkc is offline | |
| | #2 |
| l'Anziano Join Date: Aug 2001
Posts: 2,629
| I'm not sure if I trust that download link. |
| DavidP is offline | |
| | #3 |
| &TH of undefined behavior Join Date: Aug 2001
Posts: 5,218
| 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
__________________ "If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut." Albert Einstein (1879 - 1955) Board Rules |
| Fordy is offline | |
| | #4 |
| Unregistered User Join Date: Jul 2007
Posts: 982
| Isn't this considered spam?
__________________ May the Source be with you. |
| Yarin is offline | |
| | #5 |
| &TH of undefined behavior Join Date: Aug 2001
Posts: 5,218
|
__________________ "If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut." Albert Einstein (1879 - 1955) Board Rules |
| Fordy is offline | |
| | #6 |
| Devil's Advocate Join Date: May 2004 Location: Out of scope
Posts: 3,778
| 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.
__________________ Terms of Service By quoting or replying directly to this post, you consent to the fact that all of the information in the post above is completely accurate and highly intelligent and no comments will be made towards its validity, thoughtlessness, and/or grammatical structure. Violators will be prosecuted to the fullest extent of the law. |
| SlyMaelstrom is offline | |
| | #7 |
| MENTAL DETECTOR Join Date: Apr 2006 Location: United States
Posts: 3,293
| 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. |
| whiteflags is offline | |
| | #8 |
| System Novice Join Date: Jan 2006 Location: Tehran
Posts: 1,075
| 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>
__________________ Microsoft Visual Studio 2008 Professional (On Microsoft Windows XP SP2) Learn the language before using it. (C++ Books and C Books) Read the FAQ before making a problem. Then make a Google and Forum search. My code painter new version Version 0.97 DOWNLOAD NOW! (Let the pop up, pop!) SiavoshKC Last edited by siavoshkc; 08-10-2008 at 01:44 AM. |
| siavoshkc is offline | |
| | #9 |
| Dr Dipshi++ Join Date: Oct 2006 Location: On me hyperplane
Posts: 1,219
| 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. |
| mike_g is offline | |
| | #10 |
| Woof, woof! Join Date: Mar 2007 Location: Australia
Posts: 3,295
| Doesn't even come close to codeform by dwks |
| zacs7 is offline | |
| | #11 |
| The superheterodyne. Join Date: Dec 2005 Location: Ireland
Posts: 2,215
| Or its painted self... http://dwks.theprogrammingsite.com/m...m/formself.htm And online self... http://dwks.theprogrammingsite.com/myprogs/cfonline.htm
__________________ I blag! |
| twomers is offline | |
| | #12 |
| int x = *((int *) NULL); Join Date: Jul 2003 Location: Banks of the River Styx
Posts: 902
| 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\.....
__________________ 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) Last edited by Cactus_Hugger; 08-12-2008 at 08:58 PM. |
| Cactus_Hugger is offline | |
| | #13 |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| 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. |
| dwks is offline | |
| | #14 | |
| Dr Dipshi++ Join Date: Oct 2006 Location: On me hyperplane
Posts: 1,219
| Quote:
| |
| mike_g is offline | |
| | #15 |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| 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. |
| dwks is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Enforcing Machine Code Restrictions? | SMurf | Tech Board | 21 | 03-30-2009 07:34 AM |
| Obfuscated Code Contest: The Results | Stack Overflow | Contests Board | 29 | 02-18-2005 05:39 PM |
| Obfuscated Code Contest | Stack Overflow | Contests Board | 51 | 01-21-2005 04:17 PM |
| Interface Question | smog890 | C Programming | 11 | 06-03-2002 05:06 PM |
| Who will map the scan code (inserted by VKD_Force_keys) to virtual key code? | Unregistered | Windows Programming | 0 | 02-21-2002 06:05 PM |