35. insertControlChar
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 35. insertControlChar

Parameter syntax:

    control_character

Inserts specified control character (newline, tab, etc) at caret position. The control character can be specified using its Java™ notation, for example: "\n" or "\u000a" for the newline character.

This command will not work if the view of the element in which the control character is to be inserted rejects such characters.

- In the tree view, only views of elements having `xml:space`=`preserve` accept control characters.

- In the styled view, only views of elements having CSS property "`white-space: pre;`" accept control characters.

Note that pasting control characters using the paste command always work.

Prev | Up | Next
34. insertCharSequence | Home | 36. insertControlCharOrSplit