4

Background:
I'm just a hobbyist. I recently found how to change the default colors in a notebook using "Edit Stylesheet" under "Format". I am currently using my own color set up in "Appearance" under "Preferences" in conjunction with an custom stylesheet and the code

SetOptions[EvaluationNotebook[], Background -> Black];

(Side note, I am purposely avoiding the "ReverseColor" ability because it doesn't give me very fine control over my colors.)

Question:
When doing something along the lines of..

a="String length:";  
Print[a,"= ",StringLength[a]];

How do I get the default printed text/result to be a color other than black?

Bonus Q:
Can I do the above and also change the default background for a notebook using only the stylesheet and appearance settings?

9Harris
  • 175
  • 6

1 Answers1

4

You can edit the notebook's stylesheet and change the Print style.

Choose Format -> Edit Stylesheet...

Add a new cell.

Reveal the cell expression (Command-Shift-E).

Change to the following or similar:

Cell[StyleData["Print"], FontColor -> RGBColor[.8,.7,.2]]
Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263