10.02.2013 Views

SlickEdit User Guide

SlickEdit User Guide

SlickEdit User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Ada<br />

This section describes some of the features and options that are available for Ada, including languagespecific<br />

options and the Ada Beautifier.<br />

Ada Formatting Options<br />

An option to set keyword casing is available for Ada. To access it, from the main menu, click Tools ><br />

Options > Languages, expand Application Languages > Ada, then click Ada Formatting Options.<br />

NOTE Languages similar to Ada may have similar Formatting Options screens that are not<br />

specifically documented.<br />

The Keyword case option specifies the case of keywords used by Syntax Expansion. For example, when<br />

you type the word “procedure” and the Keyword case is set to Upper case, the editor changes<br />

“procedure” to “PROCEDURE”. The hyperlink indicates if Adaptive Formatting is on or off for this setting.<br />

Ada Beautifier<br />

<strong>SlickEdit</strong>® <strong>User</strong> <strong>Guide</strong> 403<br />

ADA<br />

You can beautify Ada files and change the beautify settings by using the Ada Beautifier dialog box. This<br />

dialog box can be accessed from the main menu by clicking Tools > Beautify, or by using the<br />

gui_beautify command.<br />

To instantly beautify Ada code according to the settings that are selected on the Ada Beautifier dialog box,<br />

use the ada_beautify or ada_beautify_selection commands.<br />

The following settings and operations are available on the Ada Beautifier:<br />

• Restrict to selection - When checked, only lines in the selection are beautified.<br />

• Sync extension options - When checked, the language options are updated to reflect any<br />

changes that these dialogs have in common.<br />

• Beautify - Beautifies current selection or buffer and closes the dialog box.<br />

• Reset - Restores the dialog box settings to the values that appeared when you invoked the dialog.<br />

• Save Settings - Saves beautify options in the uformat.ini file. These settings are used by the<br />

ada_beautify command.<br />

The tabs on the Ada Beautifier are described in the sections below.<br />

Indent Tab<br />

The following settings are available:<br />

• Indent with tabs - When checked, tab characters are used for leading indent of lines. This value<br />

defaults to the Tabs text box on the language-specific Indent options screen (see Language-<br />

Specific Indent Options).<br />

• Indent for each level (Syntax indent) - The amount to indent for each new nesting level. The<br />

words “Syntax indent” are in parenthesis to help indicate that this field has the same meaning as<br />

the Syntax indent text box on the language-specific Indent options screen (see Language-<br />

Specific Indent Options). By default, this text box is initialized with the current language setup<br />

setting.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!