TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: `DANIEL H. LUECKING`
date: 1998-05-01 02:48:00
subject: Re: tse pro 2.5 c formatting

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.