background image

Code Quick | Think Slick

®

SlickEdit Inc.

3000 Aerial Center Parkway, Suite 120
Morrisville, NC  27560
USA

1.919.473.0070
1.800.934.EDIT
1.919.473.0080 fax

[email protected]
www.slickedit.com

SlickEdit

®

Core

v3.3 for Eclipse

SlickEdit, Visual SlickEdit, Clipboard Inheritance, DIFFzilla, SmartPaste,
Context Tagging, Slick-C, and Code Quick | Think Slick are registered
trademarks of SlickEdit Inc. All other products or company names are
used for identification purposes only and may be trademarks of their
respective owners. Protected by U.S. Patent 5,710,926.

Copyright 1988-2008 SlickEdit Inc. All rights reserved.

SlickEdit

®

Core

v3.3

for Eclipse

08SLICK0011_CORE_upd  1/24/08  11:05 AM  Page 1

Содержание Corev3.3 for Eclipse

Страница 1: ...Think Slick Corev3 3 for Eclipse...

Страница 2: ......

Страница 3: ...SlickEdit Core v3 3 for Eclipse...

Страница 4: ...agreement The licensee may make one copy of the software for backup purposes No part of this documentation may be reproduced or trans mitted in any form or by any means electronic or mechanical includ...

Страница 5: ......

Страница 6: ......

Страница 7: ...re 13 Help and Product Support 14 Using the Help System 14 Product Support 14 2 Quick Start 15 General Options 16 Extension Specific Options 17 3 User Interface 19 Screen Layout 20 The Workbench 20 Th...

Страница 8: ...5 Key Binding Settings 50 Cursor Mouse and Scroll Settings 52 Setting the Cursor Style 52 Hiding the Mouse Pointer 52 Displaying Tool Tips 52 Scroll Style Settings 52 Setting Fonts and Colors 53 Fonts...

Страница 9: ...Moving Text 134 Working with Lines 135 Sorting Text 136 Inserting Literal Characters 138 Color Coding 139 Resetting Modified Lines on Save 139 Adding Color Coded Keywords to Supported Languages 139 C...

Страница 10: ...lar Expressions 192 Undoing Redoing Replacements 196 Beautifying Code 197 Code Beautifiers 197 Reflowing Text 197 Refactoring 198 Quick Refactoring 198 C Refactoring 200 Reviewing Refactoring Changes...

Страница 11: ...erging 308 DIFFzilla 308 3 Way Merge 314 File History and Backups 317 Compare Two Backup History Elements Using DIFFzilla 317 Compare a Local Backup History Element with the Current Version Using DIFF...

Страница 12: ...Context Tagging Tag Files Dialog 378 Options Dialogs 380 General Options Dialog 380 Extension Options Dialog 398 Select a Tag Dialog 420 File Options Dialog 421 Key Bindings Dialog 429 Bind Key Dialo...

Страница 13: ...ifying the VLX File to Change a Color Definition 491 Creating a Lexer Name and a New VLX File 491 Editing the Key Binding Source 498 Menu Editing 499 Creating and Editing Menus 499 Using the ISPF and...

Страница 14: ...xii...

Страница 15: ...67 5 7 Add Tag File Dialog 68 5 8 Add Tags Database Dialog 69 5 9 Context Tagging Tag Files Dialog 70 5 10 Rebuild Tag File Dialog 72 6 1 Class View 82 6 2 Class Exclusion Manager Dialog 84 6 3 Outli...

Страница 16: ...Refactoring Move Static Field 211 6 45 C Refactoring Convert Global to Static Field 212 6 46 C Refactoring Convert Local to Field 213 6 47 C Refactoring Replace Literal with Constant 213 6 48 C Refac...

Страница 17: ...ting Options Dialog 301 7 39 PL I Formatting Options Dialog 303 8 1 DIFFzilla Dialog 309 8 2 Multi File Diff Output Dialog 311 8 3 Save Multi File Output Dialog 312 8 4 3 Way Merge Setup Dialog 314 8...

Страница 18: ...tions Auto Complete Tab 415 10 39 Extension Options Context Tagging Tab 417 10 40 Select a Tag Dialog 421 10 41 File Options Load Tab 422 10 42 File Options Save Tab 424 10 43 File Options AutoSave Ta...

Страница 19: ...P Options Debug Tab 465 10 67 Reflow Comment Dialog 466 10 68 Current Document Options Dialog 468 11 1 Configuration Directory Preferences 484 11 2 ISPF Options Dialog 501 SlickEdit Core v3 3 for Ecli...

Страница 20: ...xviii...

Страница 21: ...pressions 193 6 14 Examples of Tagged Search Expressions 194 6 15 Hex Mode Key 223 8 1 Binary Operators 324 8 2 Math Command Examples 325 11 1 Environment Variables 475 11 2 Configuration Variable 479...

Страница 22: ...xx...

Страница 23: ...Chapter 1 Introduction 1...

Страница 24: ...SlickEdit Core com mand line For more information see Using the Mouse and Keyboard Type as little as possible SlickEdit Core contains many features that reduce the number of key strokes you type inclu...

Страница 25: ...nformation Get Started To get started check out Chapter 2 Quick Start This will guide you through configuration of some of the most common user preference settings so you can get more work done in les...

Страница 26: ...uilt in Help system The contents of the Help system is the same as the contents of the User Guide Documentation Feedback We welcome your comments and suggestions regarding our documentation Please sen...

Страница 27: ...rators options variables and text to be typed by the user are shown in bold type User input variables and placeholders are shown in bold italic type Code samples and file names are displayed in a mono...

Страница 28: ...Beautifier ActionScript Ada C C C CFML HTML Java JavaScript JSP Slick C XML XSD Color Coding ActionScript Ada ANTLR AppleScript Assembly Language AWK Bourne shell scripts C C Shell C C CFML CFScript C...

Страница 29: ...ipt J Java JavaScript JSP Objective C Pascal Perl PHP PL I PV WAVE Python Ruby Slick C Tcl Source Code Navigation and Lookup Includes Class Outline Preview References and Symbols views as well as symb...

Страница 30: ...f any exist Embedded language colors are user defined Embedded Languages in HTML SlickEdit Core supports any embedded language in HTML However Web browsers usually only sup port VBScript JavaScript an...

Страница 31: ...olor Figure 1 2 HTML Embedded in Perl Supported Editor Emulations SlickEdit Core provides keyboard emulations for the following editors BBEdit Brief CodeWarrior CodeWright CUA the SlickEdit Core defau...

Страница 32: ...pse Update Manager or you can download ZIP files Installing with the Update Manager To install the SlickEdit Core with the Eclipse Update Manager 1 In Eclipse select Help Software Updates Find and Ins...

Страница 33: ...dates of the currently installed features 3 Select the SlickEdit update site from the list of sites and click Next 4 Accept the license agreement to continue 5 Click Finish Licensing SlickEdit Core v3...

Страница 34: ...g that key Deactivation Once you have activated SlickEdit Core on five machines you will not be able to activate it on another machine until you have deactivated one of the other five If you need more...

Страница 35: ...cense Manager records the date each time the product is run If you run Eclipse with SlickEdit Core with a system date that is more than one day earlier than a previous run then your license will be da...

Страница 36: ...ation To access the Help system from the main menu click Help Help Contents then expand SlickEdit Core v3 3 for Eclipse in the tree Note Context sensitive Help is currently not available in SlickEdit...

Страница 37: ...environment accord ing to your working style and preferences To help get you up and running as quickly as possible the Quick Start describes commonly used option settings that are found in most progr...

Страница 38: ...eral tab then select the option Click past end of line Specifying cursor up down behavior By default cursor_up and cursor_down commands go to the same column of the next or previous line unless that l...

Страница 39: ...ify the amount of spaces in the Syntax indent text box Indenting with tabs If you plan to indent your code using tabs or if you will be editing files that already contain tabs specify your tab prefere...

Страница 40: ...rformance considera tions Context Tagging does not do full preprocessing so preprocessing that interferes with normal C syntax can cause the parser to miss certain symbols To configure your preprocess...

Страница 41: ...Chapter 3 User Interface 19...

Страница 42: ...er Guide in the Eclipse Help for more details about the Ec lipse layout The Workbench The workbench is the area where the workspace projects and programs are contained Use the work bench to manage and...

Страница 43: ...of views and editors For example the Java perspective has a much dif ferent set of views than the Debug perspective You can customize each perspective s layout by dragging and dropping The SlickEdit...

Страница 44: ...ociations 3 From the File Types list select the desired file type Or to add an extension click Add 4 From the Associated Editors list select the desired editor 5 To make this the default editor for th...

Страница 45: ...rkspace from the main menu click File Open Figure 3 3 Opening Source Files with SlickEdit Core Switching Between the SlickEdit Core Editor and Eclipse Editors SlickEdit Core provides the ability to sw...

Страница 46: ...the Eclipse editor Menus If a menu specific to SlickEdit Core is not visible such as the Format menu then close the open files or classes and re open with the SlickEdit Core editor To open with the S...

Страница 47: ...indicates if the current mode is insert overwrite or replace and if a file is read only The editor status area also displays the line and column number for the cursor location Figure 3 4 Status Area D...

Страница 48: ...into the following categories Editing Dialogs Search Dialogs Editing Dialogs Dialogs Related to Viewing and Displaying Macro Dialogs Tools Dialogs Options Dialogs Command Line To activate the SlickEd...

Страница 49: ...views and by docking them in different positions in the work bench window Opening SlickEdit Core Views Perspectives offer pre defined combinations of views and editors To open a view that is not incl...

Страница 50: ...search and replace operations This view can also be displayed by using the key binding Ctrl F See Find and Replace for more information Find Symbol Used to locate symbols which are declared or defined...

Страница 51: ...Displays errors that occur within the editor If errors occur during normal use you can send this informa tion to Product Support as a reference see Contacting Product Support If an error occurs in on...

Страница 52: ...owever these commands are displayed with hyphen separators for example cursor down Both of these forms work so you can use whichever style you prefer Although SlickEdit Core shares a heritage with our...

Страница 53: ...ands is displayed Some search commands do not begin with find like gui_find so you may not dis cover all related commands this way To find all commands containing the word find use the Key Bindings di...

Страница 54: ...will appear Determining the Key Binding of a Command To determine the key to which a command is bound use the where_is command Help Where Is Command For example 1 Click Help Where Is Command or activa...

Страница 55: ...only on the command line when opening files bind the edit command to Ctrl O which is bound to the gui_open command by default The following table contains a partial list of user interface commands an...

Страница 56: ...h for a string c search replace options Replace a string sb name Set a bookmark gb name Jump to a bookmark man command Show UNIX man page del filename Delete file dos command Execute command outside o...

Страница 57: ...oxes Key shortcuts for text operations such as Cut Copy and Paste can be used inside of all text boxes with in SlickEdit Core including the command line Tip The CUA emulation contains the shortcuts Ct...

Страница 58: ...xt word Ctrl V Paste Ctrl X Cut Ctrl C Copy Ctrl Shift X Append cut Ctrl Shift C Append to clipboard Ctrl Shift V List clipboards Shift Home Select text between cursor and beginning of line Shift End...

Страница 59: ...preference for the functions of the keys Backspace Delete Enter Tab and Home The Redefine Common Keys dialog is designed for changing the function of these keys To access this dialog from the main men...

Страница 60: ...can be set using the check boxes Click the Tab Options button to change the function of the Tab key The Indent tab of the Extension Op tions dialog box is displayed For more information on changing T...

Страница 61: ...Chapter 4 User Preferences 39...

Страница 62: ...Restore settings see Restoring Settings on Startup Other global preferences such as search settings selection styles etc can be configured by using the General Options dialog click Window Preferences...

Страница 63: ...This emulation relies heavily on Ctrl X and Escape meta key bindings GNU Emacs This emulation relies heavily on Ctrl X and Escape meta key bindings It does not in clude an Emacs Lisp emulator ISPF Su...

Страница 64: ...ulation You can change emulation modes at any time Click Window Preferences expand SlickEdit and click Gener al in the tree then double click the Emulation setting Figure 4 1 Emulation Options You sho...

