<type>documentation</type>
<domain>edit</domain>
<id>syntax-colors</id>
<title>Syntax Coloring</title>
<date>$Date$</date>
<version>$Revision$</version>
<product>all</product>

To make code easier to read, Wing's editor colors a file's syntax according to its MIME type, which is determined by
the file's extension or content. For example, any file ending in ``.py`` will be colored
as Python code.  Any file whose MIME type cannot be determined will display entirely
in black regular text.

~~~if WING101:
All the available document types for syntax coloring can be seen with ``Current File
Properties`` in the ``Source`` menu, under the ``File Attributes`` tab. If you have a file
that is not being recognized automatically, you can use the ``File Type`` menu found there
to alter the way the file is being displayed.
~~~

~~~if not WING101: 
If you have a file that is not being recognized automatically, use the `Files > File Types >
Extra File Types <script:show_preferences_gui#prefname="main.extra-mime-types">`__
preference to add a mapping for the file's extension.

When this is not possible, the file type can be set under the ``File Attributes`` tab
in `File Properties <ref:proj/file-properties>`__.

The colors and text styles used for syntax coloring can be configured as described in 
`Custom Syntax Coloring <ref:custom/syntax>`__. 
~~~
