# tcl(9)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## SYNOPSIS

tcl, tk - TCL Programming language templates

## FILES

hktcl.emf - TCL/TK programming language hook definition
tcl.etf - TCL/TK programming language template file

## EXTENSIONS

.tcl, .tk - TCL/TK file

## MAGIC STRINGS

^#![ \t]*/.*wish

MicroEmacs 2009 recognizes the magic string on the first line of the file used to locate the executable. The tcl files may be extension less and are still recognized.

## DESCRIPTION

The tcl provides hilighting and automatic formatting features, in addition to a number of tools to handle the file type.

General Editing

On creating a new file, a new header is automatically included into the file. time(2m) is by default enabled, allowing the modification time-stamp to be maintained in the header.

Hilighting

The hilighting features allow commands, variables, logical, preprocessor definitions, comments, strings and characters of the language to be differentiated and rendered in different colors.

Auto Layout

The indentation mechanism is enabled which performs automatic layout of the text. restyle-region(3) and restyle-buffer(3) are available to reformat (re-layout) selected sections of the buffer, or the whole buffer, respectively.

Tags

A C-tags file may be generated within the editor using the Tools -> Tcl-Tools -> Create Tag File. find-tag(2) takes the user to the file using the tag information.

Folding and Information Hiding

Generic folding is enabled within the C and C++ files. The folds occur about braces {...} located on the left-hand margin. collapse-all(3) (un)folds all regions in the file, collapse-current(3) (un)folds the current region. Note that folding does not operate on K&R style code.

Short Cuts

The short cut keys used within the buffer are:-

C-c C-c - Comment out the current line.
C-c C-d - Uncomment the current line.
C-c C-e - Comment to the end of the line with stars (*).
A-C-i - Restyle the current region.
f2 - (un)fold the current region
f3 - (un)fold all regions

## SEE ALSO

collapse-all(3), collapse-current(3), find-tag(2), indent(2), restyle-buffer(3), restyle-region(3), tcltags(3f), time(2m).

Supported File Types

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>