Страница 65: ...store to default key bindings option in the Emulation settings See Managing Bindings for more information on working with custom bindings Determining Keys Functions When if you switch emulations the k...

Страница 66: ...een the keys indicates that these keys must be pressed simultaneously press the Ctrl and O keys at the same time Note that the last key is case insensitive You do not need to press Shift An example of...

Страница 67: ...le is also displayed The Key Bindings dialog provides capabilities to incrementally search by command or by key sequence export and import custom bindings save an HTML chart of your bindings and run a...

Страница 68: ...Key Sequence column shows the key sequence or mouse event to which the command macro is bound If there is no binding this field is empty The Mode column shows the language editing mode to which the bi...

Страница 69: ...e gui_open appears in the Command column three times one row per key sequence To find a key sequence place the focus in the Search by key sequence box by tabbing or using the mouse and then press the...

Страница 70: ...or mouse event that is already assigned to another command macro a warning prompt is displayed If you continue the previous binding is unbound and reassigned Tip SlickEdit Core allows key sequences th...

Страница 71: ...ange the binding or language editing mode for a command macro that is already bound you will need to first unbind the command macro then recreate it See Removing Bindings and Creating Bindings If you...

Страница 72: ...en click Open Saving a Bindings Chart Click the Save Chart button on the Key Bindings dialog to save an HTML reference chart of all current bindings for all language editing modes in the selected emul...

Страница 73: ...n the Key message delay spin box enter the amount to delay before a prefix key in tenths of a second The prefix key is not displayed if the next key is pressed before the delay specified in this text...

Страница 74: ...tips off or to change the amount of time before tool tips are displayed from the main menu click Window Preferences expand SlickEdit and click General in the tree then double click the General settin...

Страница 75: ...SlickEdit Core provides the capability to change the fonts used by edit windows the command line status text and other screen elements Recommended fonts are listed You can also set fonts for editor wi...

Страница 76: ...e information below contains recommen ded fonts for some of the screen elements Note Some font names are portable font names which are translated into other fonts This allows Slick C macros and dialog...

Страница 77: ...stem or MS Sans Serif for fonts used in text boxes SBCS DBCS Source Window Fonts This is the element used for all non Unicode source windows Choose Terminal for the most attractive visual display Unic...

Страница 78: ...olor Coding for more information Setting Colors for Screen Elements Colors can be customized in the user interface Colors can be set either individually or by editing a scheme To change the default co...

Страница 79: ...Color Settings Dialog Using Color Schemes Color schemes store the settings for all screen elements allowing you to quickly change the look of your editing environment Several predefined color schemes...

Страница 80: ...BODY BODY HTML HTMLEOF Restoring Settings on Startup 58...

Страница 81: ...e in SlickEdit Core If checked when switching workspaces the files and windows that were opened for a workspace when it was last closed will be restored Line modify If checked the line modification fl...

Страница 82: ...60...

Страница 83: ...Chapter 5 Context Tagging 61...

Страница 84: ...red See Building Tag Files Tag Driven Navigation The Context Tagging database allows you to navigate your code jumping from a symbol to its definition or its references For more information see Symbol...

Страница 85: ...is one of the C standard template library classes Figure 5 2 List Members Example 2 Parameter Information The prototype for a function is automatically displayed when typing a function operator such a...

Страница 86: ...ements x Alt Comma and when listing members of a class or struct Keep in mind not all possible variables and expressions are listed Press Alt Dot if the symbol that you want is not listed To access Au...

Страница 87: ...ch See Completions for more informa tion about working with this feature Symbol Browsing SlickEdit Core gives you the ability to browse and view symbols in your files or workspaces There are several v...

Страница 88: ...push_ref command see Symbol Navigation for more informa tion Symbols The Symbols view contains the symbol browser which lists symbols from all of the tag files For more detailed information about thes...

Страница 89: ...ckground when you make modifications If you modify some source files using a different application you will need to rebuild the tag file Tag file names have the extension vtg By separating tag files f...

Страница 90: ...ot edited as part of this development effort These tag files are accessible from any project written in the same language You need to create an extension specific tag file if your project uses a compi...

Страница 91: ...om a sym bol to its definition in a library using Ctrl Dot push_tag This option is off by default since most programmers do not want to see library functions shown in the reference list 4 Click OK The...

Страница 92: ...or TCL and the compiler cannot be found in PATH or registry for Windows you need to build tag files for these run time libraries Configuring Context Tagging for COBOL All of the Context Tagging featu...

Страница 93: ...ated Tag Files These tag files are designed to be shared by multiple users of the editor on a network You can use the vsmktags utility to rebuild these tag files as part of your nightly build pro cess...

Страница 94: ...ey are listed in the Context Tagging Tag Files Dialog Example C C Tag File Search Order If a C C source file is open when a tagging related operation is performed the tag files are searched in the fol...

Страница 95: ...e file will be removed from the tag file without prompting for confirma tion Keep all deleted files without prompting If checked and the tag file contains a source file which no longer exists on disk...

Страница 96: ...n Specific Context Tagging Options Context Tagging options can be configured for each file extension type This allows you to activate and deactivate particular features on a per language basis To set...

Страница 97: ...Chapter 6 Editing Features 75...

Страница 98: ...s press Ctrl Dot Alternatively click Navigate Go to Definition or use the push_tag command Go to Reference To create a list of references and optionally jump to the first one pushing a book mark in th...

Страница 99: ...to locate symbols tags which are declared or defined in your code It allows you to search for symbols by name using either a regular expression sub string or fast prefix match See Find Symbol View fo...

Страница 100: ...tax for defining the begin end pairs The begin and end pair match ing option is case sensitive by default Append I to ignore case Example 1 begin case end The above begin end pairs are for the Pascal...

Страница 101: ...e recommend creating key bindings for commands that you use frequently if a key binding doesn t already exist by default Navigating in Pages and Files The following commands control cursor navigation...

Страница 102: ...Places the cursor at the beginning end of the current statement next_sibling prev_sibling Moves the cursor to the beginning of the next previous sibling These are similar to the next_statement prev_st...

Страница 103: ...to seek for You may specify a C syntax expression In addition you may prefix the expression with a plus or minus sign or to specify a relative seek posi tion Some examples are 0x10 10 Seek to offset...

Страница 104: ...avigation for information about how to navigate between symbols in files Class View Note The Class view is new in SlickEdit Core v3 3 and not to be confused with the view named Classes in previous ver...

Страница 105: ...ane of the view window shows the base class hierarchy for the current class The bottom pane members pane shows all members of the current class as well as all members visible from inherited superclass...

Страница 106: ...tons to navigate through code the active buffer will switch to the des tination class and the hierarchy and members panes will update To jump to the definition of a class in the code pushing a bookmar...

Страница 107: ...See Quick Refactoring for more information Add Member Function Add Member Variable and Add Virtual Function C C only When these options are selected for a class you are prompted with a dialog to type...

Страница 108: ...members in this pane will not be grouped at all They will instead be displayed in one list sorted by name Auto Expand All Top Level Classes Expands all top level class nodes in the members pane whene...

Страница 109: ...nd Modify Parameter List See Quick Refactoring for more information Set Breakpoint Sets a debugging breakpoint See Setting Breakpoints for more information Sort by Function Name and Sort by Line Numbe...

Страница 110: ...on Show Call Tree Displays a tree of symbols used by the selected symbol for example other functions called by the current function See Viewing Symbol Uses with the Calling Tree for more information C...

Страница 111: ...use the new Find Symbol View to search for symbols This provides you with more power and more control over your sym bol searching The Preview view provides a portal for viewing information in other f...

Страница 112: ...mbol list If the comments are in Javadoc or XMLdoc format they will be formatted in HTML You can single click on hypertext links within the comments to follow the links such as See also sections Edito...

Страница 113: ...l and its documentation comments if any exist See Symbols View for more information The SlickEdit Core Search view Single click on a line in the SlickEdit Core Search view and the Preview view display...

Страница 114: ...nu and select Generate References See Tagging Run Time Libraries for more in formation The left pane displays a tree view of the files and locations that contain the symbol references Hover the mouse...

Страница 115: ...for printing the tree Save Subtree and Print Subtree These options function similarly to the above except they apply to the selected subtree Quick filters Scope Functions Variables Data Types Stateme...

Страница 116: ...ymbols in the Symbols View The symbols listed in the symbol browser can be filtered using the Class and Member combo boxes The Class combo box filters the items listed under the Classes folder The Mem...

Страница 117: ...e information Set Breakpoint Sets a debugging breakpoint See Setting Breakpoints for more information Find Tag Searches for symbols and displays them in the symbol browser Note that the Find Symbol vi...

Страница 118: ...functions methods in the Symbol Properties View References Displays the list of references for the selected symbol in the References View just as if you pressed Ctrl in the editor window See Symbol N...

Страница 119: ...rototype s corresponding code section If the focus is in the Symbol Uses Calling Tree dialog the selected item will be shown in the Preview View just as it is in the Symbols View Viewing Base and Deri...

Страница 120: ...the member list the selected item will be shown in the Preview view and is the name as it appears within the class definition To jump to the symbol in the code pushing a bookmark in the process doubl...

Страница 121: ...em will not be considered in the filter The following options are available Class Members Public When selected public members are displayed Protected When selected protected members are displayed Priv...

Страница 122: ...d only volatile method members method1 volatile are dis played When unselected only non volatile members are displayed Synchronized Java only When selected only synchronized members are displayed When...

Страница 123: ...ta members are displayed When unselec ted only non transient data members are displayed Display or Hide Class Filter When selected the class filter is displayed in the Symbols view Member Filter When...

Страница 124: ...Code Templates 102...

Страница 125: ...efault values for substitution parameters The following is an example of a single file source template The items surrounded by dollar signs are the substitution parameters copyright package package au...

Страница 126: ...s name or a part of the class name In the sample template safeitemname is a form of this name that strips out any spaces making it safe to use as part of an identifier This value can even be used as p...

Страница 127: ...by Code Templates is legal for identifiers so you will be able to compile and run your template source files prior to instantiating them In other languages you will have to use temporary identifier na...

Страница 128: ...ul in Java where a class must be defined in a file by the same name Substitution parameters are written as identifiers surrounded by a delimiter The default delimiter is Use a double delimiter to repr...

Страница 129: ...eitemname Same as safeitemname with all characters up percased lowcasesafeitemname Same as safeitemname with all characters lowercased tempdir Location of operating system temp directory No trailing f...

Страница 130: ...trailing file separator projectbuilddir Current project build output directory No trailing file separator projectconfigname Current project configuration name workspaceconfigname Current workspace con...

Страница 131: ...es You can show this dialog by clicking File SlickEdit Template Manager Use the Categories list to select a category Selecting a category populates the Templates list with templates for that category...

Страница 132: ...n order number that is used to sort the template item in relation to other tem plate items in a list Used to sort template items in a category on the Add New Item dialog box Lower sort orders are plac...

Страница 133: ...mplate directory Check this option to place a copy of the file in the current template s directory and change the source file name to point to the new file in the template The file is not copied until...

Страница 134: ...prompted for a substitution paramet er value Add New Item Dialog Used to add an item to your current project the Add New Item dialog is displayed when you click File New Item from SlickEdit Template U...

Страница 135: ...emplates are templates that the user creates and are located at ConfigDir templates ItemTemplates Tip You can locate your configuration directory by clicking Help About SlickEdit Core Manually Creatin...

Страница 136: ...7 Verify that your new template item appears in the Templates list on the Add New Item dialog box Example The following example illustrates the metadata for an item template for a custom Java class al...

Страница 137: ...plate 1 Create the item template the same way a single file template would be created For more information on manually creating a template item see Manually Creating a Template 2 Add TargetFilename at...

Страница 138: ...ave a setemplate extension The SETemplate element is the root element of a template file Table 6 3 Summary of Metadata Element Element Child Elements Attributes DefaultName Description File ReplacePar...

Страница 139: ...le The following example illustrates the metadata for an item template for a C class that creates a header file h and implementation file cpp xml version 1 0 DOCTYPE SETemplate SYSTEM http www slicked...

