Target Language Compiler | ![]() |
The Emacs Editor
If you're editing TLC files, we recommend trying to use Emacs. You can get a copy of Emacs from http://www.gnu.org.
The MathWorks has created a tlc-mode
for Emacs that gives automatic indenting and color-coded syntax highlighting of TLC files. You can obtain tlc-mode
(and matlab-mode
) from our Web site.
See the readme.txt
file for instructions on how to configure tlc-mode
.
Color-coding syntax in Emacs makes TLC code is much more readable.
Getting Started
Ctrl+x Ctrl+f file.tlc <return> |
Loads a file into an Emacs buffer for editing. |
Ctrl+x Ctrl+s |
Saves the file in the current buffer. |
Ctrl+x Ctrl+c
|
Exits Emacs. |
Ctrl stands for control key. For example, to load a file into Emacs, hold down the control key and type x
, followed by f
with the control key still pressed, then release the control key and type the name of a file followed by return. A tutorial is available from the Emacs Help menu.
Creating a TAGS File
If you are familiar with Emacs TAGS, you can create a TAGS file for TLC files by invoking
in the Unix directory where your .tlc
files are located. The etags
command is located the emacs_root/bin
directory. Users of Windows NT must type
![]() | Using TLC with Emacs |