Display

This section describes items related to viewing and displaying within the editor. For more information, see Viewing and Displaying.

Display Menu

The Display menu contains options that pertain to viewing and displaying special characters, code, and comments.

Display Menu Item

Description

Command

Hex

Toggles hex/ASCII display. See Hex Mode Editing.

hex

Line Hex

Toggles line hex/ASCII display. See Hex Mode Editing.

linehex

Special Chars

Toggles viewing of tabs, spaces, and new line character(s) on/off. See Viewing Special Characters.

view_specialchars_toggle

New Line Chars

Toggles viewing of new line character(s) on/off. See Viewing Special Characters.

view_nlchars_toggle

Tab Chars

Toggles viewing of tab character(s) on/off. See Viewing Special Characters.

view_tabs_toggle

Spaces

Toggles viewing of space character(s) on/off. See Viewing Special Characters.

view_spaces_toggle

Line Numbers

Toggles the display of line numbers on/off for the current document. See Viewing Line Numbers.

view_line_numbers_toggle

Soft Wrap

Toggles wrapping of long lines to window width.

softwrap_toggle

Symbol Coloring

Displays Symbol Coloring menu. See Symbol Coloring Menu.

N/A

Language View Options

Displays View options for the language in the current buffer. This is the same as if you had selected Window → SlickEdit Preferences → Languages → Application Languages → C/C++ → View from the main menu. See Language-Specific View Options.

setupext -view

Overview Ruler

Toggles the display of the vertical bar on the right of the editor pane, which is used to display the locations of errors, bookmarks, etc.

N/A

Fullscreen

Toggles full screen editing mode.

fullscreen

Selective Display

Displays the Selective Display dialog, which allows you to hide lines and create an outline. See Selective Display.

selective_display

Hide All Comments

Hides all lines that only contain a comment.

hide_all_comments

Hide Code Block

Hides lines inside current code block. See Expanding/Collapsing Code Blocks.

hide_code_block

Hide Selection

Hides selected lines.

hide_selection

Hide #region Blocks

Hides .NET #region blocks.

hide_dotnet_regions

Function Headings

Collapses all function code blocks in the current file. See Selective Display.

show_procs

Expand/Collapse Block

Toggles between hiding and showing the code block under the cursor. See Expanding/Collapsing Code Blocks.

plusminus

Copy Visible

Copies text not hidden by Selective Display. See Selective Display.

copy_selective_display

Show All

Ends selective display. All lines are displayed and outline bitmaps are removed. See Selective Display.

show_all

Symbol Coloring Menu

The table, below, describes each item on the Display → Symbol Coloring menu and its corresponding command. For more information see Symbol Coloring.

Symbol Coloring Menu Item

Description

Command

Customize

Opens the Symbol Coloring preferences screen.

config Symbol Coloring

Enable Symbol Coloring

Turns Symbol Coloring on/off for this file.

symbol_coloring_toggle

Highlight Unidentified Symbols

Turns on/off highlighting of symbols that are unidentified by the Symbol Coloring engine..

symbol_coloring_errors_toggle

All symbols - Default

Selects the default, All symbols scheme.

symbol_coloring_set_scheme All symbols - Default

Global Variables

Selects the Global Variables scheme.

symbol_coloring_set_scheme Global Variables

Protected and Private

Selects the Protected and Private scheme.

symbol_coloring_set_scheme Protected and Private

Unidentified Symbols Only

Selects the Unidentified Symbols Only scheme.

symbol_coloring_set_scheme Unidentified Symbols Only

Display Dialogs and Views

Selective Display Dialog

The Selective Display dialog (Display → Selective Display or selective_display command) allows you to activate Selective Display and choose the regions in your code that you want to display or hide. Each region contains settings that are specific to that region. The dialog also contains static options for expanding. See Selective Display for more information about working with this feature.

Search Text

Select Search text to specify a search string and display lines containing the search string specified or lines not containing the search string specified. Click the right-pointing arrow button to the right of the field to display a menu containing specific search syntax options such as Character in Range, Beginning of Line, and Decimal Digit. The following settings are available:

  • Match case - When checked, a case sensitive search is performed.

  • Match whole word - When checked, a word search is performed. Before a search is considered successful, the characters to the left and right of the occurrence of the search string found are checked to be non-word characters. The default word characters are [A-Za-z0-9_$] and may be changed by using the Word chars field on the language-specific General options screen (see Language-Specific General Options).

  • Regular expression - When checked, a regular expression search is performed. See Find and Replace with Regular Expressions for more information.

  • Reset selective display - When checked, all lines are made visible and Plus and/or Minus bitmaps are removed before a search is performed.

  • Hide matched lines - When checked, lines containing the search pattern are hidden.

Function Headers

Select Function headers to display only function headings and optional function heading comments. The following settings affect how comments before function headings are handled:

  • Show comments - When checked, comments above function headings are displayed as if they were part of the function heading.

  • Collapse comments - When checked, comments above function headings are visible but multi-line comments will require that you expand them to see all comments.

When both options are off, comments will not be visible at all, making it difficult to copy or move functions and comments.

Preprocessor Directives

Select Preprocessor directives to display a source file as if it were preprocessed according to the define values you specify. If you do not remember your defines, use the Scan for Defines button. The following settings are available:

  • Defines - Specifies defines and optional values used when you select the Preprocessor Directives option on the Selective Display dialog box. The syntax is:

    name1 [=value1] name2 [=value2]

    For example:

    WIN32S VERSION=4
  • Warning if Not Defined - If on when you preprocess your source, a message box is displayed for each define found in an expression which does not have a value.

  • Scan for Defines - Searches for define variables in the current source file and lets you specify values. Resulting values are placed in the Defines combo box.

Multi-Level

Select Multi-levelto set multiple levels of selective display based on braces or indent. The following settings are available:

  • Braces - When on, multiple levels of selective display are set to correspond to curly brace nesting levels.

  • Indentation - When on, multiple levels of selective display are set to correspond to indentation levels.

  • Limit levels - When too many nested levels of selective display get confusing, place a limit on the maximum number of nested levels. Nesting deeper than this specified level is ignored.

Paragraphs

Select Paragraphs to display the first line of each paragraph. A paragraph is defined by a group of lines followed by one or more blank lines.

Hide Selection

Select Hide selection to hide the lines in the current selection.

Expansion Options

The following expansion options can be applied for each region:

  • Expand sub-levels - When on, expanding hidden lines expands all nested hidden lines.

  • Collapse sub-levels - When on, expanding hidden lines collapses all nesting hidden lines.

  • Remember sub-levels - When on, expanding hidden lines displays nested hidden lines the way they were last displayed.