Страница 140: ...optional child element of Files Specifies a file for the template item See the example below Attributes ReplaceParameters Optional Specifies whether parameter substitution takes place on the file con...

Страница 141: ...me fileinputname cpp MyClass cpp File File TargetFilename fileinputname h MyClass h File Files TemplateContent SETemplate Files Files is a required child element of TemplateContent Specifies files for...

Страница 142: ...lateDetails Value Text value is required The text value specifies the name of the template item The name is shown in the Templates list on the Add New Item dialog box Example The following example ill...

Страница 143: ...ile is created from the template Child elements None Parent elements Parameters Value N A Example The following example illustrates the metadata for an item template for a custom Java class When MyCla...

Страница 144: ...o create the file from the template all occurrences of copyright in the created file will be replaced with c 2005 2006 xml version 1 0 DOCTYPE SETemplate SYSTEM http www slickedit com dtd vse setempla...

Страница 145: ...mplateDetails TemplateContent Files File MyClass java File Files TemplateContent SETemplate SortOrder SortOrder is an optional child element of TemplateDetails Specifies an order number that is used t...

Страница 146: ...tent TemplateContent is a required child element of SETemplate Specifies the contents of a template item Attributes Optional Delimiter used when replacing substitution parameters in content Defaults t...

Страница 147: ...SortOrder Parent elements SETemplate Value N A Example The following example illustrates the metadata for an item template for a custom Java class xml version 1 0 DOCTYPE SETemplate SYSTEM http www s...

Страница 148: ...sed to select words parts of a line or a range of text between a starting loca tion and an ending location To create a character selection use one of the following methods Keyboard method Position the...

Страница 149: ...s such as backspacing and delet ing apply to the entire block column selection After a block selection is created you can enter block insert mode by simply typing some characters to in sert or by ente...

Страница 150: ...Edit Select Line Then move the cursor to the last line to be se lected by using the arrow keys or by using the mouse Mouse method To select the current line triple left click within a line or click E...

Страница 151: ...k Window Pref erences expand SlickEdit and click General in the tree double click the General setting Modifying Selected Text After you select text you can invoke a key or type a command that modifies...

Страница 152: ..._clipboards Ctrl Shift V Allows you to select a clipboard from a list of the most recently used 15 is the default maximum clipboards to insert at the cursor copy_to_clipboard Ctrl C Copies selected te...

Страница 153: ...text to lowercase upcase_selection Edit Other Upcase Converts the selected text to up percase shift_selection_left Shift F7 Shifts the text within the selection to the left Supports the line and block...

Страница 154: ...n None Sorts lines within a selected area sort_on_selection None Sorts lines of text based on text within columns specified add None Adds selected text and inserts result below the last line of the se...

Страница 155: ...ar ily the actual number of characters or bytes in the selection if the selection includes tab charac ters unicode characters or extends beyond the end of the line If the character selection spans mor...

Страница 156: ...ludes files that are being edited the command line a dialog text box or another application that supports text clipboards such as a word processor When using a cut or copy command a clipboard is creat...

Страница 157: ...he General setting On the General Options dialog select the More Tab A BLOCK type clipboard is inserted before the current character and pushes over all text intersecting with the block No lines are i...

Страница 158: ...n double click the General setting On the General Options dialog select the More Tab Select the option Preserve column on top bottom Setting the Line Insert Style To set the line insert style from the...

Страница 159: ...is option is selected the selected text is sorted Text outside a block or column selection is not moved The Sort on selection and Sort within selection options have the same effect except when sorting...

Страница 160: ...ption A Sort in ascending order D Sort in descending order I Case insensitive sort ignore case E Case sensitive sort exact case which is the de fault N Numeric sort C style floating point numbers with...

Страница 161: ...toggles between current line modified line and language specific color ing individually Resetting Modified Lines on Save SlickEdit Core can clear the modified and inserted line color when you save a...

Страница 162: ...y allowed in identifiers but not as the first character of an iden tifier 6 Select the Comments Tab This lists the comments currently defined and allows you to define new multi line and line comments...

Страница 163: ...of the dialog to display the Color Settings dialog which allows you to specify the color for color coding elements and other editor elements see Setting Colors for Screen Elements The tabs on the Colo...

Страница 164: ...s dialog select the extension you wish to work with from the Extension drop down list then select the Advanced Tab Select from the following options Lexer name Specifies which lexer to use to recogniz...

Страница 165: ...yntax indent text box Indenting with Tabs By default when you press the Tab key to indent literal spaces are inserted If you plan to indent your code using tab characters or if you will be editing fil...

Страница 166: ...e text to the previous tab stop See Redefine Common Keys Dialog for information on other Tab and Shift Tab key bindings Regardless of the Tab key binding if the extension specific setting Indent with...

Страница 167: ...Note SmartPaste only works with line selections For information about creating a line selection see Line Selections Completions 145...

Страница 168: ...rks by looking at the word prefix under the cursor and using several different queries to find and suggest completion options Each of these types of suggestions can be individually turned on or off al...

Страница 169: ...Tab and Shift Tab to cycle through the choices If a completion is selected you can press Space Enter or any non identifier key to cause the selected completion to be inserted along with the character...

Страница 170: ...Shift Dot Searches forwards through the current editor window to find a match complete_more Ctrl Shift Space Adds subsequently more text from the matched line to the curs or position allowing you to...

Страница 171: ...d SlickEdit and click General in the tree then double click the File Extension Setup setting Choose the extension you wish to work with from the Extension drop down list then select the Auto Complete...

Страница 172: ...e to type in long paths or click the mouse repeatedly in the Directory list box After typing the alias identifier directory aliases can be expanded by pressing Ctrl Space These aliases are stored in t...

Страница 173: ...nt the identifier substituted with 6 Click OK Using Directory Aliases After the directory aliases are defined you can use them in any text box or buffer including the command line and fields on the Op...

Страница 174: ...ou can simply press Space to expand the ali as See Syntax Expansion for more information An Auto Complete option is available to show a tooltip of the matching alias for the word under the cursor Clic...

Страница 175: ...file extension that you wish to work with 4 Note the Alias file name If you wish to store the aliases in another file type a new file name with the als extension here 5 Click Aliases The Alias Editor...

Страница 176: ...a new alias complete the following steps 1 Click New then type the characters you wish to use for an identifier in the Alias Name text box 2 Click OK The identifier you entered is now displayed in th...

Страница 177: ...sed for aliases For examples see Escape Sequence Examples below Table 6 7 Alias Escape Sequences Escape Sequence Description c Places the cursor This sequence can be used mul tiple times in the same a...

Страница 178: ...m sur_text Indicates where the text to be surrounded will be placed See Dynamic Surround and Surround With for more information Escape Sequence Examples The following table contains some examples of...

Страница 179: ...rompting To create an alias for parameter prompting first select the alias file as described in the section Choosing the Alias File then use the Alias Editor to complete the following steps 1 Click Ne...

Страница 180: ...alias for entering new class names with variables and arguments That way when you press Enter after the third line and type and expand the alias you will be prompted for the values For this alias in...

Страница 181: ...semicolon immediately after the keyword For example if if cursor here next hotspot To override non insertion of braces immediately for if for while foreach with lock fixed and switch statements type a...

Страница 182: ...ain menu click Window Preferences expand SlickEdit and click General in the tree then double click the File Extension Setup The Extension Options dialog is displayed 2 From the Extension drop down lis...

Страница 183: ...aracters of the _command functions dbase_mode dbase_enter and dbase_space to use the value given to the MODE_NAME constant in Step 2 4 Modify the prg_expand_enter function to provide the Enter key the...

Страница 184: ...Extension Specific Aliases and is de signed to help you keep your hands on the keyboard thereby improving your speed and efficiency Dynamic Surround is supported for any language that uses block state...

Страница 185: ...er pressing Space to expand the template Dynamic Surround is activated with a blue rectangle drawn around the expanded statement as shown below Figure 6 22 Dynamic Surround Example 2 Dynamic Surround...

Страница 186: ...Pressing the Down arrow key pulls the code block into the statement indented to the correct levels as shown below Figure 6 23 Dynamic Surround Example 3 Dynamic Surround 164...

Страница 187: ...The finished code is shown as follows Figure 6 24 Dynamic Surround Example 4 Dynamic Surround 165...

Страница 188: ...her of these options click Window Preferences expand SlickEdit and click General in the tree then double click the File Extension Setup setting Choose your extension from the Extension drop down list...

Страница 189: ...s Surround With templates are created and modified the same way as other aliases with the addition of the m sur_text escape sequence This sequence indicates where the selected text should be placed an...

Страница 190: ...tor 2 Modify the template to suit your needs For a list of escape sequences and template examples see Ali as Escape Sequences For more information about using the Alias Editor see Creating an Extensio...

Страница 191: ...fault for HTML XML and others It specifies that the editor should not at tempt to beautify the results of the template expansion notext Specifies that no text should be pasted select Leaves the text s...

Страница 192: ...ve the if statement structure from a code block select the code block or part of the code block then right click and select Unsurround or use the unsurround command The entire code block under the cur...

Страница 193: ...pull statements into the pasted block The Delete Code Block dialog also contains an option to Always just delete line when cut_line or de lete_line operations are invoked Selecting this option will p...

Страница 194: ...ookmark bitmap displayed in the left margin of the editor window indicates a set bookmark Naming Bookmarks To set a bookmark on the current line and give it a name click Search Set Bookmark set_bookma...

Страница 195: ...kmarks use the prev_bookmark and next_bookmark commands Command Line Shortcut gb Power programmers may prefer to use the gb command a shortcut for goto_bookmark This will display the Go to Bookmark di...

Страница 196: ...For more information see Creating Bindings Popping a Bookmark Popping a bookmark will pop back or return to the location of the top bookmark pushed on the book mark stack removing the bookmark in the...

Страница 197: ...to the top or bottom of the buffer Ctrl Home Ctrl End or top_of_buffer bottom_of_buffer commands respectively This is convenient for example in C if you jump to the top of the buffer to add a include...

Страница 198: ...activate them To display the Break points view click Window Show View Other expand Debug and double click Breakpoints See Breakpoints view in the Eclipse online Help for more information Setting Cond...

Страница 199: ...he main menu click Format Uncomment Line or use the comment_erase command Surrounding line comment characters are removed from the line If there is no active selection the current line will be uncomme...

Страница 200: ...t Setup or use the comment_setup command The Extension Options dialog is displayed open to the Comments Tab 2 Select the extension you want to affect from the Extension drop down list 3 In the Doc com...

Страница 201: ...am height return int int setDimensions int length int width int height XMLdoc Format To use the XMLdoc comment format select the start characters and the param style Using the fol lowing code sample C...

Страница 202: ...Format Comment Setup comment_setup command The Exten sion Options dialog is displayed open to the Comments Tab Select the extension you wish to affect from the Extension drop down list then select Spl...

Страница 203: ...ber of columns has been reached For more details on comment wrapping configuration see Comment Wrap Tab Reflowing Comments After configuring comment wrap settings you can use the Reflow Comment dialog...

Страница 204: ...hrough the current buffer for the word or selection at the cursor You can find the next occurrence of a search item by selecting a string in an existing buffer or SlickEdit Core Search view then selec...

Страница 205: ...e main menu click Window Preferences expand SlickEdit and click General in the tree then double click the File Extension Setup setting Choose your extension from the Extension drop down list then sele...

Страница 206: ...ds Find and Slash Commands The command line is available for performing searches You can use the forward slash or find com mands which provide the same functionality as the Find and Replace view Press...

Страница 207: ...n from the Extension drop down list then select the Advanced Tab W P Limit search to word prefix For example a search for pre matches pre and prefix but not supreme or supre W PS Limit search to stric...

Страница 208: ...f one or more of the following color coding element letters O Other K Keyword N Number S String C Comment P Preprocessing L Line number 1 Symbol 1 2 Symbol 2 3 Symbol 3 4 Symbol 4 F Function color V N...

Страница 209: ...ce string is used without modification Replace commands only Replaced occurrences are highlighted with modified color To set default search options see Search Tab If the option is not specified you wi...

