# Changing text color for Input fields

I try changing the color for the Input fields. By going to Format >> Text Color >> Orange the color stays to the default value of blue?? For any other field, this works as expected, however. This also seems to be the only reluctant one, since changing, say, the background color works fine?

• Style[InputField[1234], FontColor -> Red]. Is this what you are after? – Albert Retey Mar 14 '19 at 11:43
• @AlbertRetey Well, maybe I misunderstood what Input fields are, but I assume that they are the "usual" Mathematica codes at least (obtained by simply starting typing in Mathematica or through Alt+9). when I try changing the color of the text from its default blue, nothing happens. – Patrick.B Mar 14 '19 at 12:08
• Patrick, use Preferences under Edit menu; and select the color you want under Appearance >> SyntaxColoring >> Other. – kglr Mar 14 '19 at 12:30
• That is nice. Do these changes only affect the local notebook? Is there a way to implement this in a stylesheet? – Patrick.B Mar 14 '19 at 12:33

If you want to change AutoStypeOptions in a style sheet, you can add:

Cell[StyleData["Input"],
AutoStyleOptions->{"UndefinedSymbolStyle" -> {FontColor -> RGBColor[1., 0., 0.]}}
]


to the style sheet, which will cause all undefined symbols to be colored red. Alternatively, you could turn off auto styles, in which case your format change will take affect:

Cell[StyleData["Input"],
ShowAutoStyles->False
]