24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Editing Documents | 73• Smart Enter - The Smart Enter option inserts an empty line between the start and end tags. If Enter is pressed betweena start and an end tag the action places the cursor in an indented position on the empty line between the lines thatcontain the start and end tag.• Triple click - A triple click with the left mouse button selects a different region of text of the current documentdepending on the position of the click in the document:• if the click position is inside a start tag or an end tag then the entire element enclosed by that tag is selected• if the click position is immediately after a start tag or immediately before an end tag then the entire content ofthe element enclosed by that tag is selected, including all the child elements but excluding the start tag and theend tag of the element• otherwise the triple click selects the entire current line of textSyntax Highlight Depending on Namespace PrefixThe syntax highlight scheme of an <strong>XML</strong> file type allows the configuration of a color per each type of token which canappear in an <strong>XML</strong> file. Distinguishing between the <strong>XML</strong> tag tokens based on the namespace prefix brings additionalvisual help in editing some <strong>XML</strong> file types. For example in XSLT stylesheets elements from different namespaces likeXSLT, XHTML, XSL:FO or XForms are inserted in the same document and the editor panel can become cluttered.Marking tags with different colors based on the namespace prefix allows easier identification of the tags.Figure 36: Example of Coloring <strong>XML</strong> Tags by PrefixEditing XHTML DocumentsXHTML documents with embedded CSS, JS, PHP, and JSP scripts are rendered with dedicated coloring schemes. Youcan customize them in the Window > Preferences > <strong>Author</strong> > Editor > Syntax Highlight preferences page.Editing CSS StylesheetsThis section explains the features of the editor for CSS stylesheets and how these features should be used.Validating CSS Stylesheets<strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> includes a built-in CSS validator integrated with the general validation support, bringingthe usual validation features to CSS stylesheets.The CSS properties accepted by the validator are the ones included in the current CSS profile that is selected in the CSSvalidation preferences. The profile CSS 3 with <strong>Oxygen</strong> extensions includes all the CSS 3 standard properties and theCSS extensions specific for <strong>Oxygen</strong> that can be used in <strong>Author</strong> mode. That means all <strong>Oxygen</strong> specific extensions areaccepted in a CSS stylesheet by the built-in CSS validator when this profile is selected.You can add custom CSS properties with a file called customProperties.xml located in the folder[<strong>Oxygen</strong>-install-folder]/endorsed/builtin/css-validator. The custom properties and their valuesare accepted by the CSS validator and are listed in the content completion window when editing a CSS stylesheet. For

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

Saved successfully!

Ooh no, something went wrong!