Страница 210: ...erse for next occurrence of search string Ctrl S Search forward for next occurrence of search string Ctrl T Toggle regular expression pattern matching on off The key bound to the Brief emulation comma...

Страница 211: ...r after the c c x y e Replace lowercase occurrences of x with y without prompting c i something_more_meaningful w Replace occurrences of the variable i with something_more_meaningful c i j w A Za z Re...

Страница 212: ...layed providing a way to repeat the last search Options also persist when switching between the tabs Pressing F7 and F8 retrieves previous and next responses respectively Search and replace values can...

Страница 213: ...background of the view window and select Configure Options The default search options will always be used when the Find and Replace view is invoked unless settings are changed on the Find and Re place...

Страница 214: ...r two words separated by any number of spaces A regular expression can describe these search strings and many more All search commands support regular expressions The Find and Replace view contains op...

Страница 215: ...n character Brief regular expressions When regular expressions are turned on for a search and replace com mand the backslash character has special meaning in that backslash in the replace string has t...

Страница 216: ...tagged expressions with a backslash followed by a tag group number 1 9 Count the left parenthesis in the search string to determine a tagged expression number The first tagged expression is 1 and the...

Страница 217: ...sing tagged expressions or regular expressions to perform a search and replace you need to understand the difference between the minimal and maximal operators Take for example a line of text which con...

Страница 218: ...ch and replace would prefix each digit in the file with a character which is probably not what you want Undoing Redoing Replacements To undo a replacement click Edit Undo press Ctrl Z or use the undo...

Страница 219: ...s contain the same options and settings See HTML Beautifier Javadoc See Javadoc Beautifier XML XSD These beautifiers contain the same options and settings See XML Beautifier Reflowing Text To reflow t...

Страница 220: ...rather than a formal language parser Quick Refactoring is generally faster and less stringent than C Refactoring Available Quick Refactorings To access the Quick Refactorings use the right click cont...

Страница 221: ...lines as the body It discovers any undeclared variables and creates them as parameters to the new method The ex tracted method is created in the same scope as the original method Quick Extract Method...

Страница 222: ...r C C Java and Slick C Quick Replace Literal with Constant Replaces the selected literal with a constant replacing use of the literal with the new constant Quick Re place Literal with Constant is only...

Страница 223: ...All of the symbol overloads All other instances of the symbol within the class hierarchy It then parses each file containing references to the selected symbol s and updates the rest of the code to use...

Страница 224: ...ption is unavailable if the selected block contains a return continue or break statement Modify Parameter List Modify Parameter List allows you to add delete and re order parameters for a selected fun...

Страница 225: ...Push Down to Derived Class Moves class members to a class that inherits from the selected class Figure 6 34 C Refactoring Push Down to Derived Class C Refactoring 203...

Страница 226: ...ne everything will compile Any member that is explicitly accessed through an instance of the super class or an instance that is cast to the super class cannot be moved Moving this will break the code...

Страница 227: ...Pull Up to Super Class Automates moving members from a selected class to one of its directly inherited base classes Figure 6 36 C Refactoring Pull Up to Super Class C Refactoring 205...

Страница 228: ...t be moved to the new base class and might not be accessible thereby causing compilation errors This occurs for example when a function being moved uses a static global variable that is defined in the...

Страница 229: ...set functions for the specified variable and makes that variable private All references to the variable are replaced with references to the getter or setter as appropriate Figure 6 38 C Refactoring E...

Страница 230: ...lass_name cpp h Default paths and file names can be changed The files will be added to the current project If version control is enabled you are prompted to add the files to the version control system...

Страница 231: ...large class into a better abstraction by moving some responsibilities into a new class interface The extracted class becomes the super class of the original class Figure 6 41 C Refactoring Extract Su...

Страница 232: ...d updates references accordingly The original method may be converted to a delegate method if there are references to the original method that cannot be converted to a reference to the moved method Fi...

Страница 233: ...rompted for the target class Figure 6 43 C Refactoring Move Method 2 Move Static Field Moves a static data member from one class to another and updates references accordingly Figure 6 44 C Refactoring...

Страница 234: ...ates any references to change how the method is accessed Convert Global to Static Field Moves globally declared variables into a static field in a class and updates references to refer to the new stat...

Страница 235: ...aced with references to the new data member This refactoring cannot be used to convert a method parameter to a field Figure 6 46 C Refactoring Convert Local to Field Replace Literal with Constant Repl...

Страница 236: ...Create Standard Methods Creates an assignment operator copy constructor default constructor and destructor for the selected class Figure 6 48 C Refactoring Create Standard Methods C Refactoring 214...

Страница 237: ...within the editor window and click C Refact oring Test Parsing Configuration On the Test Parsing Configuration dialog click Parse File to parse the file Any errors are displayed in the SlickEdit Core...

Страница 238: ...Figure 6 49 Test Parsing Configuration Example 1 C Refactoring 216...

Страница 239: ...The following example shows a warning that is not severe enough to prevent parsing of the file Figure 6 50 Test Parsing Configuration Example 2 C Refactoring 217...

Страница 240: ...Finally the following example shows a test resulting in no errors or warnings C Refactoring 218...

Страница 241: ...Figure 6 51 Test Parsing Configuration Example 3 Reviewing Refactoring Changes 219...

Страница 242: ...is displayed allowing you to review the changes Figure 6 52 Refactoring Results There are three panes in this window The left pane is read only and shows the original file s The right pane shows the...

Страница 243: ...orings in particular Modify Parameter List may require further user input In this case each input will be displayed under the file it is in and there will be two additional buttons Next Input and Prev...

Страница 244: ...re Possible Inline Introduce Factory Encapsulate Field See the Eclipse Help for descriptions and other information regarding Java refactoring Java Develop ment User Guide Reference Refactoring Viewing...

Страница 245: ...will perform the same operation However keys that are bound to the commands top_of_buffer bot tom_of_buffer page_up page_down begin_line end_line begin_line_text_toggle cursor_left or cursor_right wi...

Страница 246: ...ters Tab Enter the character codes that you wish to use To view the differences between a DOS format text file and another format when View New Line Chars is active choose something other than a space...

Страница 247: ...l or use the plusminus command Tip Selective Display bitmaps can be expanded or collapsed with a single click causing Selective Display to operate similar to Windows Explorer Note however that you wil...

Страница 248: ...is controlled by the def_plusminus_blocks configuration variable The value is set to true 1 by default For more information see ConfigurationVariables The plusminus command uses the same logic to ide...

Страница 249: ...ertical line Click on the colored box to the right of this option to change the color of the vertical line Viewing Line Numbers The line number of the current cursor position is always shown in the st...

Страница 250: ...228...

Страница 251: ...Chapter 7 Language Specific Editing 229...

Страница 252: ...use the select_mode command The Select Mode dialog is displayed with a list of modes from which to select Changing and Creating Modes To change or create modes from the main menu click Window Preferen...

Страница 253: ...xtension drop down list before configuring any settings For a complete of options and buttons on this dialog see Extension Options Dialog Referring to Extensions When an extension refers to another ex...

Страница 254: ...the language is similar to another language that is already available and you wish to have the new language configuration the same as an existing one you can select the language to refer to from the...

Страница 255: ..._exts c h Please note that if you also code in C and any of these extensions are used for C they will be inter preted as ANSI C C C Formatting Options Options are available for C and C language file e...

Страница 256: ...blank line should be inserted between braces when a template expands with braces Insert function start brace on new line Specifies whether a function start brace should be inserted after Enter is pres...

Страница 257: ...nted from the switch statement column Use continuation indent on function parameters Determines whether function parameters should always use the continuation indent By default we format multi line fu...

Страница 258: ...or while and the open paren when syntax expansion occurs Example if or if Insert padding between parens When checked a space is placed after the open paren and before the close paren providing paddin...

Страница 259: ...executables as if they were C in addition to requiring that you specify the names of the files see above the path that the files are located in must match this regular expression C C Beautifier To bea...

Страница 260: ...e style Select this option if you do not want your brace style changed This is useful if you are using a brace style that is not supported by SlickEdit Core No space before paren Determines whether a...

Страница 261: ...t CASE from SWITCH When this option is selected the case and default statements found in side switch statements are indented from the switch Indent access specifier When this option is selected specif...

Страница 262: ...ed expressions Lines that are a continuation of an assignment statement are indented after the first equal sign Lines that are a continuation of a parenthesized expression are indented after the open...

Страница 263: ...ts that start in column 1 are left alone Select this op tion if you want the indent for these comments to be adjusted Specific column This text box specifies the column in which trailing comments shou...

Страница 264: ...original source file Trail ing comments are comments that are displayed at the end of lines that contain statements or declara tions For example if the original code is as follows if i 1 four characte...

Страница 265: ...er_h endif When this option is selected preprocessing inside this special ifndef case is indented Eat spaces after When this option is selected the spaces after a preprocessor but before the keyword i...

Страница 266: ...ories This is accomplished by using the C C Com piler Properties dialog box shown below To access the dialog click C C Refactoring C C Com piler Options Figure 7 11 C C Compiler Properties Dialog The...

Страница 267: ...u wish to remove the selected compiler and associated configuration from the list click Delete This does not delete any files from disk Building the Tag File The Build tag file button on the C C Compi...

Страница 268: ...or macros To do so complete the following steps 1 From the main menu click Window Preferences expand SlickEdit and click General in the tree then double click the File Extension Setup setting The Exte...

Страница 269: ...nfiguration directory Rather than using the dialog you can add large numbers of defines directly to this file You may want to make sure that your entire development team has an up to date copy of this...

Страница 270: ...indow Preferences ex pand SlickEdit and click General in the tree then double click the File Extension Setup setting Choose the language extension you wish to work with from the Extension drop down li...

Страница 271: ...evel of code Specifies whether smart indenting should indent the cursor after declara tions such as functions Indent CASE from SWITCH When checked template editing places the case statement indented f...

Страница 272: ...dName new ActionListener special case anonymous class first argument public void actionPerformed ActionEvent e createdButtonFired buttonIndex secondarg thirdarg myLongMethodName secondarg new ActionLi...

Страница 273: ...er name If checked the parameters are aligned to the length of the longest parameter name If the parameter name length is less than the minimum length the minimum length is used If the parameter lengt...

Страница 274: ...s Javadoc documentation at http java sun com Organizing Java Imports Organizing imports automates the management of import statements in Java files This feature minimizes the amount of time that it t...

Страница 275: ...Java Refactoring See Java Refactoring for information about Java refactoring in SlickEdit Core Java Refactoring 253...

Страница 276: ...ons are still provided through the XML Formatting Options dia log To access these options click Window Preferences expand SlickEdit and click General in the tree then double click the File Extension S...

Страница 277: ...certain special cases e g XHTML you might want to change this setting Case for inserted single word values This option is to specify if the case used when inserting the single word values that appear...

Страница 278: ...ts You can use the commands xml_beautify or xml_beautify_selection to instantly beautify the file or the selection according to the settings on the Beautifier dialog Note The XSD Beautifier contains t...

Страница 279: ...he output tab size is only used if the Indent with tabs check box is on This value defaults to the Syntax indent text box in the Extension Options dialog box Window Preferences expand SlickEdit and cl...

Страница 280: ...options and settings Tag case Specifies how you want your tag names cased For example if you choose UPPER then tag would be beautified to TAG Under normal circumstances you will want to preserve the...

Страница 281: ...All Content check boxes off blockquote Reformat Indent End tag When on the selected tag has an end tag For XML you will normally want this to remain on End tag required When on the selected tag s endi...

Страница 282: ...on tent was TR TD TD TR The resulting content would be TR TD TD TR Please note that the number of line breaks is not the same as the number of blank lines If you wanted three blank lines then you woul...

Страница 283: ...d values left alone Under normal circumstances you will want to preserve your XML values but for certain special cases e g XHTML you may want to change this setting Quote number values Specifies wheth...

Страница 284: ...d as well Define Comments Displays the XML Comments dialog This dialog allows you to define what the beautifier recognizes as a comment The sequence is defined as the XML comment by default If you del...

