# The text editor module

Features of the text editor window

The text editor module adds a simple text editor to KVIrc. You can open files by using the command editor.open.
Filename must be an absolute file path.
If no filename is specified , a "new file" will be created.
The editor has three working modes:
Normal , Cpp (for c source code , with syntax highlighting) and Html (with light syntax highlighting).
The plugin window has a lot of keyboard shortcuts:
Here goes the list:
CTRL+C : copy the selected text to clipboard.
CTRL+V : paste the clipboard contents to the current position in the file.
CTRL+X : copy & then remove the selection.
CTRL+M : switch mode.
CTRL+I : indent one level (only in Cpp mode).
CTRL+U : unindent one level (only in Cpp mode).
CTRL+O : comment out (only in Cpp mode).
CTRL+O+Shift : comment out (alternate) (only in Cpp mode).
CTRL+P : remove comment (only in Cpp mode).
CTRL+R : record/stop recording keystrokes.
CTRL+T : replay keystrokes.
CTRL+S : save file.
CTRL+A : save file as.
CTRL+F : show/hide the find widget.
CTRL+N : find next.
CTRL+H : find prev.
CTRL+B : find next treating the string to find as a regular expression.
CTRL+G : find prev (regular expression).
CTRL+J : replace the current selection.
CTRL+K : replace all the occurences in the file.
CTRL+L : replace all the occurences in the file (regular expression).
CTRL+Q : replace and find next.
CTRL+W : replace and find next (regular expression).
CTRL+E : replace all in selection.
CTRL+D : replace all in selection (regular expression).
I'm currently using this widget (inserted into a separate application) in Cpp mode to develop KVIrc. :)

Description
Creates a new text editor optionally loading the file [filename]. The features of the editor widget are described in the editor module documentation.

Main index, Module documentation index

KVirc 3.0.0 documentation
Generated by root at Thu Apr 29 12:41:05 2004