in reply to (jeffa) 2Re: Comments in my code (gvim syntax highlighting example)
in thread Comments in my code

<rant>

Looking at that reminds me why I hate syntax-colouring editors. And I am indebted to stefp for jogging my memory, by talking about angry fruit salad (on the Paris Perl Mongers list -- this subject came up the other day).

I know, I know, the colours can be configured, but I still why wonder why a person with a knowledge of psycho-optics and some decent design skills hasn't come up with a default that's useable in the first place. Edward Tufte springs to mind.

I finally managed to wean my self off Notepad, and use vim in Windows... after having figured out how to turn syntax coloring... off.

</rant>
--
g r i n d e r

Replies are listed 'Best First'.
(jeffa) 4Re: Comments in my code (gvim syntax highlighting example)
by jeffa (Bishop) on Nov 24, 2001 at 22:25 UTC
    Beauty is indeed in the eye of the beholder, and i must admit that the color scheme i demonstrated pleases my eyes quite well. But, i totally understand where you are coming from, and your link to the Edward Tufte site has inspired me:
    
    #!/usr/bin/perl -w
    
    use strict;
    use constant FOO => 'bar';
    
    my @array = qw(one two three);
    my $scalar = 'when in Rome';
     # some comments
    print "i like Rome\n" if $scalar =~ /Rome/;
    print "no digits\n"   if $scalar !~ /\d+/;
    
    sub foo {
        return 'foo';
    }
    
    
    Needs some more tweaking, but you get the point - if it's the colors themselves that bother, and not the notion of syntax highlighting, then just change them to suite your needs. Here is the pertinant .gvimrc config info:
    hi Normal guifg=#35351d guibg=#fffff3 hi PreProc guifg=#de022a guibg=#fffff3 hi Statement guifg=#8d6b5f guibg=#fffff3 hi Comment guifg=#777777 guibg=#fffff3 hi Identifier guifg=#2c2255 guibg=#fffff3 hi Constant guifg=#0f6d30 guibg=#fffff3 hi Special guifg=#de022a guibg=#fffff3 hi Cursor guifg=#de022a guibg=#c13a30
    Cheers, and thanks for the links!

    jeffa

      Exactly.

      This is the sort of config I would have expected to see years ago.

      I would tend to tone down the red; it still jumps out. But thanks for the constants, I think I'll take them and run with them for a while.

      --
      g r i n d e r