Code colouring

This is a discussion on Code colouring within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I saw 0 good reasons to go Open Source, and 1 good reason why i shouldn't: So that others may ...

  1. #31
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    I saw 0 good reasons to go Open Source, and 1 good reason why i shouldn't:
    So that others may look at it [source code]
    My Website
    010000110010101100101011
    Add Color To Your Code!

  2. #32
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    I just find it ironic that people who voted against code tags should be in favour of coloured crayons for writing code
    The reason I voted no is not because they are useless. Because I thought script may not be helpful. Don't get angry of me, change my vote if it is really that important.

    I am now making big changes to my painter. It will have an option dialog, and will have capability to add or remove keywords. Its code can go muchbetter than this. I will make it better, then I open it source.
    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

  3. #33
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    mrafcho001: Ok, so you are selfish when it comes to your code... the only reason I could ever see not going OS is when it is a proprietary project that would be hard to sell support for. These programs I assume are never going to marketed other than free.

    Also the reason you want others to be able to look at your code... consider where the linux project would be without the thousands of people who have worked on it. I have found bugs in OS software, found out how to fix it, and sent the diff in to the manager of the project. That is one less bug they have to worry about.

  4. #34
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,475
    mrafcho001: If you want to stick to your code in a pathetique display of intelectual property, be my guest. Probably your code is just too good for everyone else. You are a guru and your techniques are very valuable trade secrets. I'm sure you are serious in your attempt to make money out of your code. Yeah.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #35
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    Salem, genie as always!!

    Echo Mario. (#~28 i think)

    To be honest though, I've only recently changed my mind about OS-ing code. I used to be in Martin's boat. Why not, though. It's not as though we get paid for writing these programs, so why not? That's the question you should answer, Martin. Not why for!


    >> I'm sure you are serious in your attempt to make money out of your code.
    Not if he's giving the programs away for free

  6. #36
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    Now you can change keywords and they will be saved on HDD for future use.

    [EDIT]
    MS Form designer is knocked out and I'm writting the code myself. It gives error about circular ownership and HRESULT- E_UNEXPECTED and doesn't work.
    Attached Images Attached Images  
    Last edited by siavoshkc; 09-07-2006 at 06:00 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

  7. #37
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    Can we download it to at least test it?

  8. #38
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Code:
    #include <iostream>
    
    int main()
    {
    	std::cout << "Bah you call that colorization? This is colorization!" << std::endl;
    }

  9. #39
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    Quote Originally Posted by Thantos
    [code][color=#4b7296]#[/color][color=#20063f]i[/color][color=#a96b52]n[/color][color=#823f03]c[/color][color=#799cf2]l[/color][color=#eb5bd5]u[/color][color=#7678ec]d[/color][color=#fc79f7]e[/color] [color=#1b4636]<[/color][color=#b7db6e]i[/color][color=#5500a9]o[/color][color=#8b3f15]s[/color][color=#0c5c18]t[/color][color=#b6df6d]r[/color][color=#e1a7c2]e[/color][color=#46c08d]a[/color][color=#b9ef73]m[/color][color=#005800]>[/color]

    [color=#37246e]i[/color][color=#36fa6d]n[/color][color=#83af06]t[/color] [color=#8e531c]m[/color][color=#9c0b37]a[/color][color=#6a54d4]i[/color][color=#17fe2f]n[/color][color=#48c291]([/color][color=#ff0dfd])[/color]
    [color=#a0d141]{[/color]
    [color=#127a24]s[/color][color=#49fe93]t[/color][color=#c9cd92]d[/color][color=#f3b3e6]:[/color][color=#a4f749]:[/color][color=#03a207]c[/color][color=#121824]o[/color][color=#61a6c2]u[/color][color=#931325]t[/color] [color=#6bf4d7]<[/color][color=#b1bf62]<[/color] [color=#a7674e]"[/color][color=#483890]B[/color][color=#dbcfb6]a[/color][color=#4cce99]h[/color] [color=#4ce899]y[/color][color=#502ca0]o[/color][color=#c50989]u[/color] [color=#ce5d9b]c[/color][color=#4f009d]a[/color][color=#fa0ff3]l[/color][color=#e95fd1]l[/color] [color=#63dac7]t[/color][color=#4d8a9a]h[/color][color=#6de8db]a[/color][color=#39da73]t[/color] [color=#7ec8fd]c[/color][color=#a6194b]o[/color][color=#fcb1f8]l[/color][color=#06b60d]o[/color][color=#e515c9]r[/color][color=#630cc5]i[/color][color=#f2d3e4]z[/color][color=#a7d14e]a[/color][color=#57ccaf]t[/color][color=#6750ce]i[/color][color=#b53969]o[/color][color=#45848a]n[/color][color=#d87bb0]?[/color] [color=#be737c]T[/color][color=#70d6e1]h[/color][color=#ea1dd3]i[/color][color=#14da29]s[/color] [color=#7954f2]i[/color][color=#24ac49]s[/color] [color=#83b906]c[/color][color=#013202]o[/color][color=#ff4bfd]l[/color][color=#4e509c]o[/color][color=#feb5fc]r[/color][color=#290c51]i[/color][color=#3bd077]z[/color][color=#00f601]a[/color][color=#208e40]t[/color][color=#be8b7c]i[/color][color=#90a920]o[/color][color=#aefd5d]n[/color][color=#4b5696]![/color][color=#f027df]"[/color] [color=#f483e8]<[/color][color=#6decdb]<[/color] [color=#d18da2]s[/color][color=#8cfb19]t[/color][color=#262a4c]d[/color][color=#fd07f9]:[/color][color=#028c05]:[/color][color=#7f90fe]e[/color][color=#5c2ab7]n[/color][color=#564aac]d[/color][color=#977b2e]l[/color][color=#271e4e];[/color]
    [color=#58f6b1]}[/color][/code]
    Wow, Thantos, that's impressive! How long'd that take?

  10. #40
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Probably not long... wouldn't be hard to make something that parses text then puts [color=#<random 6hex number>]<letter>[/color]. Assuming because the spaces have color tags too... this is what was done.

  11. #41
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    Can we download it to at least test it?
    Where can I place it? I mean a site so you can download it.
    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

  12. #42
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Any of the many free webhosts on the internet.

    [edit] I don't think your highlighter does what it's supposed to here:
    Code:
    /*//*/
    
    /*//*/
    
    [color="green"]/*/[/color][color="green"]/*/[/color]
    It looks okay, but (besides the redundant double quotes) I think that it worked by a fluke, detecting /*//*/ as two separate comments, /*/ and /*/, judging by the colouring. Try this:
    Code:
    /* foo // bar */
    [/edit]
    Last edited by dwks; 09-07-2006 at 01:12 PM.
    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.

  13. #43
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    Any of the many free webhosts on the internet.
    Of course, but I don't have any in mind. And lazy to google. Just direct me to a good one please.
    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

  14. #44
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    I can't recommend any one in particular. frandt.com was the best one around when I was looking for free webhosts, but that was a few months ago.

    [edit] Ugh, look what you get when you google for frandt:
    Code:
    FRandT - OfflineFRandT. This site is temporarily unavailable. Please notify the System Administrator. 2.
    www.frandt.com/ - 2k - Cached - Similar pages
    You might try thefreecountry.com.
    [/edit]
    Last edited by dwks; 09-07-2006 at 01:24 PM.
    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.

  15. #45
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    If you give it this
    Code:
    /*//*/ 
    /* foo // bar */
    
    /*/
    It gives you this:
    Code:
    [COLOR="Green"]/*//*/[/COLOR.] 
    [COLOR="Green"]/* foo // bar */[/COLOR.]
    
    /*/
    Last edited by siavoshkc; 09-07-2006 at 02:21 PM.
    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

Page 3 of 5 FirstFirst 12345 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extended ASCII Characters in an RTF Control
    By JustMax in forum C Programming
    Replies: 18
    Last Post: 04-03-2009, 08:20 PM
  2. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 07:34 AM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 03:17 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 05:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21