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.
ftp://ftp.mathworks.com/pub/contrib/emacs_add_ons
See the readme.txt
file for instructions on how to configure tlc-mode
.
TLC code is much more readable using the color-coded syntax feature in Emacs.
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
etags --regex='/[ \t]*\%function[ \t]+.+/' --language=none *.tlc
in the directory where your .tlc
files are located. The etags
command is located the emacs_root
/bin
directory.
![]() | TLC Function Library Error Messages |