Next: InsertString, Up: Editing Commands
Syntax: InsertChar [
code]
Abbreviation: IC
inserts a character whose ascii code is code at the current cursor position. code must always be different from 0. All the currently active preferences options (insert, word wrapping, auto indent, et cetera) are applied.
If the optional argument code is not specified, you can enter it on the input line, the default being the last inserted character.
Note that inserting a line feed (10) is completely different from inserting
a line with InsertLine
. InsertChar 10
puts the control char
<Control>-J in the text at the current cursor position.
See InsertLine.
Note also that SaveMacro
converts InsertChar
commands into
a possibly smaller number of InsertString
commands.
This makes macros easier to read and edit. See SaveMacro.