<type>documentation</type>
<domain>edit</domain>
<id>indent-guides</id>
<title>Indent Guides, Policies, and Warnings</title>
<date>$Date: 2006-06-13 15:25:41 -0400 (Tue, 13 Jun 2006) $</date>
<version>$Revision: 13256 $</version>
<product>per+</product>

In Wing Personal and Wing Pro, the editor can display light vertical lines that make
indented code more readable.  These are enabled with the `Editor > Indentation > Show 
Indent Guides <script:show_preferences_gui#prefname="edit.show-indent-guides">`__ 
preference, or they can be added to individual files with ``Show Indent Guides`` 
under the ``Editor`` tab of `File Properties <ref:proj/file-properties>`__.

**Indent Policies**

A preferred indentation style and enforcement policy can be specified with `Preferred
Indent Style
<script:view_project_properties#highlighted_attrib="proj.preferred-indent-style">`__ and
`Indent Style Policy
<script:view_project_properties#highlighted_attrib="proj.indent-style-policy">`__ under
the ``Options`` tab in ``Project Properties``.

**Indent Warnings**

When a file is opened, Wing will indicate a potentially problematic mix of indentation
styles found in the file, allowing you to attempt to repair the file. Files can be
inspected more closely or repaired with `Indentation <ref:edit/indentation-manager>`__
in the ``Tools`` menu.

To turn off indentation warnings in Python files, use the `Editor > Indentation >
Show Python Indent Warning Dialog 
<script:show_preferences_gui#prefname="edit.show-python-indent-warnings">`__ preference.

Wing also indicates suspiciously mismatched indentation in source code by
underlining the indent area of the relevant lines in red or yellow.  An error 
or warning message is displayed when the mouse is hovered over the marked area of code.
