<oXygen/> XML Editor User Guide

XML editor specific actions

<oXygen/> offers a group of actions for working on single XML elements. They are available from the Document menu and the context menu of the main editor panel.

Select actions

  • Document+Select->Select element: Selects the entire current element;

  • Document+Select->Select content: Selects the current element, excluding the start tag and end tag;

  • Document+Select->Select attributes: Selects all the attributes of the current element;

[Note]Note

The Select actions are enabled when the caret is positioned inside a tag name.

Source actions

  • Document+Source->Shift Right (Tab): Shifts the selected block to the right;

  • Document+Source->Shift Left (Shift+Tab): Shifts the selected block to the left;

  • Document+Source->Sélection d'échappement ... :Escapes a range of characters by replacing them with the corresponding character entities.

  • Document+Source->Unescape Selection ...: Replaces the character entities with the corresponding characters;

  • Document+Source->Indenter la sélection : Corrects the indentation of the selected block of lines.

  • Document+Source->Pretty-Print Element: Pretty prints the element that surrounds the caret position;

  • Document+Source->Import entities list : Shows a dialog that allows you to select a list of files as sources for external entities. The DOCTYPE section of your document will be updated with the chosen entities. For instance, if choosing the file chapter1.xml, and chapter2.xml, the following section is inserted in the DOCTYPE:

    <!ENTITY chapter1 SYSTEM "chapter1.xml">
    <!ENTITY chapter2 SYSTEM "chapter2.xml">

XML document actions

  • Document+Document XML->Sélection non-commentée : Retire les crochets de commentaire <!-- --> du commentaire actuellement sélectionné.

  • Document+Document XML->Commenter la sélection : Place des crochets de commentaire <!-- --> autour de la sélection actuelle ou à la position du curseur.

  • Document+Document XML->Aller à la balise correspondante (Ctrl+Shift+G) : Déplace le curseur jusqu'à la balise de fermeture qui correspond à celle d'ouverture, ou vice versa.

XML Refactoring actions

  • Document+XML Refactoring->Entourer avec <balise> (Ctrl+/): Le texte sélectionné dans l'éditeur est marqué avec les balises d'ouverture et de fermeture de la dernière action 'Entourer'.

  • Document+XML Refactoring->Entourer avec balise... (Ctrl+E): Le texte sélectionné dans l'éditeur est entouré par une balise d'ouverture et une balise de fermeture.

  • Document+XML Refactoring->Entourer avec <![CDATA[]]> : Le texte sélectionné dans l'éditeur est entouré par une balise CDATA.

  • Document+XML Refactoring->Renommer élément (Alt+Shift+R) : l'élément à la position du curseur et les élément ayant le même nom peuvent être renommés suivant les options dans le dialogue Renommer.

  • Document+XML Refactoring->Diviser élément (Ctrl+Alt+D) : divise l'élément à la position du curseur en deux éléments identiques. Le curseur doit se trouver dans l'élément.

  • Document+XML Refactoring->Joindre les éléments (Ctrl+Alt+J) : joint les éléments à gauche et à droite du curseur. Les éléments doivent avoir les mêmes nom, attributs et valeurs d'attribut.

  • Document+XML Refactoring->Effacement les étiquettes (Ctrl+Alt+X): Efface l'étiquette de début et étiquette d'extrémité de l'élément courant