Thread: IDE Highlighting schemes you guys use

  1. #1
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949

    IDE Highlighting schemes you guys use

    Alright, so I have to ask. Do you guys select a highlighting scheme which highlights standard function calls? I am asking this obviously because of the new color coding scheme that had been implemented.

    The only thing I have ever really used was VS's default scheme which is the pre-processor, primitive type, keyword, and comment scheme(standard off-red, blue, and green).

    I am rather surprised to see malloc highlighted. Is this the norm out there in the professional community?
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    I believe it's highlighting standard C function names.
    Code:
    #include<stdio.h>
    #include<stdlib.h>
    int main( void )
    {
        char *world,a,b,c,d,e,f;
        printf( "hello" );
        world = realloc( malloc( 1 ), scanf( "%c%c%c%c%c%c", &a, &b, &c, &d, &e, &f ) );
        world[0]=a;
        world[1]=b;
        world[2]=c;
        world[3]=d;
        world[4]=e;
        world[5]=f;
        puts( world );
        free( world );
        return 0;
    }
    Mmmmyep.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by AndrewHunter View Post
    I am rather surprised to see malloc highlighted. Is this the norm out there in the professional community?
    Trust me... there is *nothing* normal about the professional community of programmers...

    (An analogy to "herding cats" comes immediately to mind.)

  4. #4
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by CommonTater View Post
    Trust me... there is *nothing* normal about the professional community of programmers...

    (An analogy to "herding cats" comes immediately to mind.)
    LOL.....too much. I guess I was already thinking that when I asked the question; I am just so "amazed" by the code coloring scheme I had to ask......
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    <fogey>
    Well those of us "of a certain age" who learned to program on monochrome green-on-black simply don't understand what all the fuss is about.
    </fogey>

    I mean, every so often, someone wanders in with a code problem which is obviously down to an unterminated quote or comment, yet the glaring slab of colour in the IDE STILL wasn't enough for them to figure it out.

    Knowing how to program works - not the palette of wax crayons you use to draw your pretty pictures with.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    TTL green, amber or white. <3


    Quzah.
    Hope is the first step on the road to disappointment.

  7. #7
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by Salem View Post
    <fogey>
    Well those of us "of a certain age" who learned to program on monochrome green-on-black simply don't understand what all the fuss is about.
    </fogey>
    Well, I saw that, but really only got into it with the white and blue of DOS EDIT. Now, this all crazy coloring scheme is killing me though and all I was wondering is what you "pros" have set. I really don't see a value in highlighting library calls,since although defined by the standard are technically extensions to the language in the pure sense. I do see a teaching an "glance debugging" value in the VS default red - green - blue coloring scheme.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  8. #8
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    I just can't seem to get a good color scheem for notepad++ no matter how I try.


    Quzah.
    Hope is the first step on the road to disappointment.

  9. #9
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by quzah View Post
    TTL green, amber or white. <3
    Quzah.
    I have been missing your responses and I am not sure why. Yep, that is what I am talking about and have learned to rely on. Hence the scheme I picked for the highlighter I made for posting here.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  10. #10
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by quzah View Post
    I just can't seem to get a good color scheem for notepad++ no matter how I try.
    Quzah.
    The parser I made just called out "red" "green" and "blue". I was just looking into backhighlighting when we shifted to the auto color feature.

    Are you scripting your "rainbows" right now?
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  11. #11
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by AndrewHunter View Post
    The parser I made just called out "red" "green" and "blue". I was just looking into backhighlighting when we shifted to the auto color feature.

    Are you scripting your "rainbows" right now?
    That's a distinct possibility. It's what happens when I'm really bored.


    Quzah.
    Hope is the first step on the road to disappointment.

  12. #12
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by quzah View Post
    That's a distinct possibility. It's what happens when I'm really bored.


    Quzah.
    Haha...sounds like a new game I will revisit next time I am "bored".
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  13. #13
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by AndrewHunter View Post
    Now, this all crazy coloring scheme is killing me though and all I was wondering is what you "pros" have set. I really don't see a value in highlighting library calls,since although defined by the standard are technically extensions to the language in the pure sense. I do see a teaching an "glance debugging" value in the VS default red - green - blue coloring scheme.
    Over the years I've been reducing more and more the scope and intensity of my code coloring scheme. Today it mostly boils down to keywords, user-defined objects and strings (I don't even color code symbols anymore). Each live on a different color, but always washed out colors with little visual impact. Admittedly because of the rules and semantics of certain programming language I may feel inclined to add a few elements to that short list. On C# for instance, it could be useful to separate classes from structs so you know exactly what kind of memory management the object you are working with uses.

    Overall though I've been finding more value in less color scheming. I do still believe in it though. Make no mistake. But I just think that, at least for me, it works best as subliminal hint system and as an anti-bug precautionary measure. And I'm not anymore after the aesthetics.

    Also, very recently I finally dropped the black background for good. I couldn't find a justification for it anymore. Non emissive, non flick, LCD screens just don't make white so tiring to the eyes anymore. But also, with a black background is harder to go for a suave color scheme: Black background tends to increase contrast with the overall text color, which is a fatigue factor in itself (although, of course, not so tiring as white was on CRT screens). At the same time it reduces the contrast between similar colors, making it harder to produce suave color schemes without increasing contrast with the background. White background (or slightly grey, as I personally use it) makes it much easier to produce text that stands out, that is clear, and that doesn't tire your eyes or brain.

    Or at least that's how it has been working for me.
    Last edited by Mario F.; 09-28-2011 at 06:42 AM.
    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.

  14. #14
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by AndrewHunter View Post
    Well, I saw that, but really only got into it with the white and blue of DOS EDIT. Now, this all crazy coloring scheme is killing me though and all I was wondering is what you "pros" have set. I really don't see a value in highlighting library calls,since although defined by the standard are technically extensions to the language in the pure sense. I do see a teaching an "glance debugging" value in the VS default red - green - blue coloring scheme.
    Y'know what... I often find mistakes because something is "the wrong color"... Spelling, open ended quotes, etc. I won't say I couldn't do without it, but syntax highlighting has been a real help. The value in highlighting library calls is you can see your typos when they fail to color coordinate with Quzah's latest dance ensemble.

  15. #15
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by CommonTater View Post
    Y'know what... I often find mistakes because something is "the wrong color"... Spelling, open ended quotes, etc. I won't say I couldn't do without it, but syntax highlighting has been a real help. The value in highlighting library calls is you can see your typos
    I just have been using the intelli-sense feature in the IDE to quickly identify the typos and mismatched braces / arguments. I can see the value in it for those who don't like that feature / don't use an IDE with it.

    Quote Originally Posted by CommonTater View Post
    when they fail to color coordinate with Quzah's latest dance ensemble.
    LOL....he has become quite dazzling lately. Are we invited to your "coming out" party quzah?
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Custom URI schemes
    By Epy in forum C# Programming
    Replies: 2
    Last Post: 08-10-2010, 01:23 PM
  2. Syntax Highlighting for English?
    By thetinman in forum A Brief History of Cprogramming.com
    Replies: 47
    Last Post: 06-04-2007, 12:27 PM
  3. Highlighting Braces...
    By twomers in forum C Programming
    Replies: 5
    Last Post: 12-15-2005, 01:59 PM
  4. how to ...syntax highlighting
    By surdy in forum C Programming
    Replies: 2
    Last Post: 04-25-2004, 10:14 AM
  5. Syntax Highlighting (How To)
    By DarkViper in forum Windows Programming
    Replies: 6
    Last Post: 11-23-2002, 12:27 AM