Страница 285: ...ration of the original source file By trailing com ments we mean comments which appear at the end of lines which contain tags The following is an example of code before beautifying trailing comments O...

Страница 286: ...ng Currently only HTTP and not FTP remote files are suppor ted This automatic caching allows you to work offline and edit XML documents that reference remote DTDs when you do not have an Internet conn...

Страница 287: ...the URL to the DTD to a local file Simil arly if you wanted to test changes to a DTD without modifying every XML documents DTD references you can map the URL to the test DTD location Figure 7 22 URL...

Страница 288: ...ges embedded in HTML including Context Tagging Color Coding SmartPaste Syntax Expansion and Syntax Indenting Tip When working with HTML files you can toggle between the begin and end HTML tags by pres...

Страница 289: ...rences expand SlickEdit and click General in the tree then double click the File Extension Setup setting On the Extension Options dialog choose html from the Extension drop down list then click the Op...

Страница 290: ...Languages similar to HTML have similar Formatting Options dialogs which are not specifically documented Figure 7 24 HTML Formatting Options Dialog HTML 268...

Страница 291: ...lickEdit Core This option is used by the HTML toolbar When this attribute is selected path information is included when inserting file names into the value of an attribute For example creating a link...

Страница 292: ...nts that have been automatically formatted through XML HTML Formatting you may find un expected results You can use the commands h_beautify or h_beautify_selection to instantly beautify the file or th...

Страница 293: ...xtension Options dialog select the Indent Tab Tab size Specifies output tab size The output tab size is only used if Indent with tabs check box is on This value defaults to the Syntax indent text box...

Страница 294: ...g Preserve original indent Preserve the original absolute indent amount on broken tag lines Tags Tab Figure 7 26 HTML Beautifier Tags Tab The Tags tab contains the following options and settings Tag c...

Страница 295: ...is TD so End tag would be checked in this case End tag required When on the selected tag s ending tag is required This means that the ending tag is not optional An example of a tag whose ending tag co...

Страница 296: ...t was TR TD TD TR The resulting content would be TR TD TD TR Please note that the number of line breaks is not the same as the number of blank lines If you wanted three blank lines then you would set...

Страница 297: ...ffffff would be beautified to body bgcolor FFFFFF Quote word values Specifies whether you want word values enclosed in double quotes after the of an attribute inside the body of a tag For example td a...

Страница 298: ...ine what the beautifier recognizes as a comment The sequence is defined as the HTML comment by de fault If you delete all comment definitions then all comments will be parsed as content and possibly w...

Страница 299: ...tags The following is an example of code before beautifying trailing comments TR TD four characters trailing comment TD TR The resulting code would be TR TD four characters trailing comment TD TR Adv...

Страница 300: ...graph will be ended by the start of the table below it TABLE TR TD a table cell TD TR TABLE Remove blank lines When on blank lines are deleted Beautify JavaScript When on embedded JavaScript is beauti...

Страница 301: ...saved and imported so they can be shared with your team Tags for each scheme can be entered manually or you can import tags from the current file Caution XML HTML Formatting does not currently affect...

Страница 302: ...so that you can turn off aspects of global formatting for just the current document For example if you have both aspects of HTML formatting enabled globally but you need to edit an old HTML file and...

Страница 303: ...for use with either XML or HTML and or different schemes for use with different individual files For example you may want one scheme for HTML and a different scheme for XML Or you may want one scheme...

Страница 304: ...gs for each default scheme or specify your own default schemes see Specifying a Different Default Scheme The html default html scheme is comprised of a default tag as well as a list of commonly used H...

Страница 305: ...XML or HTML files by selecting a scheme then from the right click context menu choose Set as Default XML Scheme or Set as Default HTML Scheme The name in the Scheme list will be appended with the tex...

Страница 306: ...e tag in that the start and end tags are on separate lines content and nested tags are indented according to your extension indent style and content is wrapped to a fixed right margin at column 80 Use...

Страница 307: ...a selected scheme right click on the tag and select Delete Tag Deleting SlickEdit Core default tags or any tag that is based on another is not recommended If you attempt to do this you will be prompt...

Страница 308: ...ly inserted The placement of the inserted tag depends on other settings you have specified such as whether or not the end tag should be on a separate line specified on the Tag Layout tab Match tag sty...

Страница 309: ...ding to the settings spe cified in the Tag content width group box See Tag Content Width Settings below for details Treat as content When selected the tag as well as its content is wrapped according t...

Страница 310: ...is is useful if coding standards mandate that text should not exceed a specified column Automatic width When selected the width of the longest multi line paragraph in the tag s content is used as the...

Страница 311: ...c or Fixed right will be used instead Tag Layout Settings The Tag Layout tab of the XML HTML Formatting dialog contains options to control the location of the start tag end tag and the content between...

Страница 312: ...Indent When selected indenting for the tag occurs at the column number specified in the spin box When Indent after start tag is selected indenting is relative to the close bracket Otherwise in dentin...

Страница 313: ...along the bottom that allow you to configure even more settings for these languages These buttons are shortcuts to the extension options that are usually accessed through the Options button on the Ext...

Страница 314: ...hen you type them For example when you type the word procedure and the Keyword case is set to Upper case the editor changes procedure to PROCEDURE Ada Beautifier You can beautify Ada files and change...

Страница 315: ...ting This value defaults to the Syntax indent text box on the Indent Tab of the Extension Options dialog box Original tab size Specifies what the original file s tab expansion size was It is necessary...

Страница 316: ...in a formal parameter list of a subprogram specification One enumeration per line When checked only one enumeration is allowed per line of code in an enumerated type definition Horizontal Spacing Tab...

Страница 317: ...ab The following options are available on the Blank Lines tab Item Syntactic item to which blank lines settings get applied Subprogram declaration Procedure or Function declaration Subprogram body Pro...

Страница 318: ...tem After Specify how many blank lines are inserted after item Between Specify how many blank lines are inserted between like items Comments Tab The following options are available on the Comments tab...

Страница 319: ...are indented Force a linebreak on logical operators A line break is forced before after depending on your Op erator position setting every logical operator in the condition of an if elseif For example...

Страница 320: ...r level 3 Additional indent for logical operator 3 Addition al indent for logical operator when followed by another line that begins with different logical operator 3 Indent per level 3 Operator posit...

Страница 321: ...setting Choose the language extension you wish to work with from the Extension drop down list then click the Options but ton The Formatting Options dialog specific to the file extension you have sele...

Страница 322: ...syntax are mutually exclusive options Embedded SQL Dialect Specifies the specific type of SQL that is embedded in your COBOL source This affects embedded SQL language color coding Line Numbering Choos...

Страница 323: ...eneral in the tree then double click the File Extension Setup setting Choose the Pascal language extension you wish to work with from the Extension drop down list then click the Op tions button The Fo...

Страница 324: ...omment is appended after the end keyword to indicate the type of loop or case it terminates In addition the begin and end for procedures and functions are commented No comment is appended to the begin...

Страница 325: ...d click General in the tree then double click the File Extension Setup setting Choose the PL I language extension you wish to work with from the Extension drop down list then click the Options button...

Страница 326: ...nk line when a DO END block is inserted Keyword case Specifies the case of keywords used by template editing If Auto case keywords is selected the case of keywords are changed to the keyword case spec...

Страница 327: ...o the end of line containing the return 0 state ment Executing it while the cursor is at the end of the return 0 statement will bring the cursor back to the colon position of the function signature li...

Страница 328: ...306...

Страница 329: ...Chapter 8 Tools and Utilities 307...

Страница 330: ...ting Generate file lists See Generating File Lists Specify automatic directory mapping See Automatic Directory Mapping Save restore multi file results Utilize dialog box history wild cards paths file...

Страница 331: ...only differ by path you only need to specify the path for Path 2 4 Click OK Alternatively you can use DIFFzilla to diff files from several Eclipse views including the Package Explorer and the Project...

Страница 332: ...m two source files complete the following steps 1 From the main menu click Tools File Difference 2 Select the Multi File diff type 3 Type the name of the first file in the Path 1 text box 4 Click More...

Страница 333: ...and a minus sign in the other You can customize the files to view with the context menu To display the context menu right click in the left or right tree If you move the mouse over the Plus or Minus b...

Страница 334: ...6 Click Save The Save Multi File Output dialog box opens Figure 8 3 Save Multi File Output Dialog DIFFzilla 312...

Страница 335: ...u previously typed in this field For example if you previously typed f slick12 bitmaps into the Path 1 text box and server user slick12 bitmaps into the Path 2 text box then f slick12 is mapped to ser...

Страница 336: ...ocal copy of the same source file and each makes modifications to their local copy The 3 Way Merge takes both sets of changes and cre ates a new source file If there are any differences a dialog box i...

Страница 337: ...ther names of the files to be merged in the Revision 1 and 2 text boxes 4 In the Output file Filename text box enter the name of the output file or click the Ellipses button to select from an existing...

Страница 338: ...3 Way Merge Settings For descriptions of the options on the 3 Way Merge Setup dialog see 3 Way Merge Dialog File History and Backups 316...

Страница 339: ...Package Explorer Project Explorer etc and select Compare With Local History This will activate the History view if necessary Select the two revisions that you want to compare right click and select Co...

Страница 340: ...The FTP view can be used to connect to FTP servers and open files To access this view from the main menu click Window Show View Other expand SlickEdit Views and double click FTP Right click on files...

Страница 341: ...P Options for information about the options on the Add or Edit FTP Profile dialogs Starting a Connection To start a new connection use the FTP view described above and complete the following steps 1 C...

Страница 342: ...m the drop down list at the top of the view window 2 Click the Disconnect Current Session button Opening FTP Files Before you can open FTP files you need to start a connection See Starting a Connectio...

Страница 343: ...the text you are trying to match in the top portion of the view window labeled Test Cases Enter your regular expression pattern in the bottom field The Regex Evaluator will highlight matched portions...

Страница 344: ...n all lines at once This is useful for test cases that wrap to the next line This works just as if you had entered om on the SlickEdit Core command line Case sensitive If Case sensitive is selected th...

Страница 345: ...he editing keys including undo next word and previ ous word are supported The calculator uses a slightly enhanced C expression syntax The calculator supports specifying binary numbers and allows just...

Страница 346: ...C language expression given and places the results in the mes sage line You can specify octal numbers by prefixing the number with a zero and specify binary numbers by prefixing the number with the ch...

Страница 347: ...s of math commands Table 8 2 Math Command Examples Example Description math 2 5 2 Multiplies 2 5 times 2 math 5 2 Divides 5 by 2 mathx 255 Converts 255 to hexadecimal math xFF Converts hexadecimal FF...

Страница 348: ...xists between two adjacent numbers on the same line addition is assumed The result of each adjacent line is added Prime Numbers Prime numbers are often useful for sizing hash tables The isprime comman...

Страница 349: ...er click Tools OS File Browser or use the explore or finder command the finder command is the same as the explore command If you are editing a document the file manager will be rooted in that file s d...

Страница 350: ...328...

Страница 351: ...Chapter 9 Macros and Macro Programming 329...

Страница 352: ...ording Macro respectively Alternately you can toggle recording on and off with one of the follow ing methods Click the recording indicator REC located along the bottom edge of the editor When a macro...

Страница 353: ...hat you will need to use Macro Save last macro prior to recording a new macro or exiting the editor See Saving and Editing Recorded Macros for more details 5 Specify the name for the macro in the Macr...

Страница 354: ...orded macros Note You can also display the Key Bindings dialog by clicking Window Preferences SlickEdit General Key Bindings or by using the gui_keybindings command However if you display the dialog i...

Страница 355: ...llows you to keep a set of recent un named macro recordings instead of having just one last recorded macro similar to a feature provided by early text editors that supported macro recording such as th...

Страница 356: ...ecorded and saved from the main menu click Macro List Macros or use the list_macros command to display the List Macros Dialog The list box on the left dis plays a list of your recorded macros Select t...

Страница 357: ...where key matches the key you used when creating the binding keys 0 9 A Z or F1 F12 Using Macros to Discover and Control Options Recording macros provides a good starting point for discovering variabl...

