
Appearance of an M-File — Making Files More Readable
Indenting
Automatic Indenting
Youcansetanind
enting preference so that program control
entries are auto
matically indented to make reading loops, such as
while/end stat
ements, easier. To do so, select File > Preferences >
Editor/Debugg
er > Language,andselectaLanguage, for example,
M.
For Indenting f
or Enter key, select Smart indenting or Block indent,
and then click
OK.UseNo indent instead if you want to indent manually.
For m ore infor
mation about indenting preferences, see the in the online
documentati
on. Specify the indenting size and other options using in the
online docum
entation.
Manual Indenting
You can manua
lly apply smart indenting to selected lines — select the lines
and then sele
ct Smart Indent from the Text menu, or right-click and select
it from the c
ontext menu. This feature indents lines that start with keyword
functions o
r that follow lines containing certain keyword functions. Smart
indenting c
an help you to follow the code sequence.
To move the c
urrent or selected lines further to the left, select Decrease
Indent from
the Text menu. To m ove the current or selected lines further to
the right,
select Increase Indent from the Text menu.
You can als
o indent a line by pressing the Tab key at the start of a line.
Or select a
line or group or lines and press the Tab key. Press Shift+Tab
to decrea
se the indent for the selected lines. This w orks differently if you
select th
eEditor/DebuggerTab preference for Emacs-style Tab key smart
indentin
g — when you position the cursor in any line or select a group of
lines an
dpressTab, the lines indent according to smart indenting practices.
For more
informa tion about m anual indenting, see in the online
documen
tation.
Functio
n Indenting
If you se
lect the language preference for smart indent, you can select from
three in
denting options when you enter a subfunction or a nested function
6-29
Commentaires sur ces manuels