Print with syntax highlighting: better take into account the color scheme
While testing printing today, I noticed a kinda funny issue. The print dialog has a "print syntax highlighting" option that's checked by default. I use the "Oblivion" color scheme for gedit, which is a dark scheme - the background is a dark grey. With syntax highlighting, some things are highlighted as bright white - especially in shell script highlighting, almost everything winds up "highlighted" in bright white in a test script like this:
#!/bin/sh
for i in "true" "true"; do /bin/$i; exitcode=$?; echo "exited ${exitcode}, did a thing"; test $exitcode -gt 0 && exit 1; cd .; done;
When you print such a document out with "print syntax highlighting" turned on, the exact same colors are used as are used on-screen, even though I don't think most people print on dark grey paper! So on paper all the words that are shown bright white on screen are not visible at all. With a black-and-white printer, words that are highlighted in a light color on screen (like $i
and did a thing
) are light grey on the page - with a color printer presumably they would be the same color as they are on-screen, which wouldn't look much better on white paper. Words that are not highlighted at all - bin
, 0
and 1
in the example - are correctly shown as a light grey on screen but printed a dark black.