Download Oxygen XML Editor 16.1

Transcript
Oxygen XML Editor | Editing Documents | 331
Figure 181: CSS Outline View
The selectors presented in this view can be quickly found using the key search field. When you press a sequence of
character keys while the focus is in the view, the first selector that starts with that sequence is selected automatically.
Folding in CSS Stylesheets
In a large CSS stylesheet document, some styles can be collapsed so that only the needed styles remain in focus. The
same folding features available for XML documents are also available in CSS stylesheets.
Note: To enhance your editing experience, you can select entire blocks (parts of text delimited by brackets) by
double-clicking after an opening or in front of a closing bracket.
Formatting and Indenting CSS Stylesheets (Pretty Print)
If the edited CSS stylesheet becomes unreadable because of the bad alignment of the text lines, the format and indent
operation available for XML documents is also available for CSS stylesheets. It works in the same way as for XML
documents and is available as the same menu and toolbar action.
Minifying CSS Stylesheets
Minification (or compression) of a CSS document is the practice of removing unnecessary code without affecting the
functionality of the stylesheet.
To minify a CSS, invoke the contextual menu anywhere in the edited document and choose the Minify CSS... action.
Oxygen XML Editor opens a dialog that allows you to:
•
•
set the location of the resulting CSS
place each style rule on a new line
After pressing OK, Oxygen XML Editor performs the following actions:
•
•
all spaces are normalized (all leading and trailing spaces are removed, while sequences of white spaces are replaced
with single space characters)
all comments are removed
Note: The CSS minifier relies heavily upon the W3C CSS specification. If the content of the CSS file you are
trying to minify does not conform with the specifications, an error dialog will pop-up, listing all errors encountered
during the processing.