## Changing the syntax coloring

When syntax coloring turned on in the source window, comments will be colored red, commands will be colored blue, and the symbols $, {, and } will be colored dark green. A few users may wish to change these colors. Each color is determined by setting its red, green, and blue components; these components are real numbers between 0.0 and 1.0. Suppose we wish to change the color of $, {, and } to bright green, a color with components (r, g, b) = (0.0, 1.0, 0.0). To do so, open the Terminal window and type the following commands

  defaults write TeXShop markerred 0.0
  defaults write TeXShop markergreen 1.0
  defaults write TeXShop markerblue 0.0

The corresponding preference items for comments are commentred, commentgreen, commentblue; the items for commands are commandred, commandgreen, commandblue.

## Adding to the list of file types

There is a hidden preference to add file extensions to the list of files that TeXShop recognizes as source files which can be typeset and syntax colored. This is useful when you want to use syntax coloring when editing TeX files with non-standard extensions. For example,

  defaults write TeXShop OtherTeXExtensions -array-add "lbx"

tells TeXShop to syntax color biblatex 'lbx' files.

Advanced Help
Syntax Colors