10.02.2013 Views

SlickEdit User Guide

SlickEdit User Guide

SlickEdit User Guide

SHOW MORE
SHOW LESS

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

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

XML/HTML FORMATTING<br />

You can also turn automatic formatting on and off through the language-specific Formatting Options<br />

screen: from the main menu, click Tools > Options, expand Languages and your language category, then<br />

select your language and click [Language] Formatting Options. In the Auto formatting options group<br />

box, select the default formatting scheme you want to use for this language, then enable/disable the<br />

content wrapping or tag layout options. Click the Configure Schemes button to open the XML/HTML<br />

Formatting Scheme Configuration dialog (see Working with Schemes).<br />

Enabling/Disabling for the Current Document<br />

Current document options are available so that you can turn off aspects of global formatting for just the<br />

current document. For example, if you have both aspects of HTML formatting enabled globally, but you<br />

need to edit an old HTML file and do not want automatic tag layout to occur, you can disable HTML Tag<br />

Layout for that specific file. The current document settings are remembered each time you open that file.<br />

To change XML or HTML formatting for just the current document, click Document > XML/HTML<br />

Formatting > Current Document Options, or use the xml_html_document_options command. The<br />

Current Document Options dialog is displayed.<br />

Select the Formatting scheme that you want applied, then check or uncheck the Auto formatting<br />

options that you want enabled or disabled. Click Configure Schemes if you want to modify or create a<br />

new scheme to apply to the current document.<br />

Global formatting must be enabled for the current file type in order for these options to be available. For<br />

example, see the two screen shots shown previously. The menu screen shot shows that global HTML<br />

formatting is enabled for Content Wrap only. This means that tag content for every HTML file that you<br />

create or open in <strong>SlickEdit</strong>® will be wrapped, but no Tag Layout settings will be applied. The second<br />

screen shot (the Current Document Options dialog) reflects that the global setting for Tag Layout is<br />

disabled. Therefore it cannot be enabled for the current document. To enable it for the current document,<br />

you would first need to enable the global setting by placing a check next to Document > XML/HTML<br />

Formatting > Enable HTML Formatting > Tag Layout. Then you can use the Current Document Options<br />

dialog to enable it for the current document.<br />

Working with Schemes<br />

A formatting scheme is comprised of any number of individually configurable XML or HTML tags and<br />

controls the formatting of your text when XML/HTML Formatting is enabled. You can create different<br />

schemes for use with either XML or HTML, and/or different schemes for use with different individual files.<br />

For example, you may want one scheme for HTML and a different scheme for XML. Or, you may want one<br />

scheme for creating new files and another for editing existing files.<br />

398 <strong>SlickEdit</strong>® <strong>User</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!