Страница 358: ...alues using the Set Variable dialog box Macro Set Macro Variable or gui_set_var command Figure 9 2 Set Variable Dialog Enter the name of Slick C global variable in the Variable text field You may use...

Страница 359: ...variable is displayed in the list box at the top of the dialog and the value for each entry is displayed in the Value text box For a list of all elements on this dialog see Variable Editor Dialog Set...

Страница 360: ...338...

Страница 361: ...Chapter 10 SlickEdit Core Dialogs 339...

Страница 362: ...umbers in the first column of the list box are used to help you move the selection cursor The second column indicates the clipboard type The third column shows all or a portion of the clipboard text d...

Страница 363: ...r of bit positions by which to increment Pad to number of digits Specifies the digit width for each number Number is padded to at least this number of digits by adding leading zeros Output Both the He...

Страница 364: ...ommand text box The selected text will be used as input to the command and the output from the command will replace the selected text Use the drop down arrow to the right of the Command text box to se...

Страница 365: ...of the General Options dialog Window Preferences expand SlickEdit and click General in the tree then double click the General setting See Search Tab for a description of these settings Find and Replac...

Страница 366: ...stead of the options selected in the Find and Replace view Clear All Options Clears all options that are selected in the Find and Replace view Set Current Options as Default If selected the options th...

Страница 367: ...you to specify a range for your search to the current selection current pro cedure current buffer or all buffers Search options Click this button to expand or contract the search options section of th...

Страница 368: ...all non checked boxes Selected If the check box is selected the search will be restricted to this element and any other se lected elements There is no need to deselect any other elements if any eleme...

Страница 369: ...Bookmarks view when a match is bookmarked Incremental search Select this option to search incrementally on patterns being typed into the Search for field showing the location of the match at the curso...

Страница 370: ...Look in This field allows you to specify a range for your search to the current selection current pro Find and Replace View 348...

Страница 371: ...ded with the New option up to a pre set limit of open SlickEdit Core Search views If Auto Increment is selected the search results will cycle through all of the open Search Results tabs in the SlickEd...

Страница 372: ...ng performed The default search for SlickEdit Core is background searching unless this option is selected Prompted When this option is selected you are prompted whether to continue searching when an o...

Страница 373: ...more information Preserve case Select this option to perform a case sensitive search and replace operation Highlight replaced text Select this option to highlight all instances of the text that was r...

Страница 374: ...in Files Tab This tab on the Find and Replace View provides the same functionality as the Replace Tab with the ad ded ability to conduct multi file replacements It contains one additional option desc...

Страница 375: ...Find and Replace View 353...

Страница 376: ...ndo and Edit Multi File Redo to undo redo replacements in multiple files Find Symbol View The Find Symbol view is used to locate symbols in your code It allows you to search for symbols by name using...

Страница 377: ...to the first match Press Down to select the next match Press Escape to stop the search Symbol List The list of search results are refreshed as you type the search string They include the symbol name t...

Страница 378: ...ssion This can result in slower search times since SlickEdit Coremust test every symbol in the tag file against the regular expression Filters Use filters to restrict the search to certain types of sy...

Страница 379: ...s that match the prefix you have typed so far To display the dialog use the gui_find_proc command Tip This dialog has been deprecated in favor of the Find Symbol View For more information about naviga...

Страница 380: ...isplay 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...

Страница 381: ...ective 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 hi...

Страница 382: ...et to correspond to indentation levels Limit levels When too many nested levels of selective display get confusing place a limit on the max imum number of nested levels Nesting deeper than this specif...

Страница 383: ...n MDI editor control Select this option if your macro should be allowed in a non MDI ed itor control This is typical for commands which require an editor control but do not open or close editor window...

Страница 384: ...formation Bind to Key Displays the Key Bindings dialog so you can assign a key or mouse shortcut to the macro See Binding Recorded Macros to Keys for more information Variable Editor Dialog The Variab...

Страница 385: ...ns are available Expand Curr Expands current item which has a Plus bitmap Delete Deletes current item Format Allows you to change the type of the current item Insert Inserts a new hash table or array...

Страница 386: ...gui_grid command is used to set the width and height of grid dots displayed on forms when you use the Dialog Editor These settings affect the distance between the dots on a form that is being edited F...

Страница 387: ...e menu item For menu items set the caption to to specify a line sep arator Short Cut Key binding shortcut for the menu item Command Macro command executed when the menu item is selected This may be an...

Страница 388: ...set the properties for the menu item that should be automatically enabled See Enabling Disabling Menu Items and Auto Enable Properties Dialog Up Moves the selected menu item above the previous menu it...

Страница 389: ...s no se lection in the active buffer Requires Context Tagging Indicates that this command should be disabled if Context Tagging does not support the current buffer language type Requires fileman mode...

Страница 390: ...pboard Indicates that this command should be disabled if there is no editor control clip board available Requires a selection Indicates that this command should be disabled if there is no selection To...

Страница 391: ...icking in the editor and selecting Imports Options Figure 10 17 Organize Imports Options Dialog The following settings are available Package explicit import limit before using wildcard If more than th...

Страница 392: ...Java If selected SlickEdit Core will attempt to automatically add imports as you edit Java code Automatically add import during code help for JSP If selected SlickEdit Core will attempt to auto matic...

Страница 393: ...y changes are made Revision 1 and 2 Specifies the file buffer names of the modified versions of the base file Output file Specifies the output file name Merge style The following merge styles are avai...

Страница 394: ...d Ignore spaces If selected leading and trailing spaces are ignored The side by side output allows you to easily select the change that you want DIFFzilla Dialog The DIFFzilla dialog Tools File Differ...

Страница 395: ...l symbol ranges are identified Ranges for multi line variable declarations are not identified Multi File Compares two directories or directory trees and shows which files do not match Select Recurse i...

Страница 396: ...number blank the range extends to the end of the file When you select a range of lines you can compare parts of the same file Record file width Specifies the record width to use when reading a file o...

Страница 397: ...n selected differences in character casing are ignored Do not compare newline characters When selected differences in end of line characters are ig nored This is useful when comparing UNIX formatted f...

Страница 398: ...tory in the Path 1 text box During multi file diff automatically close after last difference When selected clicking Next Diff on the Diff dialog box when there are no more differences triggers the Clo...

Страница 399: ...difference editor when the selected files differ Del File Deletes the selected file s Hold Ctrl Click to multi select in either tree The X bitmap is dis played View Shows current files in the differen...

Страница 400: ...pping leading com ments and expanding tabs Report Displays a report of the operations you performed in this dialog including file copies file de letes and diffs where changes were saved In addition yo...

Страница 401: ...file If no files are selec ted you will be prompted whether or not to remove all source files from the tag file If you remove files from your workspace tag file you will be prompted if you want to als...

Страница 402: ...ntrol your searching preferences Selections Tab The Selections tab allows you to set text selection style preferences Special Characters Tab Activating view of special characters inserts characters in...

Страница 403: ...SlickEdit Core If checked each file you open will be allocated in its own window If unchecked each file will open in the same window Maximize first window Not available in SlickEdit Core If checked th...

Страница 404: ...he dialogs tool window are displayed The value of Show hidden files is controlled by the global variable def_filelist_show_dotfiles By default this option is on for Windows and off for UNIX platforms...

Страница 405: ...stops will be marked Syntax indent ruler If selected a box will be drawn around the current line with the Syntax Indent levels marked Decimal ruler If selected a box will be drawn around the current...

Страница 406: ...earch options The following default search options apply to all command line searches quick searches and incremental searches and to the Find and Replace view when the option Initialize with default o...

Страница 407: ...ace view is closed after finding text in the buffer Initialize with default options If checked the search options in the Find and Replace view will be reset to the default options each time it is laun...

Страница 408: ...displayed in the left margin of the editor control corresponding to the bookmarks you have set Show pushed bookmarks If checked a blue Bookmark bitmap is displayed in the left margin of the editor co...

Страница 409: ...yle you wish to use from the following options User defined This option is for setting your own selection preferences Any changes that are made to the CUA behaviors automatically select User Defined S...

Страница 410: ...Emacs emulation Delete selection before insert Indicates whether a selection is deleted before new text is inserted This option is not available if using a Brief or Emacs emulation Auto deselect Check...

Страница 411: ...references expand SlickEdit and click General in the tree then double click the General setting On the General Options dialog select the Special Characters tab which is pictured below See Viewing Spec...

Страница 412: ...ns that can be set for working with SlickEdit Core To access these options click Window Preferences expand SlickEdit and click General in the tree then double click the General setting On the General...

Страница 413: ...Figure 10 28 General Options More Tab The following options are available Start in insert mode If selected the editing mode is set to insert when the editor is invoked Other General Options Dialog 391...

Страница 414: ...than the command line In addition the dialog manager takes over the keys Alt A through Alt Z for selecting controls Note Do not mark this check box if you want all of the keys to operate the same in a...

Страница 415: ...yed Key message delay Selecting this option specifies the delay before a prefix key is displayed in tenths of a second The prefix key is not displayed if the next key is pressed before the delay speci...

Страница 416: ...ctivating an existing window pressing Ctrl Tab or pressing Ctrl Shift Tab does not reorder windows This option is best if you like to memorize the hot key numbers on the Window menu for example Alt W...

Страница 417: ...configuration If selected configuration changes are saved without prompting Always prompt before saving configuration Select this option to always receive a prompt before saving changes that you make...

Страница 418: ...tual Memory Tab To access virtual memory options click Window Preferences expand SlickEdit and click General in the tree then double click the General setting On the General Options dialog select the...

Страница 419: ...temporary files should be placed On Windows this defaults to the directory specified the TEMP environment variable If it does not exist the directory specified by the TMP environment variable is used...

Страница 420: ...100 MB you should set your cache size to 100 MB You may have to experiment to find the optimum value Use the recommendations below as a guide Note that this is the same option as found on the Context...

Страница 421: ...ion in the documentation Indent Tab Word Wrap Tab General Tab Comments Tab Comment Wrap Tab Advanced Tab Auto Complete Tab Context Tagging Tab Extension Options General Dialog Settings The following f...

Страница 422: ...tension as it keeps the Ex tension Options dialog box displayed Options To access formatting options such as brace styles indentation and other code style settings click the Options button located at...

Страница 423: ...key reindents the line These options specify that the Tab key be used to beautify or reindent the current line Select from the following settings Never When this option is selected pressing Tab will...

Страница 424: ...aracter pressing the Backspace key un indents the current line by one in dent level See also Setting the Backspace Unindent Style Use SmartPaste Specifies whether copied or pasted text should be reind...

Страница 425: ...d question mark and exclamation point punctuation characters turn on 1 space after period Left Left justification with respect for space characters between words This setting requires the Save options...

Страница 426: ...ample if you want Soft Wrap turned on for all extension types complete the following steps 1 Mark Wrap long lines to window width 2 Mark Break on word boundary 3 Then mark Affects all extensions and c...

Страница 427: ...ncoding Each extension can have its own encoding specification Both the extension specific and global settings are overridden if an encoding is previously specified in the Open dialog box The encod in...

Страница 428: ...is opened that does not contain any lowercase characters caps mode is turned on not the same as caps lock When caps mode is on all text is inserted in uppercase This feature is intended to emulate IS...

Страница 429: ...might put an asterisk in each of the other fields to draw a box of asterisks around the block comment SlickEdit Core interprets the contents of these fields literally If you want the asterisks on the...

Страница 430: ...ted the comment will be formatted as follows if enabled tabState TIS_DISABLED Comment Line These settings are used when you comment out selected lines Format Comment Lines or comment command Left and...

Страница 431: ...ed SlickEdit Core automatically inserts a skeleton doc comment when you type comment start characters and then press Enter on a line directly above a function class or variable The type of skeleton th...

Страница 432: ...ew line comment will automatically be started on the new line For example The quick brown fox CURSOR_HERE jumped over the lazy dog Pressing Enter will result in The quick brown fox CURSOR_HERE jumped...

Страница 433: ...va and Slick C files These options are currently unavailable for other languages Use the Comment Wrap tab to activate comment wrapping and configure options for how block line and doc comments are wra...

