Source actions

  • Document+Source+Locks / Unlocks the XML Tags : Disable / Enable editing of XML tags

  • Document+SourceTo lower case: Converts the selection's content to lower case characters.

  • Document+SourceTo upper case: Converts the selection's content to upper case characters.

  • Document+SourceCapitalize lines: Converts to upper case the first character of every selected line.

  • 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+Escape Selection ... : Escapes a range of characters by replacing them with the corresponding character entities.

    Figure 4.47. Escape selection

    Escape selection

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

    Figure 4.48. Unescape selection

    Unescape selection

  • Document+Source+Indent selection (Ctrl + I):Corrects the indentation of the selected block of lines.

  • Document+Source+Format and Indent Element (Ctrl + I): 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">
  • Triple click on an element or processing instruction - If the triple click is done before the start tag of an element or after the end tag of an element then all the element is selected by the triple click action. If it is done after the start tag or before the end tag then only the element content without the start tag and end tag is selected.

  • Document+SourceTo Lower Case : The action works on the selection converting all upper case letters to lower case.

  • Document+SourceTo Upper Case : The action works on the selection converting all lower case letters to upper case.

  • Document+SourceCapitalize lines: It capitalizes the first letter found on every new line that is selected. Only the first letter is affected, the rest of the line remains the same. If the first character on the new line is not a letter then no changes are made.

  • Document+SourceJoin and normalize: The action works on the selection. It joins the lines by replacing the line separator with a single space character. It also normalizes the whitespaces by replacing a sequence of such characters with a single space.