Controlling Syntax Formatting

You have control over how Source Insight formats your code.

Changing Style Properties

The Style Properties command controls the formatting properties of each style. You can also add your own styles, and import and export them.

The Syntax Formatting command

The Preferences: Syntax Formatting command controls how much display formatting is applied. You can speed up the display by disabling some options here. For more information, see Syntax Formatting.

The Syntax Decorations command

This Preferences: Syntax Decorations command controls what syntax decorations are performed.

Turning off Syntax Formatting

The Syntax Formatting features of Source Insight are powerful, but sometimes you may want to see how text will line up in another editor, or in a simple display mode when only a single font is used.

Switching off Syntax Formatting temporarily

If you want to temporarily see your files without syntax formatting, use the View > Mono Font View com­mand. Mono Font mode is useful for quickly switching your display to a basic monospaced font display. This is particularly useful if you are using spaces instead of tab characters to line columns up. When Mono Font mode is active, it overrides the settings of the Preferences: Syntax Formatting and Syntax Decorations dialog boxes.

Keeping fonts from changing

If you want to just see only color formatting, but no font changes, or font embellishments such as bold and italic, then use the Options > Preferences: Syntax Formatting dialog box and check the Use only color for­matting box.

Changing the font used to display source code

To change the base font used to display source code, open a source file, and select Options > File Type Options. The file type for the current source file will be automatically selected as the active file type. Click the Screen Fonts button and pick the desired font. This font will become the new base default font for that file type. For example, a style for declarations might add "bold". Or a style might specify a different font and override the screen font selection in the file type.

When you click OK in the font selection dialog, you will see this prompt:

inset_16_1.jpg

 

To apply the font to ALL the file types, type "yes" in the box and click OK. To only apply it to the current file type, click No.