Syntax Coloring

Index of All Documentation » Wing Pro Reference Manual » Source Code Editor »

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 you have a file that is not being recognized automatically, use the Files > File Types > Extra File 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.

The colors and text styles used for syntax coloring can be configured as described in Custom Syntax Coloring.