Страница 434: ...ne comments Comment width There are three types of width settings for comments Fixed width If selected comments are formatted to the specified width This is useful since com ments are typically indent...

Страница 435: ...If selected when Enter is pressed inside a bulleted paragraph a new bullet will be inserted and the cursor will be placed at the text starting position Javadoc If Use hanging indent on block tag comme...

Страница 436: ...t have been modified are color coded Current line Check on Current line to color code the current line Extension specific project Not available in SlickEdit Core Click this button to set project prope...

Страница 437: ...sing this option Word chars The word characters affect the operation of all word oriented commands including word searching You can use a dash character to specify a range such as A Z which specifies...

Страница 438: ...tures of SlickEdit Core After you select a word completion you can press Ctrl Shift Space to complete the rest of the line from which the original word came See Word Com pletion for more information M...

Страница 439: ...list containing only completions Show categories If selected shows completions in a categorized list for each type If not selected all completions will be shown in one flat sorted list Show symbol dec...

Страница 440: ...nd multiple sets of comments the comments will indicate that you are looking at item 1 of n Click on the arrows or use Ctrl PgUp and Ctrl PgDn to cycle through the comment sets Completion on space If...

Страница 441: ...ere Auto list compatible values If selected compatible variables are automatically listed after you press the spacebar after assignment operators and return statements Global non module variables are...

Страница 442: ...he list of matches by pressing Ctrl Comma However once you reach the first match Ctrl Comma will then pop you back to your original location where you were before you pressed Ctrl Dot Independent of t...

Страница 443: ...dit and click General in the tree double click the File Extension Setup set ting See Symbol Navigation for more information File Options Dialog You can set various options that pertain to loading savi...

Страница 444: ...e available Load entire file When selected the entire contents of the opened files are read into memory The line indicator located at the bottom right section of the editor might become blank if the f...

Страница 445: ...mode on and off Reload on switch buffer When selected the editor will detect when the file has been modified by other applications when the file is switched to the active editor window If the option i...

Страница 446: ...motion can be undone but is not counted as a step If you are using the load command to open files use the switch U to specify this option For example U 32000 turns on undo and specifies a 32000 step m...

Страница 447: ...n is set tabs are expanded to spaces according to the tab stops when the buffer is saved If you are using the save command to save files use the switch E to specify this option Strip trailing spaces W...

Страница 448: ...t the file format to DOS Mac or UNIX When Automatic is set default the line breaks are saved automatically in the file format appropriate to the context in which you are working However you can design...

Страница 449: ...tion AutoRestore does not restore files that do not exist on the disk drive of your system Save your file at least one time to ensure that the file has a file name and exists on the disk drive Save af...

Страница 450: ...different extension The third character of the extension is replaced with a character The length of the extension is padded with un derscores if the length of the extension is less than three charact...

Страница 451: ...ey Bindings Dialog The Key Bindings dialog Window Preferences expand SlickEdit and click General in the tree double click the Key Bindings setting or use the gui_keybindings command is used for creati...

Страница 452: ...ode click Window Preferences expand SlickEdit and click Emulation in the tree For more information see Emulations The dialog contains the following elements Search by command This filter is used for s...

Страница 453: ...ich the key binding applies The default mode causes the binding to work in all language editing modes However the default mode will be overridden by any language specific mode binding to another comma...

Страница 454: ...hen you click Add on the Key Bindings dialog to add a new binding Figure 10 46 Bind Key Dialog The Bind Key dialog contains the following Command This field shows the command that you have selected to...

Страница 455: ...anguage editing mode select this option and click the language editing mode from the drop down list Click Bind when finished See Creating Bindings for more information Redefine Common Keys Dialog The...

Страница 456: ...t line the next line is joined to the current line End The following commands are available for binding to the End key End line Moves the cursor to the end of the line End Line Text Toggle Toggles the...

Страница 457: ...elect this option Line wrap on text If selected line wrapping will occur when column one is reached If deselected line wrapping occurs when the left margin is reached When Word Wrap is on Window Prefe...

Страница 458: ...this option is to emulate the feel of real tab characters even if you only use spaces for indentation Context Tagging Options Dialog The Context Tagging Options dialog allows you to set general parame...

Страница 459: ...ng of files is selected this sets a limit to the number of files SlickEdit Core will re tag in one pass Maximum number of files to consider When background re tagging of files starts you cannot use th...

Страница 460: ...When you invoke List Members this setting limits the number of global symbols that will be inserted into the list Class struct members shown in list When you invoke class struct members this setting...

Страница 461: ...r code See C C Preprocessing for more information Color Coding Setup Dialog The Color Coding Setup dialog provides the capability to specify colors for identifying your code To con figure color coding...

Страница 462: ...log box are described below see Color Coding Setup Options General Dia log Settings Other options are categorized into the following tabs Tokens Tab Numbers Tab Strings Tab Language Tab Comments Tab C...

Страница 463: ...Click this button located next to Lexer name to remove a lexer name from the list You can only delete user created lexers Colors Click this button at the bottom of the dialog to display the Color Sett...

Страница 464: ...option is selected the list box to the right displays case sensitive words that have keyword color These words are always case sensitive even if the Case Sensitive check box is not selected Preprocess...

Страница 465: ...ter the first character of an identifier New Click this button on the Tokens tab to add one or more words Separate each word with a space Delete Deletes selected items in a list box Get Click this but...

Страница 466: ...selected text such as 0x123ABC is color coded in number color h Intel assembler When this option is selected text such as 123ABCh is color coded in number color Motorola When this option is selected t...

Страница 467: ...color Floating point with E exponent When this option is selected text such as 123 4E24 is color coded in number color Do not color code numbers HTML When this option is selected text such as 123 4E2...

Страница 468: ...nts a double quote for C represents a string of length one which is a double quote character Double quoted strings are always 1 char long When this option is selected this means that a double quote ch...

Страница 469: ...option is selected a single quote char acter is followed by an additional character and then the terminating single quote character There is never more than one character between the start and end sin...

Страница 470: ...ttings for another language but there s no guarantee it will work Color code line numbers Basic When this option is selected indicates that leading line numbers should be color coded in line number co...

Страница 471: ...nts are supported This option is forced on for the lexer name Java You must add the package and or import keywords to your keyword list in order for this option to have any effect Preprocessing keywor...

Страница 472: ...t options The following line comment options apply to multi line comments Start delimiter Delimiter which starts the multi line comment Currently the first character of this string cannot be a valid i...

Страница 473: ...line When this option is selected the end delim iter text must occur at the end of a line to terminate the comment Only when start delimiter is in column Indicates that the start delimiter text starts...

Страница 474: ...d in the Tag names list box To add or delete attributes use the New Attr and Delete buttons below this list box Attribute values List box contains the values for the specified tag and attribute To add...

Страница 475: ...for source code for example JavaScript embedded in an HTML file For HTML the syntax color coding recog nizes the script language tag and uses embedded language colors for the new language In addition...

Страница 476: ...olor for other elements The Select Colors to Update dialog appears from which you can select specific elements to affect Font Style For color coded elements you may choose whether the element is norma...

Страница 477: ...g settings are available Screen Elements The Element drop down list of the Font Configuration dialog contains the screen elements for which fonts can be changed When an element is selected the font ty...

Страница 478: ...roportional fonts In particular this affects the Version Control History dialog the About SlickEdit Core dialog and the Cool Features dialog HTML Fixed The default font used by HTML controls for fixed...

Страница 479: ...XML HTML Formatting Dialog See XML HTML Formatting for information about enabling formatting and working with this feature See Formatting Settings for information about the General Content Wrap and T...

Страница 480: ...eneral in the tree then double click the Proxy Settings setting Figure 10 59 Proxy Settings Dialog The following options are available Use Internet Explorer settings If selected Internet Explorer sett...

Страница 481: ...the Network Options setting Figure 10 60 Network Options Dialog The Internet Protocol IP setting affects how addresses are chosen when connecting to a host Select IPv6 and IPv4 the default for SlickEd...

Страница 482: ...Browsers Select which Web browser you want to use Selecting a preferred browser automatically sets the defaults for the other items in the Web Browser Setup dialog box Note the following Windows Your...

Страница 483: ...log is used to configure default FTP options To open it on the FTP view window click the button to start a new session When the Connect dialog is displayed click the Default Options button The dia log...

Страница 484: ...or Binary transfer type Upload without prompting When on saving an FTP file will upload the file The same transfer type used to open the file is used to upload the file Resolve links Default for addi...

Страница 485: ...used when adding a new connection profile Keeps a connection alive even when idle Upload filename case Default used when adding a new connection profile Indicates what file case should be used for the...

Страница 486: ...his option is selected host port user id and password are re quired USER remote_userid remote_host is sent to the firewall after logon OPEN site When this option is selected host and port are required...

Страница 487: ...with the SSH server SFTP support requires the OpenSSH client program to operate Windows users can obtain the SSH cli ent by downloading and installing the Cygwin package http www cygwin com and makin...

Страница 488: ...ent Dialog The Reflow Comment dialog Format Reflow Comment shown below is used to reflow block com ments paragraphs or a selection of the current file Figure 10 67 Reflow Comment Dialog Reflow Comment...

Страница 489: ...Tab Current paragraph If selected reflows the current paragraph within the block comment Selection If selected reflows a selection within a block comment paragraph based on current set tings Comment w...

Страница 490: ...The dialog contains the following Formatting scheme This drop down specifies the formatting scheme applied to this document Choose from the list of available schemes Auto formatting options These are...

Страница 491: ...Chapter 11 Appendix 469...

Страница 492: ...equire that the file data be converted to UTF 8 There are many encodings available including Auto XML This encoding specifies that the file encoding be determined based on XML standards and that the f...

Страница 493: ...ll of the SBCS DBCS active code page features in SlickEdit Core Unicode File Recognition By default XML and Unicode files with signatures UTF 8 UTF 16 and UTF 32 files are automatically loaded as Unic...

Страница 494: ...rogate support To turn on surrogate support run the regedit program and go to the following key location HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows NT CurrentVersion LanguagePack Set the value for...

Страница 495: ...rcase ignore case do not support surrogates Windows is relied upon for casing support and Windows casing features do not support surrogates See Surrogate Sup port Vertical line column Window Preferenc...

Страница 496: ...e files for programming are stored as SBCS DBCS loading these files is signific antly faster This is very important to our customers who expect superior performance from SlickEdit Core Unicode editing...

Страница 497: ...es Environment Variable Description VSLICKRESTORE Directory to store Auto Restore files VSLICKCONFIG Directory where user s local configuration files are stored Used in multi user environments Default...

Страница 498: ...les One or more file names separated with a semicolon or a colon on UNIX that contain tags Do not put this environ ment variable in vslick ini VSLICKBACKUP Directory to place backup files Affects D de...

Страница 499: ...gins com slickedit core_VERSION Environment VSLICKPATH c vslick win c vslick macros c vslick bitmaps c vmacros VSLICKALIAS c vmacros alias slk VSLICKINCLUDE c vslick macros c vmacros VSLICKLOAD a l b...

Страница 500: ...ble specify the name of the environment variable followed by an equal sign but omit the value parameter ex set classpath The DOS command shell removes environment variables in this way also The follow...

Страница 501: ...an abbreviation of the find_proc command which will trigger tagging if it hasn t already been done Setting Changing Configuration Variables There are two ways to set change these macro variables From...

Страница 502: ...l path which you can order according to path The default 3 will show an alphabetical list of the files in the left column and the directories in the right column def_ctags_flags This variable is a saf...

Страница 503: ...while at the end of a line that has whitespace only on the line below it spaces or tabs the whitespace is removed entirely acting as a line delete def_linux1_shell To use an alternate shell set this v...

Страница 504: ...after ending macro recording def_shift_updown_line_select Set this value to 1 for Shift Up or Shift Down to select the current line def_switchbuf_cd Set this variable equal to 1 to change the current...

Страница 505: ...ma_list To prevent the editor from accessing the Internet to validate and get color coding information from DTD s add your XML extension to this variable Set the value to a list of space delimited ext...

Страница 506: ...If you would like to use a different directory for your config files you can pass the vsconfig argument to Eclipse This works the same as passing any argument to eclipse exe or eclipse on Linux For e...

