From: "Daniel H. Luecking"
On Thu, 30 Apr 1998, Nick Allan wrote:
> Hi all
> I need to modify the c formatting feature of tse pro 2.5 and I'm not quite
> sure how to go about it.
> I need the formatter to do something like the following
> type typetest
> integer is i
> integer is l
> end type
>
> I can get it to do the indenting to the right, what I need it to do is
> move the end type so that it is under the type statement
> same with if, else, end if
> etc
Do you want this to happen as you enter the lines, or do you want to
format a block already typed in? If the former, then the language
support does something like this. If you execute a on a line
beginning with a keyword, the next lines are indented by one tab stop.
If you backspace on an empty line, a tableft is executed. So after, the
line "integer is l" you type and you are lined up
under the type statement.
If you are not dealing with C (and this doesn't look like C) you can
edit the tse.ui. You need to tell the macros what extension should
trigger language mode, and what keywords are associated with that
language, following the pattern in tse.ui for C and other common
languages.
Dan Luecking Dept. of Mathematical Sciences
luecking@comp.uark.edu University of Arkansas
http://comp.uark.edu/~luecking/ Fayetteville, AR 72101
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)
|