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.

<strong>XML</strong> Refactoring ActionsThe following refactoring actions are available while editing an <strong>XML</strong> document:•context menu of current editor > <strong>XML</strong> Refactoring > Surround with tag... (Alt+Shift+E) ( (Cmd+Alt+Eon Mac OS)) - Allows you to choose a tag that encloses a selected portion of content. If there is no selection, thestart and end tags are inserted at the caret position. The caret is placed:• between the start and end tag, if the Cursor position between tags option is set;• at the end of the start tag, in an insert-attribute position, if the Cursor position between tags option is not set.•context menu of current editor > <strong>XML</strong> Refactoring > Surround with (Alt+Shift+/) ( (Cmd+Alt+/on Mac OS)) - Similar in behavior with the Surround with tag... action, except that it inserts the last tag used bythe Surround with tag... action.• context menu of current editor > <strong>XML</strong> Refactoring > Rename element (Alt+Shift+R) ( (Cmd+Alt+R onMac OS)) - the element from the caret position and the elements that have the same name as the current elementcan be renamed according with the options from the Rename dialog.context menu of current editor > <strong>XML</strong> Refactoring > Rename prefix (Alt+Shift+P) ( (Cmd+Alt+P on MacOS)) - the prefix of the element from the caret position and the elements that have the same prefix as the currentelement can be renamed according with the options from the Rename dialog.Selecting the Rename current element prefix option, the application will recursively traverse the current elementand all its children.For example, to change the xmlns:p1="ns1" association existing in the current element to xmlns:p5="ns1",just select this option and press OK. If the association xmlns:p1="ns1" is applied on the parent of the currentelement, then <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> will introduce a new declaration xmlns:p5="ns1" in the currentelement and will change the prefix from p1 to p5. If p5 is already associated in the current element with anothernamespace, let's say ns5, then a dialog showing the conflict will be displayed. Pressing the OK button, the prefixwill be modified from p1 to p5 without inserting a new declaration xmlns:p5="ns1". On Cancel no modificationis made.Selecting the Rename current prefix in all document option, the application will apply the change on the entiredocument.To apply the action also inside attribute values one must check the Rename also attribute values that start withthe same prefix checkbox.•context menu of current editor > <strong>XML</strong> Refactoring > Split element - Split the element from the caret positionin two identical elements. The caret must be inside the element.•context menu of current editor > <strong>XML</strong> Refactoring > Join elements (Alt+Shift+F) ( (Cmd+Alt+F on MacOS)) - Joins the left and right elements relative to the current caret position. The elements must have the same name,attributes and attributes values.•context menu of current editor > <strong>XML</strong> Refactoring > Delete element tags (Alt+Shift+,) ( (Cmd+Alt+, onMac OS)) - Deletes the start and end tag of the current element.Smart EditingThe following helper actions are available in the <strong>XML</strong> editor:Editing Documents | 72• Closing tag auto-expansion - If you want to insert content into an auto closing tag like deleting the / charactersaves some keystrokes by inserting a separate closing tag automatically and placing the cursor between the start andend tags: • Auto-rename matching tag - When you edit the name of the start tag, <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> will mirror-editthe name of the matching end tag. This feature can be controlled from the Content Completion option page.• Auto-breaking the edited line - The Hard line wrap option breaks the edited line automatically when its lengthexceeds the maximum line length defined for the pretty-print operation.• Indent on Enter - The Indent on Enter option indents the new line inserted when Enter is pressed.

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

Saved successfully!

Ooh no, something went wrong!