Страница 507: ...Core configuration directory If you experience a problem in the editor you can often solve it by using a saved config directory SlickEdit Core Product Support may also ask you to use a default config...

Страница 508: ...er defined color schemes user vlx A text file that contains color coding changes keywords etc This file is updated when you close the Color Coding dialog box usercpp h A text file that contains define...

Страница 509: ...d dialog boxes and menus These changes are NOT auto matically transferred unless the version encoding matches For example vusrs10e e System Configuration Files System configuration files are located i...

Страница 510: ...ems This file is NOT modified by the dialogs and is not preserved when a new editor is installed vslick ini A text file that contains a few miscellaneous op tions Some customizable environment variabl...

Страница 511: ...s My SlickEdit Core Config is used 3 Current directory 4 Paths specified in VSLICKPATH environment variable 5 Paths specified in PATH environment variable Search Order for Executable Files The search...

Страница 512: ...g box Window Preferences expand SlickEdit and click General in the tree then double click the Color Coding setting Modify the vslick vlx file Or create a new VLX file The vslick vlx file defines langu...

Страница 513: ...o Change a Color Definition then complete the steps below 1 From the main menu click Window Preferences expand SlickEdit and click General in the tree then double click the File Extension Setup settin...

Страница 514: ...he fol lowedby idchars is used to require certain char acters to follow start_symbol You can use a dash character to specify a range such as A Z which specifies uppercase letters To specify a dash or...

Страница 515: ...bute Defines attributes for the mlckeyword specified which belongs to the last mlcomment statement Currently this statement only supports HTML syntax attributes and requires that the HTML style be spe...

Страница 516: ...on blank symbol in the line symbol1 keyword keyword Defines words that should be displayed in symbol1 color Keywords do not have to be valid identifiers symbol2 keyword keyword Defines words that shou...

Страница 517: ...g a backslash in a single quoted string are included in the string like C sqbackslashml Color single quoted strings If a double quoted string ends in a backslash it continues the string to the next li...

Страница 518: ...upper or lowercase letter X For example 414141 X or 414141X are REXX style hexadecimal strings that are both equivalent to the string AAA packageimport Language has Java syntax package and import sta...

Страница 519: ...for TCL language color coding bquote Perl and Linux Shell style backquote subshell model204 Special support for Model 204 language cics Special support for CICS embedded in COBOL python Special suppor...

Страница 520: ...t_keys def A a A z def A F6 def F10 def C A select all def C B select_block def C C copy_to_clipboard def C D gui_cd The default_keys are the key bindings that are active in Fundamental mode The other...

Страница 521: ...op up If you bind the command to a left or right button mouse event the menu will be displayed at the cursor position You can use the Menu Editor to create a new menu or modify the SlickEdit Core menu...

Страница 522: ...o the edit command except that it prompts the user with a dialog box whereas the edit command prompts for files on the command line These two examples illustrate the best reasons for using aliases Ena...

Страница 523: ...this dialog from the main menu by clicking Window Preferences expand SlickEdit and click General in the tree then double click the ISPF Options setting Figure 11 2 ISPF Options Dialog The following s...

Страница 524: ...cleared the Right Ctrl key acts like a normal control key and the Enter key is used to execute line commands Cursor page up down When this check box is selected the display is scrolled up down until t...

Страница 525: ...set command simply type reset at the command line instead of ispf_reset Note Some standard built in commands conflict with ISPF emulation commands These conflicts in clude copy cut delete find hex mov...

Страница 526: ...tch the given search string ispf_find Find occurrences of the given search string in the current buffer ispf_flip Reverse the exclude status of lines ispf_hex Toggle display of the document in Hexadec...

Страница 527: ...in a file ispf_undo This command is identical to the undo command ISPF Line Commands The table below shows ISPF edit line commands that are supported in the ISPF emulation mode Enter line commands by...

Страница 528: ...ISPF Line Command First Expose one or more lines at the beginning of a block of excluded lines ISPF Line CommandI Insert one or more blank data entry lines ISPF Line Command Lowercase Convert all upp...

Страница 529: ...SPF Line Command Exclude Specify one or more lines to be hidden excluded ISPF Line Command Select Select a block of lines ISPF Line Command Documentation ISPF Line Labels label Usage label where label...

Страница 530: ...shifted is two There are two forms to these commands The single character forms or specifies that the line and the subsequent n 1 lines are to be shifted The two character block forms are placed on t...

Страница 531: ...hanged A column boundary line with one sign indicates a left boundary and no right boundary unbounded A column boundary with one sign indicates a single column boundary left and right bounds are same...

Страница 532: ...forms to this command The first form D n specifies that the line and the subsequent n 1 lines are to be deleted The second block form DD is placed on the first and last lines of the block to be delet...

Страница 533: ...ms to this command The first form LC n specifies that the line and the subsequent n 1 lines are to be converted The second block form LCLC or LCC is placed on the first and last lines of the block to...

Страница 534: ...Remarks Displays the contents of the mask used with the insert I and text entry TE line commands Normally when a line is inserted the line is initially blank By specifying an insert mask you can inse...

Страница 535: ...sequent n 1 lines are to be overlaid The second block form OO is placed on the first and last lines of the block to be overlaid You are allowed to specify multiple A B or O line commands to have the s...

Страница 536: ...Exclude ISPF Insert Tabs Ruler TABS or TABL Usage TABS TABL Remarks Displays the tab definition line After this line is inserted the marks may be moved in order to adjust the tab positions Note that...

Страница 537: ...This command does not support multiple lines See Also ISPF Line Command TJ split_insert_line ISPF Uppercase Lines UC UCC and UCUC for blocks Usage UC n Uppercase n lines starting with the line with t...

Страница 538: ..._exclude ispf_reset ISPF Line Command First ISPF Line Command Last ISPF Line Com mand Show ISPF Select Lines Z and ZZ for blocks Usage Z n Select n lines starting with the line with the command ZZ Sel...

Страница 539: ...mmands The table below shows ISPF primary commands that are not supported in the ISPF emulation mode The unsupported commands fall into two categories First some ISPF commands are made obsolete by mor...

Страница 540: ...t profile recovery Specify edit recovery options rmacro Save a recovery macro in the edit profile setundo Control the UNDO mode stats Generate library statistics version Set the version number in the...

Страница 541: ...rieval getting the next com mand line from the list ispf_retrieve_back Identical to the ispf_retrieve back command ispf_top Move cursor up to the top of the buffer ispf_up Move cursor up to the previo...

Страница 542: ...occurrences of X See Minimal versus Maximal Matching X Maximal match of zero or more occurrences of X X Maximal match of zero or one occurrences of X X n1 Match exactly n1 occurrences of X X n1 Maxima...

Страница 543: ...by the sub expression syntax X once this sub expression syntax is used This is the best way to make sure you have enough tagged expressions X Matches sub expression X but does not define a tagged expr...

Страница 544: ...at egorySpec uses the standard general categories specified by the Unicode consortium For example p L matches all letters p Lu matches all up percase letters See Unicode Category Specifica tions for R...

Страница 545: ...n whether the buffer is a DOS ASCII 13 10 or just ASCII 10 UNIX ASCII 10 Macintosh ASCII 13 or user defined ASCII file Use d10 if you want to match an ASCII 10 charac ter r Matches carriage return ASC...

Страница 546: ...responding to char The pre defined expressions are a A Za z0 9 Matches an alphanumeric char acter c A Za z Matches an alphabetic character b t Matches blanks d 0 9 Matches a digit f t Windows Matches...

Страница 547: ...ters d9 d32 Matches tab and space characters x9 x20 Matches tab and space characters p t Matches any three letter string starting with the let ter p and ending with the letter t Two possible matches a...

Страница 548: ...haracters in the Greek block SlickEdit Regular Expressions SlickEdit regular expressions are defined in the following table Table 11 14 SlickEdit Regular Expressions SlickEdit Regular Expression Defin...

Страница 549: ...re information dX Matches sub expression X and specifies to use tagged expression number d where 0 d 9 X Y Matches X or Y char set Matches any one of the characters specified by char set A dash charac...

Страница 550: ...atches all letters p Lu matches all up percase letters See Unicode Category Specifica tions for Regular Expressions P UnicodeCategorySpec Only valid in character set Matches characters not in UnicodeC...

Страница 551: ...CII 10 UNIX ASCII 10 Macintosh ASCII 13 or user defined ASCII file Use d10 if you want to match an ASCII 10 charac ter r Matches carriage return t Matches tab character b Matches backspace character f...

Страница 552: ...The predefined expressions are a A Za z0 9 Matches an alphanumeric char acter b t Matches blanks note that b is not like the Perl NET s c A Za z Matches an alphabetic character d 0 9 Matches a digit...

Страница 553: ...he backslash must prefix the colon charac ter t Matches tab and space characters 9 32 Matches tab and space characters x9 x20 Matches tab and space characters p t Matches any three letter string start...

Страница 554: ...ch of zero or more of any character ex cept newline This is the same as X Maximal match of zero or more occurrences of X X Maximal match of one or more occurrences of X X n1 Matches exactly n1 occurre...

Страница 555: ...ified by char set A dash character may be used to specify ranges The expression A Z matches any uppercase letter Backslash can be used inside the square brackets to define literal characters or define...

Страница 556: ...UnicodeCategorySpec For example P L matches all characters that are not letters This is equivalent to p L P Lu matches all charac ters that are not uppercase letters See Unicode Category Specification...

Страница 557: ...haracter f Matches form feed character od Matches any 2 byte DBCS character This escape is only valid in a match set od od matches any single byte character excluding end of line characters When used...

Страница 558: ...a floating number p A Za z f f Windows Matches a path p f f UNIX Matches a path q Matches a quoted string v A Za z_ A Za z0 9_ Matches a C variable w A Za z Matches a word Brief Regular Expression Exa...

Страница 559: ...followed by z Unicode Category Specifications for Regular Expressions The Unicode consortium standard regular expression categories are supported The syntax for specifying categories is p MainCategor...

Страница 560: ...rcase Ll Letter Lowercase Lt Letter Titlecase Lo Letter Other Mn Mark Non Spacing Mc Mark Spacing Combining Me Mark Enclosing Nd Number Decimal Digit Nl Number Letter No Number Other Pc Punctuation Co...

Страница 561: ...above syntax matches the characters in the block specified The following syntax matches all charac ters not in the block specified P IsBlockName The p and P notations may only be used inside a charac...

Страница 562: ...Expressions Range Block Name 0000 007F BasicLatin 0080 00FF Latin 1Supplement 0100 017F LatinExtended A 0180 024F LatinExtended B 0250 02AF IPAExtensions 02B0 02FF SpacingModifierLetters 0300 036F Com...

Страница 563: ...r 10A0 10FF Georgian 1100 11FF HangulJamo 1200 137F Ethiopic 13A0 13FF Cherokee 1400 167F UnifiedCanadianAboriginalSyllabics 1680 169F Ogham 16A0 16FF Runic 1780 17FF Khmer 1800 18AF Mongolian 1E00 1E...

Страница 564: ...0 245F OpticalCharacterRecognition 2460 24FF EnclosedAlphanumerics 2500 257F BoxDrawing 2580 259F BlockElements 25A0 25FF GeometricShapes 2600 26FF MiscellaneousSymbols 2700 27BF Dingbats 2800 28FF Br...

Страница 565: ...48F YiSyllables A490 A4CF YiRadicals AC00 D7A3 HangulSyllables D800 DB7F HighSurrogates DB80 DBFF HighPrivateUseSurrogates DC00 DFFF LowSurrogates E000 F8FF PrivateUse F900 FAFF CJKCompatibilityIdeogr...

Страница 566: ...ic 10330 1034F Gothic 10400 1044F Deseret 1D000 1D0FF ByzantineMusicalSymbols 1D100 1D1FF MusicalSymbols 1D400 1D7FF MathematicalAlphanumericSymbols 20000 2A6D6 CJKUnifiedIdeographsExtensionB 2F800 2F...

Страница 567: ......

Страница 568: ......

Отзывы: