Code Quick | Think Slick®SlickEdit Inc.3000 Aerial Center Parkway, Suite 120Morrisville, NC 27560USA1.919.473.00701.800.934.EDIT1.919.473.0080 faxinf
Surround With ...166Unsurround ...
To place the cursor on the opposite end of the structure when the cursor is on a begin or end keywordpair, press Ctrl+] (find_matching_paren command o
Setting the Paren Match StyleAs you type a closing parenthesis, highlight and matching options are available. To specify these options,click Window →
The cursor is moved half the window width to the left/right as well.Navigating in Statements and TagsThe following navigation commands are available f
goto_line <linenumber>.Navigating to an OffsetTo seek to a byte offset in the current buffer, from the main menu click Navigate → Go to Offset,
Symbol BrowsingSlickEdit® Core gives you the ability to browse and view symbols in your files or workspaces. Symbolbrowsing relies on Context Tagging®
If you are coding within a class, the top pane (hierarchy pane) of the view window shows the base classhierarchy for the current class. The bottom pan
the current class is displayed at the top of the view window.If you are not currently in a class (or enum or interface), the hierarchy pane is blank a
To add an item to the list, type the name in the Add Item To List text box, then press Enter. Click thebuttons to remove selected items or to clear th
• Show in Symbol Browser - Jumps to the member in the symbol browser. See Symbols View for moreinformation.• Increase/Decrease Listed Members Limit -
The name of the file is displayed at the top of the view window. Hover the mouse over the bitmap of anysymbol in the window to see a tooltip that show
Javadoc Editor ...252Organizing Java Import
• Display Files - (Disabled in SlickEdit Core) Displays the names of the files that are open in the editor.Deselect this option to only show symbols i
provides this same capability, it cannot match the speed of Find Symbol.See Find Symbol View for information about the options that are available on t
The Preview view contains the following components:• Symbol list - This is the list of all symbols which are currently being previewed. In most cases,
Table 6.1. Preview View InformationEditor Element in Use Preview View DisplayAny source file open in the editor The Preview view shows the definition
The References view automatically comes into focus when you use the Go to Reference feature or whenyou select References from the right-click menu of
References View OptionsRight-click on a symbol or file in the left pane of the References view to display the following options:• Contents - Displays
The top part of the view window contains an option and combo boxes that are used for filtering. The bot-tom part of the window lists the symbols group
• The items listed under the Classes folder are global classes that are not part of a namespaceor package.To clear the filters and see all items again
• Base Classes - Displays the Base Classes dialog, which shows a list of base classes for the selectedclass on the left with the list of that class’s
Right-click in this tree to display/modify the symbol filters. Items in the tree can be expanded to view usesrecursively. Double-click or press the sp
Select Text to Paste Dialog ...340Enumerate Dialog ...
The left pane of each dialog contains a tree showing the class inheritance hierarchy (the class list). Theright pane shows a list of the members of th
Each option has three states: If the option is selected, only the specified items will be displayed. If the op-tion is deselected, the specified item
• Inherited - When selected, only inherited members that this class can access are displayed. Whenunselected, only members of this class are displayed
• Native - When selected, only methods explicitly defined with the native keyword are displayed. Whenunselected, only non-native methods are displayed
Code Templates102
Code TemplatesCode templates are pre-defined units of code that you can use to automate the creation of common codeelements, like a standard class imp
We call the process of creating new files from a template "instantiating a template". When a template isinstantiated, you are prompted for t
Creating TemplatesCreating templates is very much like writing code. To create a new code template, complete the followingsteps:1. Create the template
tails.Use the Template Manager to Create a New TemplateClick File → SlickEdit Template Manager to bring up the Template Manager. Select the User Templ
default delimiter $ is used:Table 6.2. Predefined Substitution ParametersParameter Name Description$itemname$ Name of item entered, as on the Add New
Configuration Variables ...479Viewing Configurat
Parameter Name Description$safeprojectname$ Current project name (no path, no extension), withall unsafe characters replaced with safe characters.For
1. Create a new folder under the user templates directory. For example, if you wanted to create a Dialogscategory for Java project items, you would cr
Template Manager DialogThe Template Manager dialog is made up of the following elements:• Categories - Lists a hierarchy of item categories for instal
menu inside the list of parameters.Template Options DialogUse this dialog to edit options that are common to all templates. You can launch this dialog
from a template, as when adding an item template to your project from the Add New Item dialog box, youcan configure your template to replace all subst
• Location - Enter the location to which to save the item.• Add to current project - When selected, the new item is added to the current project.• Add
organized, see Organizing Templates.2. Create or edit a code file (e.g. *.cpp, *.java, etc.). Replace occurrences of substitutable text withsubstituti
class $safeitemname$ {};Creating a Multi-file TemplateA multi-file template is a template item that creates more than one file.Multi-file templates re
<File TargetFilename="$fileinputname$.cpp">MyClass.cpp</File><File TargetFilename="$fileinputname$.h">MyClass.h&
ElementsDefaultNameDefaultName is an optional child element of TemplateDetails. Specifies the default item name when us-ing the Add New Item dialog bo
xii
• Child elements - None.• Parent elements - TemplateDetails.• Value - Text value is required. The text value specifies the description of the template
ExampleThe following example illustrates the metadata for an item template for a C++ class that creates a headerfile (.h) and implementation file (.cp
<Description>My complete C++ class header and implementation</Description><DefaultName>MyClass.cpp</DefaultName></TemplateD
ParameterParameter is an optional child element of Parameters. Specifies a custom substitution parameter for thetemplate item. For a list of pre-defin
ParametersParameters is a required child element of TemplateContent. Specifies custom substitution parametersfor the template item. For a list of pre-
• Version - Template version number. The current version is "1.0".• Type - Template type. Valid types are: "Item".• Child elements
ExampleThe following example illustrates the metadata for an item template for a custom Java class.<?xml version="1.0" ?><!DOCTYPE
<TemplateContent><Files><File>MyClass.java</File></Files></TemplateContent></SETemplate>TemplateDetailsTempl
Text EditingSlickEdit® Core provides familiar operations for selecting, copying, moving, and operating on text, with en-hanced capabilities to meet th
Block selections, also known as column selections, are used to process columns of text. To select ablock, use one of the following methods:• Keyboard
List of Figures1.1. Embedded Languages in HTML ...81.2.
The figure below shows how the original example changes when you type "int" at the cursor while theblock is selected.Figure 6.15. Block Inse
Key or Key Sequence FunctionShift+Up Start or extend selection up one line.Shift+Down Start or extend selection down one line.Shift+PgUp Start or exte
Command Key Sequence or Menu Item Descriptionchange the line insert style. Toaccess the line insert style, clickWindow → Preferences, expandSlickEdit
Command Key Sequence or Menu Item Descriptionlog, click the More Tab, then setthe Line insert style to Before.fill_selection, gui_fill_selection Edit
Command Key Sequence or Menu Item Descriptionlected area. Line selections areword-wrapped with current marginsettings. Block selections areword-wrappe
Adding Numbers to a Selection: EnumerationYou can automatically add incrementing numbers to a selection of code by using the enumerate com-mand. To co
7. Select entire file8. DeselectExcept for empty character selections and line selections, the selections are locked so that the cursor re-mains stati
If using Brief emulation and a clipboard is wanted when cutting text, bind the commandscut_word, cut_end_line, and cut_line to the appropriate keys.A
dent levels, or decimal points shown. To set these options, from the main menu, click Window → Prefer-ences, expand SlickEdit and click General in the
The following options are available:• Type of sort - Choose the type of sort that you prefer from the following options:• Sort buffer - When this opti
6.22. Dynamic Surround: Example 2 ...1636.23. Dynamic Surro
To use the command line for sorting, first activate the command line by pressing Esc. Sort command syn-tax is in the form SortCommandOptionLetter(s).
Color CodingThis feature is designed to combine current line coloring, modified line coloring, and language-specificcoloring. By default, the fundamen
Creating Color Coding for a New LanguageTo create color coding support for your language, complete the following steps:1. From the main menu, click Wi
Select the language that you wish to work with from the Lexer name drop-down list.Click New to prompt for a lexer name to start a new language-specifi
and how to create a new lexer name, see VLX File and Color Coding.Color Coding SettingsThere are several extension-specific settings that can be made
Syntax Indent and SmartPaste®Syntax Indent and SmartPaste are two of the many SlickEdit® features designed to decrease typing, im-proving your coding
Note• When you change the tab stops and indent for all languages except COBOL, change the Tabstext box to +<value> where value is the same value
NoteSmartPaste only works with line selections. For information about creating a line selection, seeLine Selections.Completions145
CompletionsCompletions save keystrokes as you are typing code by providing a way to automatically complete par-tially-typed text. There are several ty
These visual hints can also be individually turned on or off through the Auto-Complete options. See Auto-Complete Tab.TipAuto-Complete can be activate
7.18. XML Beautifier: Attributes/Values Tab ...2607.19. XML Beautifier:
Auto-Complete options can be configured for each file extension type. This allows you to activate and de-activate particular features on a per-languag
To configure Auto-Complete settings, from the main menu, click Window → Preferences, expandSlickEdit and click General in the tree, then double-click
AliasesAliases are identifiers that you can quickly type which are then expanded into snippets of text. You canuse aliases for commonly typed function
2. Select alias.slk and click OK. The Alias Editor dialog appears.3. Click New, then type the characters you wish to use for an identifier in the Alia
If you keep source code in a version directory tree, you might want to set an environment variable andembed the environment variable in the alias valu
1. From the main menu, click Window → Preferences, expand SlickEdit and click General in the tree,then double-click the File Extension Setup setting.
Alias names are displayed in the list box at the top left of this dialog box. The value for the selected aliasname is displayed in the large text box
• You can use special escape sequences in your aliases, which will be substituted upon expan-sion with certain values. See Alias Escape Sequences for
Escape Sequence Description%\x-Increment Decrement column by ddd.%\s Preserves trailing spaces - place at the end of aline.%\l Preserves leading space
Alias Name and Description Valuewm - A WinMain function template with indentingand a cursor position.int APIENTRY WinMain(HANDLE hInstance,HANDLE hPre
10.17. Organize Imports Options Dialog ...36910.18. 3-Way Merge D
7. In the large text field on the right side of the Alias Editor, you can now type the alias value. In theplaces where you want parameter prompting to
Syntax ExpansionSyntax Expansion is a feature designed to minimize keystrokes, increasing your code editing efficiency.When you type certain keywords
To change the minimum expandable keyword length, enter the value by using the Minimum expandablekeyword length spin box.To set options such as brace s
To add syntax expansion and indenting for other languages, complete the following steps:1. Use the prg.e macro as a template. This file is located in
Dynamic Surround and Surround WithTwo SlickEdit® Core features that allow you to surround text with text are Dynamic Surround, which letsyou surround
After pressing Space to expand the template, Dynamic Surround is activated, with a blue rectangle drawnaround the expanded statement, as shown below:F
Pressing the Down arrow key pulls the code block into the statement, indented to the correct levels, asshown below:Figure 6.23. Dynamic Surround: Exam
The finished code is shown as follows:Figure 6.24. Dynamic Surround: Example 4Dynamic Surround165
Statements that are pulled into the block are indented according to your settings on the Indent Tab of theExtension Options dialog (Window → Preferenc
surround, right-click, and select Surround Selection With, or use the surround_with command. TheSurround With dialog appears, with a pre-defined list
10.66. FTP Options: Debug Tab ...46510.67. Reflow Com
To modify one of the Surround With structures, complete the following steps:1. Select the structure that you wish to modify. Notice the template for t
• surround_with - This command is used to display the Surround With dialog, allowing you to pick astructure to surround selected text with. This comma
will be used. In the case of surround_with_if, "if" matches the beginning of both the if and if...else tem-plates, but the if template is us
structure into a different location, because as soon as the text is pasted, SlickEdit® Core enters DynamicSurround mode, allowing you to pull statemen
BookmarksBookmarks are used to save the current edit location, so you can quickly return to it later. There are twotypes of bookmarks:• Named Bookmark
name is used if the bookmark is inside of a symbol. The file name is used if there is no symbol on the lineor if the file does not support Context Tag
Pushed BookmarksPushed bookmarks are stored on a stack. New bookmarks can be pushed onto the stack, preserving thecurrent location. Popping the stack
Most bookmark options are located on the Search Tab of the General Options dialog (click Window →Preferences, expand SlickEdit and click General in th
Setting BreakpointsThe quickest way to set or clear a breakpoint is to press F9. This toggles the breakpoint for the currentline.The breakpoints funct
CommentingSlickEdit® Core makes commenting your code easy. You can comment out selected text, or type the startcharacters for a new doc comment and ha
right sides of a line comment.For code examples and descriptions of the other available options, see Comments Tab.Creating Doc CommentsDoc comments ar
Javadoc FormatTo use the Javadoc commenting format, select the start characters /** and use style @param. Check In-sert leading *. Using the following
Doxygen FormatTo use a Doxygen comment format, select the start characters /*! or //! (based on your preference) andthe \param style. Using the follow
types of width settings:• Fixed - Comments will be formatted to a specified width.• Automatic - Comments will be formatted according to the width of e
Find and ReplaceSlickEdit® Core provides several different ways to search and replace:• For the fastest method of searching and replacing, use Quick S
using the command line, use the i_search command (Ctrl+I). To start a reverse incremental search, usethe reverse_i_search command (Ctrl+Shift+I).The f
Keys FunctionCtrl+Shift+W (GNU Emacs emulation) Toggle word searching onand off.Incremental searching stops when you press a key that does not insert
Option DescriptionR Interpret search string as a SlickEdit® regular ex-pression.U Interpret search string as UNIX regular expression.B Interpret strin
Option Descriptioncharacter of a DBCS sequence unless this option isspecified., (Comma) Delimiter to separate ambiguous options.XCCLetters Requires th
Option Description* Used with the “Search hidden text” (H) or “Highlightmatches” (#) options to find all matches and un-hideor highlight them.& Us
List of Tables1.1. Supported Languages and File Types ...63.1. UI
Key ActionY or Space Make change and continue searching.N or Backspace No change and continue searching.L or Dot Make change and stop searching.G or !
Key ActionReplace Command Search ExamplesThe table below provides examples of using command line replace.Table 6.12. Replace Command Search ExamplesEx
Find and Replace ViewYou can use the Find and Replace view (Ctrl+F or Search → SlickEdit Search/Replace) to specifysearch and replace options and cond
prompted to name the operation. To access a saved operation, select Saved List from the submenu,then pick the saved operation to load.Syntax-Driven Se
the only open search view windows. You can open and close search results view windows by right-clicking on the Search Results tab in the SlickEdit Cor
Characters have special meaning during search and replace operations.• UNIX regular expressions - When regular expressions are turned on for a search
Example DescriptionReplace with: \d12SlickEdit regular expression:Search for: ^a+$Replace with: \12Brief regular expression:Search for: <a+$Replace
Example DescriptionUNIX regular expression:Search for: (if|while)Replace with: x\1y\2SlickEdit® regular expression:Search for: {if|while}Replace with:
• SlickEdit regular expression:Search for: {[0-9]#}Replace with: $#0• Brief regular expression:Search for: {[0-9]\:+}Replace with: $\0If the minimal m
Beautifying CodeCode BeautifiersCode beautifiers, available for many languages, reformat the layout of existing text based on settings thatyou specify
RefactoringRefactoring is a precise code editing feature that you can use to clean up and improve the understandab-ility of your source code. Refactor
Quick Extract MethodAfter selecting a set of lines, Quick Extract Method creates a new method with the selected lines as thebody. It discovers any und
Quick Modify Parameter ListThis refactoring allows you to add, delete, and re-order parameters for a selected function. The refactor-ing will modify t
Available C++ RefactoringsTo access the C++ refactorings, from the main menu, click C/C++ Refactoring. The C++ Refactoringmenu can be also be accessed
The Method name text box allows you to choose the name of the newly extracted method. Uncheck Re-place selected code with call to new method if you do
Push Down to Derived ClassMoves class members to a class that inherits from the selected class.Figure 6.34. C++ Refactoring: Push Down to Derived Clas
If a member of the super class is used by multiple subclasses, then the member is moved to all of thesubclasses that access that member, so that when
Pull Up to Super ClassAutomates moving members from a selected class to one of its directly-inherited base classes.Figure 6.36. C++ Refactoring: Pull
Class members are pulled up one level at a time. Constructors and destructors cannot be moved. Any de-pendencies that are not part of the original cla
Encapsulate FieldGenerates get and set functions for the specified variable and makes that variable private. All referencesto the variable are replace
Chapter 1. Introduction1
Extract ClassBreaks a large class into a better abstraction by moving some responsibilities into a new class or inter-face. This refactoring creates n
Extract Super ClassBreaks a large class into a better abstraction by moving some responsibilities into a new class/interface.The extracted class becom
Move MethodMoves a method from one class to another and updates references accordingly.The original method may be converted to a delegate method if th
If the method is static, you will be prompted for the target class.Figure 6.43. C++ Refactoring: Move Method 2Move Static FieldMoves a static data mem
Convert Static to Instance MethodChanges a static method to an instance method and updates any references to change how the methodis accessed.Convert
Convert Local to FieldMoves a local variable from the body of a method into an instance member variable in the current class.References to the local v
Create Standard MethodsCreates an assignment operator, copy constructor, default constructor, and destructor for the selectedclass.Figure 6.48. C++ Re
Test Parsing ConfigurationTest Parsing Configuration analyzes the C++ refactoring configuration that has been set up and reportskey information and er
Figure 6.49. Test Parsing Configuration: Example 1C++ Refactoring216
The following example shows a warning that is not severe enough to prevent parsing of the file.Figure 6.50. Test Parsing Configuration: Example 2C++ R
Getting the Most Out of SlickEdit® CoreAt SlickEdit, we take great pride in delivering unparalleled power, speed, and flexibility to our customers.Our
Finally, the following example shows a test resulting in no errors or warnings.C++ Refactoring218
Figure 6.51. Test Parsing Configuration: Example 3Reviewing Refactoring Changes219
Reviewing Refactoring ChangesWhen a refactoring finishes, the Refactoring results dialog box is displayed, allowing you to review thechanges.Figure 6.
• The bottom pane lists all files that have been modified by the refactoring. Clicking on any file in this listbrings that file into view, where it ca
• User Supertype Where Possible• Inline• Introduce Factory• Encapsulate FieldSee the Eclipse Help for descriptions and other information regarding Jav
Viewing and DisplayingSlickEdit® Core offers several features for viewing and displaying.Hexadecimal View and Edit ModeTo view a binary or text file i
To define which characters to display, from the main menu click Window → Preferences, expandSlickEdit and click General in the tree, then double-click
hide. This dialog is displayed by clicking Display → Selective Display, or by using the selective_displaycommand.When Selective Display is active, a P
well. This command ignores hidden lines and only copies visible text. This operation does not work withblock selections.• To redisplay all lines and r
The Selective Display dialog also contains static options for expanding/collapsing sub-levels. See Select-ive Display Dialog for more information and
Tools and Utilities for more information.Get StartedTo get started, check out Chapter 2, Quick Start. This will guide you through configuration of som
228
Chapter 7. Language-Specific Editing229
Language-Specific Editing OverviewMany features in SlickEdit® Core are language-specific and based on the language editing mode. Youcan also configure
Extension OptionsThe behavior of the editor can be customized for files based on specific language extensions. The Exten-sion Options dialog box (show
To have the setup data for one extension refer to another extension, click the Refer to button (located atthe top right corner of the Extension Option
C and C++This section describes some of the advanced features and options that are available in SlickEdit® Corefor C and C++, including extension-spec
Use this tab to specify the brace style used by template editing and smart indenting. Choose the style youwant to use then select from the following o
The following options are available:• Indent first level of code - Specifies whether smart indenting should indent the cursor after declara-tions such
lows:myLongMethodName(firstarg,secondarg,thirdarg);myLongMethodName(firstarg,secondarg,thirdarg,);• No space before paren - Determines whether a space
The following options are available:• Main style - Specifies the main function declaration template inserted. Select ANSI C/C++ if you wantan old ANSI
Documentation and ConventionsAccessing DocumentationDocumentation is located in the SlickEdit® Core installation directory at<PathToSlickEditCore&g
• Sync extension options - When this option is selected, the extension options are updated to reflectany changes that these dialogs have in common. Fo
Indenting TabThis tab provides indenting parameters that you can use when working with C/C++ files in SlickEdit®Core.Figure 7.7. C/C++ Beautifier: Ind
to the Syntax indent text box on the Indent Tab of the Extension Options dialog.• Original tab size - The value in this field specifies the size of th
The following options are available:• Indent stand alone comments - Indicates whether comments that appear on lines by themselves withno statement tex
column as the original source file. Trailing comments are comments that appear at the end of lines thatcontain statements or declarations.• Original r
The following options are available:• Indent preprocessing - When this option is selected, the indent before the # character of prepro-cessing is set
To define a new scheme, set the various beautify options, and press the Save Scheme button. Userdefined schemes are stored in uformat.ini.C/C++ Compil
NoteIt is possible to select other compilers for individual projects. In those cases, the project-specificcompiler is used and overrides the global de
#define MYNAMESPACEDECL(name) namespace name {#define MYPACKEDMACRO __packed#define MTYPELESS void*#define MYPOINTER(t) t*#define MYNULL ((void*)0)#de
7. When finished, click OK.8. A prompt appears asking whether to rebuild your workspace tag file. Click Yes.Preprocessor macros are stored in usercpp.
the main menu, then select Preferences from the Window submenu.Our documentation structure is set up so that instructions for using the product make u
JavaThis section describes some of the features and options that are available for Java, including extension-specific options, the Javadoc Editor, and
The following settings are available:• Begin-End Styles - Specify the brace style to be used for template editing and smart indenting, thenchoose from
• Use continuation indent on function parameters - Determines whether function parameters shouldalways use the continuation indent.By default, we form
}},thirdarg);myLongMethodName(new ActionListener() { // special case anonymous classfirst argumentpublic void actionPerformed(ActionEvent e) {createdB
• Add blank line after parameter comment - If checked, a blank line is added if a tag follows an@param tag.• Add blank line after parameter comment gr
Java RefactoringSee Java Refactoring for information about Java refactoring in SlickEdit® Core.Java Refactoring253
XML and HTMLFeatures for XML and HTML are described below. See also XML/HTML Formatting.XMLXML features in SlickEdit® Core include Context Tagging®, v
The following settings are available:• Case for inserted tags - This option is to specify if you want your tag names to be lowercase or upper-case. Fo
and Slick-C®. Note that by default, when creating a new comment, the Javadoc Editor is displayed for allfile types except C#. To work around this limi
The following settings are available:• Indent for each level (Syntax indent) - The amount to indent for each new nesting level of tags. Wehave put the
Supported Languages and EnvironmentsThis section lists the languages and file types supported by each SlickEdit® Core feature as well as thesupported
• Broken tag lines - Specify how broken tag lines are treated from the following options:• Indent from tag column by - Specifies the amount to indent
• Reformat - When off, all white space and line breaks are preserved. However, tags are formatted(tag case, attribute case, etc.).• Indent - When on,
<tr><td></td></tr>Please note that the number of line breaks is not the same as the number of blank lines. If youwanted three
The Attributes/Values tab contains the following settings:• Attribute case - Specifies how you want attributes cased inside the body of a tag. For exa
Figure 7.19. XML Beautifier: Comments TabThe Comments tab contains the following options and settings:• Indent stand alone comments - When on, indicat
ginal source file. By trailing comments, we mean comments which appear at the end of lines whichcontain tags.• Original relative column - When on, &qu
• Remove blank lines - When on, blank lines are deleted.Schemes TabFigure 7.21. XML Beautifier: Schemes TabTo define a new scheme, use the Beautifier
Map URLs to a different location. Whenever opening a URL, the URL map is examined to see if this URLis mapped to a different location. If the URL is m
5. Click OK.Toggling Between Begin and End XML TagsPlace the cursor anywhere on the begin or end tag and press Ctrl+] to find the corresponding end or
HTML Formatting OptionsContent in XML and HTML files may be set to automatically wrap and format as you edit, through theXML/HTML Formatting feature.
Feature LanguagesJavadoc™ Editor ActionScript, C, C#, C++, J#, Java, JavaScript,Slick-CSelect/Hide Code Block ActionScript, Ada, C, C#, C++, CFML, Ch,
Languages similar to HTML have similar Formatting Options dialogs which are not specificallydocumented.Figure 7.24. HTML Formatting Options DialogHTML
The following settings are available:• Case for inserted tags - This option is where you specify if you want the tag names to be lowercase oruppercase
• Use <DIV> tags for alignment - (Not available in SlickEdit Core.) This option is used by the HTMLtoolbar. When this option is selected, the &l
Figure 7.25. HTML Beautifier: Indent TabThe following settings are available:• Indent for each level (Syntax indent) - The amount to indent for each n
wrapped until it reached a total length of 30+80=110 characters. Set this value to 0 if you want your linebreaks preserved.• Broken tag lines - Specif
• Content - Specify how to beautify content from the following options:• Reformat - When off, all white space and line breaks are preserved. However,
<TD></TD></TR>Please note that the number of line breaks is not the same as the number of blank lines. If youwanted three blank line
The Attributes/Values tab contains the following settings:• Attribute case - Specifies how you want attributes cased inside the body of a tag. For exa
The Comments tab contains the following options and settings:• Indent stand alone comments - When on, indicates whether comments which appear on lines
• Original relative column - When on, "trailing comments" are indented by reusing the indent after thelast character of the end of the state
SlickEdit® Core v3.3 for Eclipse™
Embedded LanguagesSlickEdit® Core recognizes languages embedded in HTML, COBOL, Perl scripts, and UNIX shell scripts.When editing embedded languages,
any previous paragraphs.• Hitting a standalone tag - When on, the beautifier will interpret a standalone tag as a signal of theend of any previous par
XML/HTML FormattingContent in XML and HTML files may be set to automatically wrap and format as you edit. XML/HTMLFormatting is essentially comprised
next to Enable XML Formatting and/or Enable HTML Formatting. To toggle Tag Layout and/or Con-tent Wrap on or off for either file type, check or unchec
ate or open in SlickEdit® Core will be wrapped, but no Tag Layout settings will be applied. The secondscreen shot (the Current Document Options dialog
Default SchemesXML/HTML Formatting comes with two default schemes. Each time that you open an HTML file for edit-ing, by default, the html (default ht
Specifying the Scheme to UseYou can specify a scheme to use for just the current document, or a default scheme to use for all HTMLand/or XML files tha
Saving and Deleting SchemesIn the XML/HTML Formatting Scheme Configuration dialog, modified schemes are denoted by asterisksaround the name (for examp
formatted in your code. The following are examples:<div>Sample text of a tag set to (block) style.</div><h1>Sample text of a tag set
It contains the following general settings:• End tags settings - These options control how the end tags for the selected tag are formatted:• Has end t
Content Wrap SettingsThe Content Wrap tab of the XML/HTML Formatting dialog contains options for specifying how wrappingshould occur for the selected
document terminator with the color coding lexer name. The following Perl example shows HTML embed-ded in a Perl script. Unknown languages are color-co
• Preserve content - When selected, content between start and end tags is not wrapped, but the tagsare laid out properly with the parent tag. This cou
culated, and the specified width is adjusted accordingly. This is useful for producing uniform blocks oftext.• Preserve width of existing content - Wh
<div>|</div>Example of both settings unchecked:<div>|</div>Example of start checked and end unchecked:<div>|</div>
more blank lines, the values should be set to 2 or higher.More SettingsThe XML/HTML Formatting dialog contains two buttons along the bottom that allow
AdaThis section describes some of the features and options that are available for Ada, including extension-spe-cific options and the Ada Beautifier.Ad
The tabs on the Ada Beautifier are described in the sections below.Indent TabThe following settings are available:• Indent with tabs - When checked, t
An operator position setting of Beginning of next line would result in:Seconds := Days* Hours_Per_Day* Minutes_Per_Hour* Seconds_Per_Minute ;Statement
tions) have their colons vertically aligned. For example, before beautify:procedure foo ( A_Var : Boolean ;Another_Var : Boolean) ;After beautify:proc
• Nested paren list item - A parenthesized item that is itself enclosed in a larger parenthesized list.For example, before beautify:Default_Data : con
the last character of the end of the statement or declaration.• Original relative indent - When selected, trailing comments are indented by reusing th
Install/UninstallSystem RequirementsSlickEdit® Core runs on Microsoft® Vista™, Windows® XP, or Windows 2000 as well as Linux® x86/GTK2 (kernel 2.4 or
if A = Band C = D thennull ;end if ;• Additional indent for logical operator when followed by another line that begins with logicaloperator - Addition
COBOLThis section describes some of the advanced options that are available for COBOL.COBOL Formatting OptionsOptions are available for the COBOL lang
selected, the case of keywords are changed to the keyword case specified when you type them. Forexample, when you type the word "procedure"
PascalThis section describes some of the advanced options that are available for Pascal.Pascal Formatting OptionsOptions are available for the Pascal
The following options are available:• Begin-end style - Specify the begin/end style used by template editing and smart indenting. For eachstyle, selec
PL/IThis section describes some of the advanced options that are available for the PL/I language.PL/I Formatting OptionsOptions are available for the
The following options are available:• DO/END style - Select the syntax expansion style that indicates whether syntax expansion shouldplace the DO on a
PythonThis section describes some of the advanced features that are available for the Python language.Begin/End Structure Matching for PythonBegin/End
Chapter 8. Tools and Utilities307
Setup on Windows1. Open a command line utility and change to the SlickEditCoreSetup subdirectory of your Eclipseinstallation.2. Run the following comm
Comparing and MergingSlickEdit® Core provides two powerful ways to compare and merge files: DIFFzilla and 3-Way Merge.DIFFzilla®DIFFzilla provides pow
Comparing Two FilesTo diff two source files, complete the following steps:1. From the main menu click Tools → File Difference, or use the diff command
file.NoteYou can only use the interactive dialog output style when diffing a selected range of lines. There-fore, the option Instead of an interactive
path for Path 2 only.4. In the Diff type, select Symbols and click OK. You do not need to turn on the Diff all symbols checkbox when performing a mult
6. Click Save. The Save Multi-File Output dialog box opens.Figure 8.3. Save Multi-File Output DialogDIFFzilla®312
7. Select Save Path 1 Filelist, Include different files, and Include files not in Path2. All other checkboxes should be clear.8. Click OK and select a
The Backup History feature is available for viewing and comparing the differences between the currentand previous versions of an open file. It utilize
2. In the Filename text box, enter the baseline (original) file name. Click the Ellipses button to the right ofthe text box to select files. Click the
3-Way Merge SettingsFor descriptions of the options on the 3-Way Merge Setup dialog, see 3-Way Merge Dialog.File History and Backups316
File History and BackupsSlickEdit's Backup History is disabled in SlickEdit Core. Eclipse maintains their own backup history whichyou can access
• To buy a full license, visit the SlickEdit Web site at http://www.slickedit.com or select the Purchase aLicense option. That will take you directly
FTPFTP support includes an FTP view window and the ability to easily open and edit FTP files.Working with FTPBefore you can access FTP files, you must
2. Click Add to create a new profile. The Add FTP Profile dialog box is displayed.3. Click Edit to Edit a profile. The Edit FTP Profile dialog box is
3. Click Connect. The FTP view displays the content of the remote directory.4. Toggle the ASCII Transfer mode button to transfer text files. When in A
The Regex EvaluatorRegular expressions are used to express text patterns for searching. The Regex Evaluator provides thecapability to interactively cr
expression. Matches are also marked with a yellow arrow that appears in the gutter to the left of the testcase. You can hover your mouse on this arrow
Using the Calculator and Math CommandsThe CalculatorTo access the calculator, click Tools → Calculator, or use the calculator command.Figure 8.8. The
To add hex FF with octal 77 with binary 111 with decimal 99, complete the following steps:1. Click Hex then type or click FF.2. Click +.3. Click Octal
Operator Description^ xor+, blank(s), - addition, implied addition, subtraction*, /, % multiplication, division, remainder** powerHexadecimal numbers
Document MathType mathematical expressions into a buffer and evaluate them with the add command. This feature iscalled document math. The add command
OS File BrowserSlickEdit® Core provides a way to display the operating system’s (OS) file manager/browser. For ex-ample, Windows Explorer is displayed
FLEXnet Publisher identifies your machine using a combination of information about the hardware on thismachine. No personal data is used in creating t
Chapter 9. Macros and MacroProgramming329
Recorded MacrosThere are two types of macros in SlickEdit® Core: macros that you record, described below, and macrosthat are available for programming
1. From the main menu, click Macro → Record Macro (or use one of the toggle methods to start record-ing, as described under Recorded Macro Operations
the execute_last_macro_key command (see Binding Macros Using execute_last_macro_key).Binding Macros Using the Key Bindings DialogAfter recording a new
Creating bindings for recorded macros works the same as creating bindings for SlickEdit Core com-mands. Click Add to initiate the binding, then specif
NoteThe prefix key sequence Ctrl+Shift+F12 works in all emulations except SlickEdit text mode edi-tion. In that emulation, the prefix key sequence is
your configuration directory. To edit a macro bound using this method, open the .e file for the macro youwant to edit, make and save the changes, then
Programmable MacrosMany of the actions performed using SlickEdit® Core are performed using Slick-C® macros. Slick-C func-tions are mapped to menus, bu
The data structure of the variable is displayed in the list box at the top of the dialog, and the value foreach entry is displayed in the Value text b
Help and Product SupportThere are several ways to get help about SlickEdit® Core:• Use the Help system - See Using the Help System below.• Search the
338
Chapter 10. SlickEdit Core Dialogs339
Editing DialogsThis section describes the SlickEdit® Core dialogs associated with text editing. See Text Editing for moredetails about editing operati
ing numbers to a selection using the enumerate command with options on the command line. See theHelp system for command syntax.Figure 10.2. Enumerate
Figure 10.3. Filter Selection: Command DialogEnter the command in the Command text box. The selected text will be used as input to the command,and the
Search DialogsThis section describes the SlickEdit® Core dialogs and views associated with searching and replacing.For more information about using se
• Find Tab• Find in Files Tab• Replace Tab• Replace in Files TabFind and Replace View: Context MenuRight-click in the background of the Find and Repla
• Search for - Enter the string you want to search for here. You can retrieve previous search strings byclicking the drop-down list button. Strings ma
menu click Window → Preferences, expand SlickEdit and click General in the tree, then double-clickthe File Extension Setup setting. On the Extension O
• Search hidden text - Select this option to search for text hidden by Selective Display. Matches foundthat were set to be hidden by Selective Display
Chapter 2. Quick StartSlickEdit® Core provides numerous configuration options so you can customize your environment accord-ing to your working style a
• Look in - This field allows you to specify a range for your search to the current selection, current pro-Find and Replace View348
cedure, current buffer or all buffers.Click the right-pointing arrow button to the right of the Look in field to display a menu containing morespecifi
• Append to output - Select this option to append search results to the search results window that is infocus.• List filenames only - If selected, onl
• Replace with - Enter the text or regular expression for which to replace the item that is searched. Youcan retrieve previous replacement text or reg
TipYou can use the menu items Edit → Undo and Edit → Redo to undo/redo replacements.Replace in Files TabThis tab on the Find and Replace View provides
Find and Replace View353
• Leave modified files open - Select this option to open all of the files on which a replace has been per-formed.The Results options are the same as t
• Search for - Enter the name of the symbol to find. If you select the option Use pattern, you can enterregular expressions or wildcards in the search
in the current function scope.• <Current Project> - Select this setting to only search in files that are in the current project.• <Current Wo
• Manage tag files - Displays the Context Tagging - Tag Files Dialog, which can be used to updateyour tag files.Go to Definition DialogThe Go to Defin
General OptionsGeneral options affect all language extensions. You may want to look through all of the dialogs mentionedto see if there are any other
Dialogs Related to Viewing and DisplayingThis section describes SlickEdit® Core dialogs and views related to viewing and displaying within the edit-or
Search TextSelect Search text to specify a search string and display lines containing the search string specified orlines not containing the search st
WIN32S VERSION=4• Warning if Not Defined - If on when you preprocess your source, a message box is displayed for eachdefine found in an expression whi
Macro DialogsThis section describes SlickEdit® Core dialogs related to macros. For more information about workingwith macros, see Recorded Macros, Pro
The dialog shows a list of all macros you have recorded. Use the buttons to perform the following opera-tions:• Run - Runs the selected macro. See Run
The data structure of the variable is displayed in the list box at the top of the dialog, and the value foreach entry is displayed in the Value text b
• Update - Sets the contents of the variable to what is currently displayed in the Variable Editor.• Refresh - Cancels changes and displays current va
The following fields and settings are available:• Menu name - Name of the current menu resource. You can define your own menu resource which isused in
command, specify "help open dialog box" as the Help item. If you do not know the name of the dialogbox displayed, search for Help on the com
The following settings are available:• Requires editor control - Indicates that this command should be enabled only if operating on an editorcontrol.•
Extension-Specific OptionsThese options are specific to file extensions, and are available on the Extension Options dialog (open thePreferences dialog
• Requires a clipboard - Indicates that this command should be disabled if there is no editor control clip-board available.• Requires a selection - In
Tools DialogsThis section describes SlickEdit Core dialogs related to tools and utilties. See Chapter 8, Tools and Utilit-ies for more information.Org
these groups instead of having just one flat list of imports.• Number of package nesting levels to group imports by - If this is set to 1, import stat
The Ellipses buttons to the right of the text boxes are used to select files. The B buttons to the right of thetext boxes are used to select from the
plied to the output file and the change IS indicated, so that using the Next Conflict button will showyou the change.• Output style - Output style has
Diff TypesThe following Diff types are available:• Text Compare - Compares two files and shows the differences between them. When this option is se-le
• Use file on disk - Select this option to diff the file on disk and not the file in the buffer.• More - Click this button to display additional file
The file compare options, shown above, are described as follows:• Expand tabs into spaces before comparing - When selected, tabs are expanded to the a
Figure 10.21. DIFFzilla®: Dialog Setup OptionsSetup options for the DIFFzilla® dialog are described as follows:• Show gauge during diff - When selecte
(history) or just places the current buffer name into the Path 1 text box. Press F7/ F8 to restore the pre-vious next dialog settings, respectively.Mu
SlickEdit® Core v3.3 for Eclipse™Information in this documentation is subject to change without notice and does not represent a commitment on the part
processor macros that you use in your code for portability or convenience. For performance considera-tions, Context Tagging does not do full preproces
• Next - Moves the cursor to the next set of mismatched files in both source trees.• Prev - Moves the cursor to the previous set of mismatched files i
the dialog lists all the source files indexed by the currently selected tag file.For descriptions of the Tag File categories, listed on the left side
Options DialogsThis section describes SlickEdit® Core dialogs and views related to options.General Options DialogMany common user preferences can be s
The following options are available:• One file per window - (Not available in SlickEdit Core.) If checked, each file you open will be allocatedin its
• Alt menu hotkeys - (Not available in SlickEdit Core.) If checked, Alt-prefixed keyboard shortcuts willdisplay the corresponding drop-down menu. If u
• Click past end of line - If checked, the cursor can be placed past the end of a line.• Vertical line column - Specifies the column in which the edit
The following options are available:• Default search options - The following default search options apply to all command line searches,quick searches
• Match case - If checked, various search commands default to case-sensitive searches.• Match whole word - If checked, refines search results to match
ted.• Incremental search highlighting - If checked, when an incremental search is performed, matchingoccurrences will be highlighted with two colors:
The following settings are available:• Styles - Choose the selection style you wish to use from the following options:• User defined - This option is
Chapter 3. User Interface19
lect behaviors.• CUA (default) - When this style is selected, selected text is deleted before a paste or character is in-serted unless the selection i
NoteViewing special characters is only available for ASCII files.To access Special Characters options, from the main menu click Window → Preferences,
More TabThe More tab, pictured below, contains additional options that can be set for working with SlickEdit®Core. To access these options, click Wind
Figure 10.28. General Options: More TabThe following options are available:• Start in insert mode - If selected, the editing mode is set to insert whe
wise, the editing mode is set to replace.• Throw away file lists - If selected, the modified File Manager file lists can be modified and closedwithout
Elements and Setting Macro Variables for more information.• Scroll style - Select from the following options:• Smooth horizontal scroll - When selecte
• Smart next window - (Not available in SlickEdit Core.) Use this combo box to select from the followingdifferent windowing styles:• Smart next window
The following options are available on the Exit tab:• Always save configuration - If selected, configuration changes are saved without prompting.• Alw
• Exit confirmation prompt - If selected, you will always be prompted when exiting the editor.Virtual Memory TabTo access virtual memory options, clic
The following options are available:• Spill file path - This text box specifies a directory where spill files and temporary files should beplaced. On
Screen LayoutNoteSlickEdit® Core does not modify the Eclipse screen layout, so this information is intended only asa brief overview. See "Workben
• Buffer cache size - The value in this field, specifies the maximum amount of memory used to store textbuffer data in kilobytes. A value that is less
General settings on this dialog box are described below (see Extension Options - General DialogSettings). Other options are categorized into the follo
sions that support Extension Options. To configure Extension Options for an extension that is not in thelist, you must first load or create a file wit
The following options and settings are available:• Indent style - Select from the following indent styles:• None - When this option is selected, the E
the line only if the cursor position is before the intended indent location; otherwise, it will insert an ad-ditional tab stop. When this option is de
The following settings are available:• Margins - Sets the left, right, and new paragraph margins. Specify the column number at which eachmargin should
lows:• Wrap long lines to window width - This option activates Soft Wrap. A curved arrow is displayed atthe end of each line, along the right-hand bor
The following options are available:• Mode name - Allows you to enter a more meaningful name for this extension setup. Define a modename here for the
truncation line length to be moved or to be modified. For example, search and replace operations donot find data to the right of the truncating line l
Comment BlockThese settings are used when you comment out a selected block of text (Format → Comment Block orbox command). SlickEdit® Core provides ei
The WorkspaceThe workspace is a collection of projects. A project contains all resources such as source files, sub-folders, icons, and generated code.
if (!enabled) {tabState = TIS_DISABLED;}*/Select from the following comment block options:• First line is top - When this option is selected, the firs
placed:• At left margin - Places characters flush against the left margin of the editor window, as shown in theprevious example. The indent levels are
Javadoc, select /**. For XMLdoc, select ///. For Doxygen, select /*! or //!. See Doc Comment Examplesfor more information.• Use style - Select the tag
// The quick brown fox[CURSOR_HERE] jumped over the lazy dog.String EditingIf Split strings on Enter is selected, when you press Enter to split a line
The following options are available:• Enable comment wrap - When selected, comments are allowed to be wrapped. You must still specifythe type of comme
If Maximum right column is used, comment lines will be wrapped when they reach the specifiedcolumn, even if they have not reached the specified fixed
The following options and settings are available:• Color coding options - The options below affect Color Coding. For more information about workingwit
• Select first (affects all extensions) - When checked (default), a selection can be made with theright mouse button instead of displaying the extensi
The following options are available:• Enable auto-completion - If selected, activates the Auto-Complete feature. See Auto-Complete formore information
• Display after (ms) idle - The number of milliseconds the editor must be idle before auto-completionsuggestions will be displayed. This setting affec
To associate files to edit, complete the following steps:1. From the main menu, click Window → Preferences.2. Expand General, then expand Editors and
List MembersThe following options apply to List Members. See List Members for more information.• Auto-list members - If selected, typing a member acce
• Insert open parenthesis - If selected, selecting an item in the list inserts the current item in the list andany extra characters that are required
• Auto-list compatible parameters - If selected, compatible variables are automatically listed whenparameter info is active and typing the arguments t
Figure 10.40. Select a Tag DialogSelect the definition you want to go to. You can also check the options on this dialog to set the behaviorgoing forwa
• Backup Tab• AutoSave Tab• File Filters TabLoad TabThe Load tab, pictured below, offers options to control how files are loaded.To access the Load ta
and the number of lines in the file are counted. The line number is always displayed in the line indicatorarea of the editor. The Load entire file che
• File locking - When selected, this option ensures that a file handle is kept open to the file for lockingpurposes. This detects when another user is
The following options are available:• Append EOF character - When this option is set, an EOF character is appended to the end of DOSfiles when the buf
value of the Add to project option on the Save As dialog. Check this option on the Save tab to havethe Add to project check box selected by default ea
The following options are available:• AutoSave activated - Activates AutoSave, which prevents you from losing data when an abnormal ed-itor exit occur
• To open a source file in the workspace, from the Navigator view, select the desired file. Right-click thefile, then select Open.• To open a file usi
different directory option has been selected. If the AutoSave directory is blank,<configuration_directory>\autosave is used. The configuration d
In the File filters text box, enter the filters you wish to assign. Separate each filter with a comma, andplace file patterns in parentheses. Separate
Note• The first time the Key Bindings dialog is invoked, the Building Tag File progress bar may bedisplayed while Slick-C® macro code is tagged.• Bind
• Search by key sequence - This filter is used for searching bindings in the Key Sequence column. Itcaptures literal keyboard input. For example, when
• Run - This button runs the selected command or user-recorded macro.• Remove - This button clears the binding for the selected command/macro. You can
mode (see below).• Cancel - Click this button to cancel the binding operation and close the dialog.• Advanced - Click this button to expand the langua
Redefinable KeysThe redefinable keys and their available commands are described below.• Backspace - The following commands are available for binding t
switch to the opposite setting, depending on whether it is bound to Split Insert Line or NosplitInsert Line.• Home - The following commands are availa
causes the rest of the line to be moved to the previous tab stop. If you are using a mode that has a syn-tax indent for each level that is different f
• Tag file on save - When this option is selected, files are retagged when you save a modified file.• Background tagging of open files - When this opt
• Switch to C/C++ Editor – Changes to the CDT editor. Visible only for C/C++ files.• Switch to Ant Editor – Changes to the Eclipse Ant build.xml edito
support for symbol cross-references.• Find references incrementally (faster) - When unselected, all files with potential references aresearched and an
• Minimum - 8 MB• Default - 64 MB• Ideal - Sum of tag file sizes• Maximum - 25% of physical system memory• C Preprocessing button - Displays the C/C++
General settings on this dialog box are described below (see Color Coding Setup Options - General Dia-log Settings). Other options are categorized int
• Tags TabColor Coding Setup Options - General Dialog SettingsThe following fields and buttons are available on the Color Coding Setup dialog:• Lexer
The following options are available:• Token type - Select from the following token types:• Keywords - When this option is selected, the list box displ
• Punctuation, Lib Symbols, Operators, User Defined - When one of these options is selected, thelist boxes to the right display the words associated w
The following options are available:• Hex numbers• 0x#### (C-Style) - When this option is selected, text such as 0x123ABC is color-coded in numbercolo
• &H#### (Basic) - When this option is selected, text such as &H123ABC is color-coded in numbercolor.• "####"X (Rexx) - When this op
The following options are available:• Double quoted strings• Two consecutive quotes represent one - """" for REXX represents a str
• Trailing backslash continues string across lines - When this option is selected, it indicates thatsearching for the terminating quote continues to t
ViewsViews are windows that show various types of information that you can move around and dock within Ec-lipse. See SlickEdit Views for information.S
The following options are available:• Language specific - To avoid requiring complicated BNF for defining color-coding, some hardwarelanguage-specific
• Here Document (UNIX Shells/Perl) - Activates support for HERE documents. Note that if you prefixyour terminator with one of our lexer names, you wil
The following options are available:• New Line comment - Click this button to define new single-line comments.• New Multi-line comment - Click this bu
• Nesting allowed - When this option is selected, this multi-line comment may have this multi-linecomment inside it.• Only if first non-blank characte
The following fields and settings are available:• Tag names - List box containing tags for HTML or XML. To add or delete tags, use the New and De-lete
Color Settings DialogThe Color Settings dialog contains options for changing embedded language colors and the colors ofscreen elements. See Colors for
• Attribute (HTML only) - This is the color used for a recognized attribute of an HTML tag. For ex-ample, the src attribute of the img tag gets this c
See Fonts for more information about changing fonts and a list of recommended fonts. To display theFont Configuration dialog, from the main menu click
• Status Line - For status messages displayed at the bottom of the application window.• SBCS/DBCS Source Windows - Editor windows that are displaying
General in the tree, then double-click the XML/HTML Formatting setting. Alternatively, use thexml_html_options command to display the dialog.Figure 10
vironment. By the same token, some SlickEdit commands may not be available.See Chapter 10, SlickEdit Core Dialogs for descriptions of each dialog spec
Proxy Settings DialogIf you need to configure proxy settings for when SlickEdit® Core needs to use an Internet connection, usethe Proxy Settings dialo
• Servers - Indicates the proxy address and port to use.• Exceptions - Indicates the Web site addresses that the proxy server should disregard. Separa
needs to launch one. To access this dialog, click Window → Preferences, expand SlickEdit and clickGeneral in the tree, then double-click the Web Brows
boxes on this dialog box to have the HTML file name inserted into the command that is executed.• DDE - The Application, Topic, and Item text boxes spe
• Anonymous e-mail address - Default password used for anonymous logins.• Do not upload - When on, saving an FTP file will not upload the file.• Promp
• Timeout (sec) - Default used when adding a new connection profile. Specifies the wait time for a replyfrom the FTP server.• Port - Default used when
• Enable firewall/proxy - When on, indicates you have a firewall or proxy. You need to turn this on toadd a connection profile that uses a firewall.•
SSH/SFTP TabThis tab on the FTP Options Dialog is used to set the location of the client program used to establish con-nections with the SSH server.Fi
Reflow Comment DialogThe Reflow Comment dialog (Format → Reflow Comment), shown below, is used to reflow block com-ments, paragraphs, or a selection o
The following options are available:• Entire block comment - If selected, reflows an entire block comment based on the current width andborder setting
SlickEdit ViewsViews complement the file opened in the editor. You can move, resize, and customize views easily. Allthe views and perspectives have li
The Current Document Options dialog allows you to enable/disable aspects of XML or HTML Formattingfor just the current document. It can be displayed b
Chapter 11. Appendix469
EncodingEncodings are used to convert a file to either SBCS/DBCS for the active code page or Unicode (morespecifically UTF-8) data. By default, XML an
for the following list of features:• All Context Tagging® features.• Color Coding.• Level 1 regular expressions as defined by the Unicode consortium.•
sion-specific or global encoding. Since there is no option for recognizing UTF-8 or UTF-32 files (otherthan Auto XML) by looking at the file contents,
The following is a list of Unicode limitations:• Bold and italics color-coding is not supported. Support for this will be added in a future version.•
Unicode ImplementationNative Unicode and SBCS/DBCS editing modes are supported. When you edit a SBCS/DBCS (activecode page) file such as a .c, .h, or
Environment VariablesBelow is a list of environment variables that can be used. Configuration environment variables are set invslick.ini.You can also
Environment Variable DescriptionVSLICKPATH must also contain the directories lis-ted here.VSLICKBITMAPS One or more directories separated with a semic
Environment Variable DescriptionVST Specifies additional command line arguments to themacro compiler as if you typed them in when invok-ing the compil
Lists breakpoints (and exception breakpoints for Java) and allows you to modify them. You must use thisview to set breakpoint properties. It can be us
of configuration environment variables, see the table above. The syntax of the set command is:set [envvar_name [=value]]When you invoke the set comman
Configuration VariablesSlickEdit® Core has many behaviors that are controlled through properties not exposed in the options dia-logs. They are set thr
Configuration Variable Descriptionthe Brief emulation. When the editflst.e macrois loaded, the space-delimited extensions listed bythis variable are f
Configuration Variable Descriptiondef_filelist_show_dotfiles Controls the global Show hidden files option onthe General Tab of the General Options dia
Configuration Variable Descriptiondef_plusminus_blocks When the value is set to 1, the plusminus com-mand will try to find code blocks to expand or co
Configuration Variable Descriptionthat decrease performance when using ClearCaseversion control.def_vtg_tornado Set this variable value to 0 to preven
Directories and FilesConfiguration DirectoryYour SlickEdit® Core configuration directory contains configuration files representing the changes youhave
Use the New Directory fields to modify either of these values, and click Apply, and then OK to changethe settings. Note that these changes will not be
User Config File Description*.als A text file that contains user-defined extension-specif-ic aliases.alias.slk A text file that contains user-defined
User Config File Descriptionmaps, and binary files are stored here as well.vslick.sta (UNIX: vslick.stu) A binary file that contains dialog boxes, men
Provides the capability to interactively create and test regular expressions. See The Regex Evaluator formore details.SlickEdit SearchDisplays the res
System Config File Descriptionformat.ini A text file that contains default beautifier schemes.print.ini A text file that contains default printing sch
File Search OrderSearch Order for Configuration FilesSeveral files are automatically searched for, either immediately when the editor is invoked or du
VLX File and Color CodingFor more basic information about using Color Coding, see Color Coding.To modify the color coding for VLX files, use one of th
• VHDL• Visual Basic .NETModifying the VLX File to Change a Color DefinitionTo modify an existing language-specific coloring definition, complete the
Statement Descriptioncase-sensitive= [Y | N] Defines the case sensitivity for the language. Thisstatement must be the first or second statementwithin
Statement Descriptionthe line is a comment before determining the colorcoding of symbols in the line. When the checkfirstoption is specified, start_sy
Statement Descriptionkeywords= [keyword ] [keyword ] ... Defines words that should be displayed in keywordcolor. Keywords do not have to be valid iden
Value of style Descriptiondqbackslashml Color double-quoted strings. If a double-quotedstring ends in a backslash, it continues the string tothe next
Value of style DescriptionIntel Assembler).octo Octal numbers are of the form ddddO (like Intel As-sembler).octq Octal numbers are of the form ddddQ (
Value of style Descriptiontcl Special support for TCL language color-coding.bquote Perl- and Linux Shell-style backquote (subshell).model204 Special s
The SlickEdit® Core Command LineSlickEdit Core provides its own command line as a means to execute most SlickEdit Core operations soyou can work witho
Editing the Key Binding SourceIf you are creating a new emulation or if you change many key bindings, you might want to edit your keybinding source in
Menu EditingFor information about accessing SlickEdit® Core menus and associated options, see Menus.Creating and Editing MenusSlickEdit® Core menus ar
Editing MenusTo select a menu for editing, from the main menu click Macro → Menus (or use the open_menu com-mand). Select the menu to edit from the li
Using the ISPF and XEDIT EmulationsThis section describes the features of the ISPF editor emulation and outlines some XEDIT line com-mands.ISPF Option
Only the following line commands are allowed in read-only mode:• ISPF Line Labels - Define a label.• ISPF Line Command BNDS - Insert a column boundary
ISPF Primary CommandsThe following table of standard ISPF primary commands are supported in the ISPF emulation mode.Primary commands are entered by pl
Command Descriptionispf_copy Insert the contents of a file or PDS member into thebuffer.ispf_create Create a new file or PDS member containing thecont
Command Descriptionispf_rchange Repeat the change requested by the most recentchange command.ispf_renumber Immediately update the line numbers in a fi
Right Control key, depending on your preferences. Several commands or line labels can be entered andthen processed at one time. The ispf_reset command
Command DescriptionISPF Line Command Show Expose one or more lines having the left-most in-dentation level in a block of excluded lines.ISPF Line Comm
Command Line HistoryThe command line maintains a command history, allowing you to quickly reuse previously entered com-mands. Once the command line is
ISPF Shift Lines Left or RightUsage• ( [n] - Shift the current line n columns left, default 2• (( [n] - Shift the block of lines n columns left, defau
ISPF Insert Before BUsageB [n]RemarksIdentifies a line before which copied or moved lines are to be inserted n times. You are allowed to specifymultip
ISPF Line Command A, ISPF Line Command B, ISPF Line Command Move, ISPF Line CommandOverlayISPF Insert Columns Ruler COLS or SCALEUsageCOLSSCALERemarks
mand ExcludeISPF Insert LinesUsageI [n]RemarksInsert one or more blank data entry lines.See Alsoispf_enter, ISPF Line Command TEISPF Lowercase Lines L
mand ExcludeISPF Move Lines M and MM for blocksUsage• M [n] - Move n lines starting with the line with the command.• MM - Move a block of lines, must
lines are to be converted. The second (block) form (MDMD or MDD) is placed on the first and last lines ofthe block to be converted.See AlsoISPF Line C
Usage• S [n] - Unexclude (expose) the first n lines of an excluded block.• SS - Unexclude (expose) an entire excluded block.RemarksExpose one or more
TFRemarksReflows paragraphs according to the current column boundary settings.See Alsoreflow_paragraphISPF Join Lines TJUsageTJRemarksJoin this line w
UC [n], specifies that the line and the subsequent n-1 lines are to be converted. The second (block) form(UCUC or UCC) is placed on the first and last
XEDIT ISPF Description/ R Repeat the marked line.F A Paste text following line.A I Add (insert) line(s).P B Paste text before line.L LC Make line lowe
You can use the SlickEdit® Core command line to determine what keys are associated with what com-mands, and vice-versa.TipAlternatively, you can use t
Command Descriptionimacro Save the name of an initial macro in the edit profile.level Set the modification level number in PDF librarystatistics.model
Command Descriptionispf_home Place the focus on the command line in ISPF emu-lation.ispf_retrieve Does command line retrieval, getting the next com-ma
Regular Expression SyntaxThis section provides lists of the UNIX, SlickEdit®, and Brief regular expression syntaxes, samples, andUnicode category spec
UNIX Regular Expression DefinitionX{n1,}? Minimal match of at least n1 occurrences of X.X{,n2}? Minimal match of at least zero occurrences but notmore
UNIX Regular Expression Definition[^char-set] Matches any character not specified by char-set.A dash (-) character may be used to specify ranges.[char
UNIX Regular Expression Definitionthe Unicode Greek block. This is equivalent to[^\p{isGreek}]. See Unicode Character Blocks forRegular Expressions.\x
UNIX Regular Expression Definition\ol Turns off multi-line matching (default). You can stilluse \n to create regular expressions which matchone or mor
• +, *, ?, {}, +?, *?, ??, {}? (These operators have the same precedence.)• concatenation• |UNIX Regular Expression ExamplesThe table below shows exam
Sample UNIX Expression Descriptionters in the Greek block.\x{6587} Matches Unicode character with hexadecimal value6587. Character set intersection. M
SlickEdit Regular Expression Definitionavoid ambiguous expressions. For example a:9()1searches for nine instance of the letter a followedby a 1.X:n1,
Many commands that display dialog boxes have equivalent commands that prompt for arguments on thecommand line or on the Eclipse message area. For fast
SlickEdit Regular Expression Definitioncept uppercase letters.[^char-set] Same as [~char-set] above.[char-set1 - [char-set2]] Character set subtractio
SlickEdit Regular Expression DefinitionRegular Expressions.\xhh Matches hexadecimal character hh where0<=hh<=0xff.\ddd Matches decimal character
SlickEdit Regular Expression Definition\ol Turns off multi-line matching (default). You can stilluse \n to create regular expressions which matchone o
• +, #, *, @, :, :* (These operators have the same precedence.)• concatenation• |SlickEdit® Regular Expression ExamplesThe table below shows examples
Brief regular expressions are defined in the following table.Table 11.16. Brief Regular ExpressionsBrief Regular Expression Definition% Matches beginn
Brief Regular Expression DefinitionX\:,n2? Minimal match of at least zero occurrences but notmore than n2 occurrences of X.X\:n1,n2? Minimal match of
Brief Regular Expression Definitionall Unicode lowercase letters except q and w.[char-set1 & [char-set2]] Character set intersection. Matches all
Brief Regular Expression Definition\d Defines a back reference to tagged expressionnumber d. For example, {abc}def\0 matches thestring abcdefabc. If t
Brief Regular Expression Definitionchar. The predefined expressions are:• \:a [A-Za-z0-9 - Matches an alphanumeric char-acter.• \:b\([ \t]#\) - Matche
Sample Brief Regular Expression Descriptiontice that the backslash must prefix the special char-acter *.[\t ] Matches tab and space characters.[\d9\d3
Command Descriptionf symbol Find a symbol/search_string/options Search for a stringc/search/replace/options Replace a stringsb name Set a bookmarkgb n
The following table lists the valid subcategories for a specific main category. These character tables weregenerated using the file UnicodeData-3.1.0.
Subcategory DescriptionSc Symbol, CurrencySk Symbol, ModifierSo Symbol, OtherZs Separator, SpaceZl Separator, LineZp Separator, ParagraphCc Other, Con
• XMLNameChar - All characters that are valid in an XML tag name.The following table lists the valid character block names. These character tables wer
Range Block Name0B80..0BFF Tamil0C00..0C7F Telugu0C80..0CFF Kannada0D00..0D7F Malayalam0D80..0DFF Sinhala0E00..0E7F Thai0E80..0EFF Lao0F00..0FFF Tibet
Range Block Name20A0..20CF CurrencySymbols20D0..20FF CombiningMarksforSymbols2100..214F LetterlikeSymbols2150..218F NumberForms2190..21FF Arrows2200..
Range Block Name3100..312F Bopomofo3130..318F HangulCompatibilityJamo3190..319F Kanbun31A0..31BF BopomofoExtended3200..32FF EnclosedCJKLettersandMonth
Range Block NameFEFF..FEFF SpecialsFF00..FFEF HalfwidthandFullwidthFormsFFF0..FFFD Specials10300..1032F OldItalic10330..1034F Gothic10400..1044F Deser
Code Quick | Think Slick®SlickEdit Inc.3000 Aerial Center Parkway, Suite 120Morrisville, NC 27560USA1.919.473.00701.800.934.EDIT1.919.473.0080 faxinf
Using the Mouse and KeyboardSlickEdit® Core provides four ways to launch operations: commands, menu items, key bindings, and but-tons. For example, to
Key or Key Sequence Operation? List matches to partially-typed parameterCtrl+Shift+O Expand aliasCtrl+E Cut to end of lineCtrl+Backspace Cut lineCtrl+
Key or Key Sequence OperationEnd Move cursor to end of lineHome Move cursor to beginning of lineDouble-click Select wordTriple-click Select lineRedefi
In the Key list box, select the name of the key that you want to configure. The commands available forthat key are then displayed in the Command list
Chapter 4. User Preferences39
Introduction to User PreferencesSlickEdit® Core can be customized to accommodate your own individual preferences. Most user prefer-ence information is
EmulationsEmulation is the process of imitating another program. SlickEdit® Core provides emulations of key bind-ings for 13 editors so that you can u
provide a default key binding for a particular SlickEdit Core command, the corresponding Visual C++key binding is used.• XcodeChanging EmulationsAfter
By saving your custom key bindings when you switch emulations, when you return to the original emula-tion those bindings are automatically available.
Key and Mouse BindingsKey and mouse bindings are quick ways to execute operations in SlickEdit® Core. Key bindings are themost efficient. Time is wast
• A menu hotkey is a key sequence that corresponds to an underlined letter on a menu name.Managing BindingsCreate and manage key bindings using the Ke
Bindings are based on the editor emulation mode (CUA is the default). The title bar of the Key Bindingsdialog shows the current emulation. (To change
Language Editing Modes for more information.The bottom of the dialog contains documentation (if available) for the selected command.Columns can be sor
Table of Contents1. Introduction ... 1
• Double-click on the row.3. When you initiate a binding, the Bind Key dialog is displayed with focus in the Key Sequence box.Figure 4.4. Bind Key Dia
specific language editing mode, you can change it now by clicking the Advanced button on the BindKey dialog. Click Bind to mode, then from the drop-do
2. If you want, change the directory location and change the file name to something more meaningful toyou, such as myname_cua.xml.3. Click Save.Import
bound to Ctrl+C, rather than the command bound to Ctrl+X,Ctrl+C.To change this option, click Window → Preferences, expand SlickEdit and click General
Cursor, Mouse, and Scroll SettingsThis section describes settings for the cursor, mouse, and scroll style. For cursor navigation information,see Curso
Setting Fonts and ColorsThe SlickEdit® Core editor and views do not use the Eclipse color and font settings. To change the fontsand colors in the Slic
For descriptions of the options on this dialog, see Font Configuration Dialog.Recommended Fonts for ElementsFont recommendations are given for the bes
font element:Table 4.1. Command Line Font RecommendationsPlatform Font RecommendationWindows Choose Courier, Courier New, OEM Fixed Font, orTerminal f
ent screen elements in SlickEdit® Core. This includes syntactic elements in the editor window, likekeywords, comments, strings, etc. as well as other
is displayed, allowing you to pick a color from the palette, or set your own custom color using RGB val-ues.NoteIf you have chosen the Selection scree
Using the Command Line to View Key Binding Associations ...31Starting a Program from the Command Line (Shelling)
<BODY>...</BODY></HTML>HTMLEOFRestoring Settings on Startup58
Restoring Settings on StartupBy default, the files, current directory, and more from the previous edit session are automatically restoredwhen you swit
60
Chapter 5. Context Tagging®61
Context Tagging® OverviewContext Tagging is a feature set that performs expression type, scope, and inheritance analysis as well assymbol look-up with
4. Clear the Auto-list members check box.The following example shows the results of what is displayed after typing a Dot when entering Javasource. Not
select the next or previous occurrence.Figure 5.3. Parameter Info: Example 1The example below shows the result of pressing Alt+Comma inside the argume
The following example displays the results of pressing Alt+Comma after an assignment operator. TheRect, pRect, and argv are not listed because their t
• Find Symbol - This view is used to locate symbols (tags) in your code. It allows you to search for sym-bols by name using either a regular expressio
Building and Managing Tag FilesContext Tagging® creates tag files to store information about symbols and, optionally, cross-reference in-formation fro
Class View ...82Outline View ...
To create tag files for the languages listed, enter the base directory for your package (if it is not alreadyfilled in), as well as the destination of
Generate References creates an inverted file index so that you can quickly find which files con-tain which symbols. Workspace tag files create this in
See Managing Tag Files for more information.Tagging Run-Time LibrariesCreate extension-specific tag files for include files of compiler packages or ut
The left pane of the dialog lists all of your tag files, separated into categories (see Tag File Categories be-low). A tag file having a File bitmap w
• Other Extension-Specific Tag Categories - The tag files listed under each of the other language-spe-cific categories apply to that language only. Us
The following settings are available:• Retag modified files only - If checked, SlickEdit® Core will incrementally rebuild the tag file, only re-taggin
tions setting. See Context Tagging Options Dialog for descriptions of the options.TipTo improve tagging performance, you may need to adjust the Tag fi
Chapter 6. Editing Features75
NavigationThere are two types of navigation in SlickEdit® Core: Code Navigation, which provides in-depth symbolnavigation and structure matching, and
Tagging Tab. When the cursor is in the prototype, pressing Ctrl+Dot will navigate to the func-tion and vice versa. If you do not set one of these opti
Kommentare zu diesen Handbüchern