Edit Windows

<< Click to Display Table of Contents >>

Navigation:  TCC > Commands > TCEDIT >

Edit Windows

The TCEDIT edit windows allow you to edit and debug Windows text files (INI files, batch files, etc.).

 

If a file in a tab edit window has been modified but not yet saved, the tab title will be prefixed with a *. When the file is saved, the * is removed.

 

If you are using TCC syntax, you can get help for the currently selected (highlighted) command / variable / function by pressing Ctrl-F1, or right-clicking the mouse and selecting Help from the context menu. You can also hover the mouse over a TCC variable name, and the IDE will pop up a tooltip with the current value. If you hover the mouse over a TCC internal command name, the IDE will pop up a tooltip with the command syntax.

 

You can block select in the edit window by holding down the Alt key while selecting text with the left mouse button.

 

The edit window supports multiple selections at one time. You can select additional text by holding down the Ctrl key while dragging with the mouse. Multiple selections are added to the clipboard in order with no delimiting characters. For block selections, the line end is added after each line of text. Block selections are always copied from top to bottom, not in the order of selection.

 

Margins

 

There are two possible margins on the left of the edit window:

 

The line number (selectable by the "Options / Display Line Numbers" menu option).

The Fold margin (selectable by the "Options / Display Fold Margin" menu option), which will display a - for blocks that can be collapsed to a single line (DO, IFF, and SWITCH commands, and command groups). When a block is collapsed, the Fold margin will display a +. Left clicking in the Fold margin will toggle the fold state.

 

Syntax Coloring

 

TCEDIT will select the syntax lexer (colorization) based on the file extension:

 

.bat CMD (or optionally TCC)
.btm TCC
.cmd CMD (or optionally TCC)
.cssCSS
.htm HTML
.htmlHTML
.luaLua
.php PHP
.plPerl
.ps1PowerShell
.pyPython
.rbRuby
.shBash shell
.sqlSQL
.tclTcl/Tk
.vbsVBScript
.xmlXML

 

The edit window toolbar (which is configurable by clicking on the rightmost down arrow), has a number of icons to control debugging. Each has a tooltip for quick reference:

 

NewCreate a new file in a new tab window.
OpenOpen an existing file in a new tab window.
SaveSave the current file.
PrintPrint the current file.
CutCopy the highlighted selection to the clipboard and delete it from the file.
Copy Copy the highlighted selection to the clipboard.
PasteCopy the contents of the clipboard to the current cursor location.
DeleteDelete the highlighted selection.
UndoUndo the last edit.
RedoRestore the last Undo.
FindSearch for text.
File PropertiesDisplays information on the current file.
Start New ShellStart another copy of TCC (this is useful if you need to perform some tasks while debugging a file.)
HelpDisplay the online help.