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

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

  • Comment on (jeffa) 4Re: Comments in my code (gvim syntax highlighting example)
  • Download Code

Replies are listed 'Best First'.
Re:x5 Comments in my code (gvim syntax highlighting example)
by grinder (Bishop) on Nov 24, 2001 at 23:40 UTC

    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