I would like to have a notebook stylesheet which colors any number e.g., {1,2,{3}} red. I tried Preferences ,Appearance, LocalVariables etc.but there numbers stay black. How can I change my stylesheet? I also could not find it in previous answers to changing color.

  • $\begingroup$ try $PrePrint? E.g., $PrePrint = Map[If[NumericQ@#, Style[#, Red], #] &, #, {-1}] &; $\endgroup$
    – kglr
    Jul 14, 2021 at 17:43


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.