JavaScript Editor Text Mode

Oxygen XML Editor allows you to create and edit JavaScript files and assists you with useful features such as syntax highlight, content completion, and outline view. To enhance your editing experience, you can select entire blocks (parts of text delimited by brackets) by double-clicking somewhere inside the brackets.

Figure: JavaScript Editor Text Mode

The contextual menu of the JavaScript editor offers the following actions:
Cut
Allows you to cut fragments of text from the editing area.
Copy
Allows you to copy fragments of text from the editing area.
Paste
Allows you to paste fragments of text in the editing area.
Toggle comment
Allows you to comment a line or a fragment of the JavaScript document you are editing. This option inserts a single comment for the entire fragment you want to comment.
Toggle line comment
Allows you to comment a line or a fragment of the JavaScript document you are editing. This option inserts a comment for each line of the fragment you want to comment.
Go to matching bracket
Use this option to find the closing, or opening bracket, matching the bracket at the caret position. When you select this option, Oxygen XML Editor moves the caret to the matching bracket, highlights its row, and decorates the initial bracket with a rectangle.
Note: A rectangle decorates the opening, or closing bracket which matches the current one at all times.
Compare
Select this option to open the Diff Files dialog and compare the file you are editing with a file you choose in the dialog.
Open
Allows you to select one of the following actions:
  • Open File at Caret - select this action to open the source of the file located at the caret position
  • Open File at Caret in System Application - select this action to open the source of the file located at the caret position with the application that the system associates with the file
Folding
Allows you to select one of the following actions:
Toggle Fold
Toggles the state of the current fold.
Collapse Other Folds (Ctrl (Meta on Mac OS)+NumPad /)
Folds all the elements except the current element.
Collapse Child Folds (Ctrl (Meta on Mac OS)+NumPad .)
Folds the elements indented with one level inside the current element.
Expand Child Folds
Unfolds all child elements of the currently selected element.
Expand All (Ctrl (Meta on Mac OS)+NumPad *)
Unfolds all elements in the current document.
Source
Allows you to select one of the following actions:
To Lower Case
Converts the selection content to lower case characters.
To Upper Case
Converts the selection content to upper case characters.
Capitalize Lines
Converts to upper case the first character of every selected line.
Join and Normalize Lines
Joins all the rows you select to one row and normalizes the content.
Insert new line after
Inserts a new line after the line at the caret position.