Code Editor For Parameter Values

For adding or editing parameter values a Code Editor is provided.

It offers the following features for various text formats (JSON, XML, HTML/Handlebars):

  • Line numbers
  • Syntax Highlighting
  • Syntax Validation
  • Find and Replace (Ctrl-F and Ctrl-H)
  • Bracket Matching
  • Folding
  • Theming


Example:


Example with syntax error:

Options

To configure the editor click on the cog wheel button at the top right :

This will open a small dialog that will let you select a theme and change the font and tab size.

Configuration changes are stored for the logged on user under Admin\Parameters\Editor.


Keyboard Shortcuts

Line Operations

Windows/LinuxMacAction
Ctrl-DCommand-DRemove line
Alt-Shift-DownCommand-Option-DownCopy lines down
Alt-Shift-UpCommand-Option-UpCopy lines up
Alt-DownOption-DownMove lines down
Alt-UpOption-UpMove lines up
Alt-DeleteCtrl-KRemove to line end
Alt-BackspaceCommand-BackspaceRemove to linestart
Ctrl-BackspaceOption-Backspace, Ctrl-Option-BackspaceRemove word left
Ctrl-DeleteOption-DeleteRemove word right
---Ctrl-OSplit line

Selection

Windows/LinuxMacAction
Ctrl-ACommand-ASelect all
Shift-LeftShift-LeftSelect left
Shift-RightShift-RightSelect right
Ctrl-Shift-LeftOption-Shift-LeftSelect word left
Ctrl-Shift-RightOption-Shift-RightSelect word right
Shift-HomeShift-HomeSelect line start
Shift-EndShift-EndSelect line end
Alt-Shift-RightCommand-Shift-RightSelect to line end
Alt-Shift-LeftCommand-Shift-LeftSelect to line start
Shift-UpShift-UpSelect up
Shift-DownShift-DownSelect down
Shift-PageUpShift-PageUpSelect page up
Shift-PageDownShift-PageDownSelect page down
Ctrl-Shift-HomeCommand-Shift-UpSelect to start
Ctrl-Shift-EndCommand-Shift-DownSelect to end
Ctrl-Shift-DCommand-Shift-DDuplicate selection
Ctrl-Shift-P---Select to matching bracket

Go to

Windows/LinuxMacAction
LeftLeft, Ctrl-BGo to left
RightRight, Ctrl-FGo to right
Ctrl-LeftOption-LeftGo to word left
Ctrl-RightOption-RightGo to word right
UpUp, Ctrl-PGo line up
DownDown, Ctrl-NGo line down
Alt-Left, HomeCommand-Left, Home, Ctrl-AGo to line start
Alt-Right, EndCommand-Right, End, Ctrl-EGo to line end
PageUpOption-PageUpGo to page up
PageDownOption-PageDown, Ctrl-VGo to page down
Ctrl-HomeCommand-Home, Command-UpGo to start
Ctrl-EndCommand-End, Command-DownGo to end
Ctrl-LCommand-LGo to line
Ctrl-DownCommand-DownScroll line down
Ctrl-Up---Scroll line up
Ctrl-P---Go to matching bracket
---Option-PageDownScroll page down
---Option-PageUpScroll page up

Find/Replace

Windows/LinuxMacAction
Ctrl-FCommand-FFind
Ctrl-HCommand-Option-FReplace
Ctrl-KCommand-GFind next
Ctrl-Shift-KCommand-Shift-GFind previous

Folding

Windows/LinuxMacAction
Alt-L, Ctrl-F1Command-Option-L, Command-F1Fold selection
Alt-Shift-L, Ctrl-Shift-F1Command-Option-Shift-L, Command-Shift-F1Unfold
Alt-0Command-Option-0Fold all
Alt-Shift-0Command-Option-Shift-0Unfold all

Other

Windows/LinuxMacAction
TabTabIndent
Shift-TabShift-TabOutdent
Ctrl-ZCommand-ZUndo
Ctrl-Shift-Z, Ctrl-YCommand-Shift-Z, Command-YRedo
Ctrl-,Command-,Show the settings menu
Ctrl-/Command-/Toggle comment (English keyboard)
Ctrl-#Command-#Toggle comment (German keyboard)
Ctrl-Shift-UCtrl-Shift-UChange to lower case
Ctrl-UCtrl-UChange to upper case
InsertInsertOverwrite
Delete---Delete