colorsgnucolor-schemesource-highlighting

colour scheme for gnu source-highlight with a dark background


I'm using gnu source-highlight mostly with less (so it's using ANSII terminal codes to make colours). However, with a dark background colour, the highlighted parts are dim and hard to read.

Is there an easy way to tell source-highlight to use a colour scheme more suited to a dark background (as can be done with, for example, vim)?


Solution

  • I don't know how to do this with source-highlight, so I skipped it altogether and used pygmentize to the same end. For that, I make a function that I use instead of less when I want code highlighting

    pygless()
    {
      LESSOPEN="| pygmentize -f terminal256 -O style=native -g %s" less -R "$@";
    }