Saving and Deleting Schemes
In the XML/HTML Formatting Scheme Configuration dialog, modified schemes are denoted by asterisks
around the name (for example,
*html*
). To save a modified scheme, right-click on it and select
Save
Scheme Changes
. Alternatively, when you close the XML/HTML Formatting dialog, you are prompted
whether to save modified schemes.
To delete a selected scheme, right-click and choose
Delete Scheme
.
Working with Tags
As described previously, formatting schemes are comprised of individual tags with associated formatting
settings. For example, in HTML, you may want start and end <div> tags to be on separate lines above/be-
low the text, while start/end style tags (such as <b> and <i>) are formatted inline with the text.
In order to configure formatting for individual tags, you must first define a scheme (see
Creating
Schemes
), or you can use one of the default schemes (see
Default Schemes
). The Tags column of the
XML/HTML Formatting dialog shows a list of tags associated with the selected scheme.
Default Tags
For all schemes, a
(default)
tag is included. It defines the settings that are applied to tags that are not
specifically listed in the Tags list. It can also be used as a basis for other tags when you use the
Match
tag style of
option on the
General
tab.
The default settings for the
(default)
tag are based on a block-style 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 the Preview area at the bottom of the dialog
to see how tags based on the
(default)
tag will be formatted in your code.
Base Tags
Base tags are used to define groups of tags with similar behaviors. By creating a base tag and associat-
ing a set of actual tags with that tag, you can configure that set of tags by changing the settings for the
base tag. The sample HTML schemes included with SlickEdit
®
Core include two base tags:
(block)
and
(semi-block)
. When creating your own base tags, be sure to use unique tag names that are not used in
formatting to make it easy to spot them.
The
(block)
tag is useful as a base tag for tags like <div>, where you want the start and end tags on sep-
arate lines from the content and aligned vertically. By default, this style indents nested tags and content
according to your extension indent style, and content is wrapped to a fixed right margin at column 80. Be-
cause this is a common style in HTML, the
(block)
tag has the same settings as the (default) tag.
The
(semi-block)
tag is useful as a base tag for tags such as <h1>, where you want the start and end
tags on the same line as the content. The default settings for
(semi-block)
are the same as for
(block)
,
except for the start and end tags.
Use the Preview area at the bottom of the dialog to see how tags based on these base tags will be
Working with Tags
284
Summary of Contents for Corev3.3 for Eclipse
Page 1: ...Think Slick Corev3 3 for Eclipse...
Page 2: ......
Page 3: ...SlickEdit Core v3 3 for Eclipse...
Page 5: ......
Page 6: ......
Page 14: ...xii...
Page 20: ...xviii...
Page 22: ...xx...
Page 23: ...Chapter 1 Introduction 1...
Page 41: ...Chapter 3 User Interface 19...
Page 61: ...Chapter 4 User Preferences 39...
Page 80: ...BODY BODY HTML HTMLEOF Restoring Settings on Startup 58...
Page 82: ...60...
Page 83: ...Chapter 5 Context Tagging 61...
Page 97: ...Chapter 6 Editing Features 75...
Page 124: ...Code Templates 102...
Page 238: ...Figure 6 49 Test Parsing Configuration Example 1 C Refactoring 216...
Page 241: ...Figure 6 51 Test Parsing Configuration Example 3 Reviewing Refactoring Changes 219...
Page 250: ...228...
Page 251: ...Chapter 7 Language Specific Editing 229...
Page 328: ...306...
Page 329: ...Chapter 8 Tools and Utilities 307...
Page 350: ...328...
Page 351: ...Chapter 9 Macros and Macro Programming 329...
Page 360: ...338...
Page 361: ...Chapter 10 SlickEdit Core Dialogs 339...
Page 375: ...Find and Replace View 353...
Page 491: ...Chapter 11 Appendix 469...
Page 567: ......
Page 568: ......