Article View: comp.os.os2.programmer
Article #1167Re: Enhanced Editor & Rexx
From: Larry Margolis
Date: Thu, 20 Aug 1992 19:57
Date: Thu, 20 Aug 1992 19:57
31 lines
2068 bytes
2068 bytes
In <13100001@tisdec.tis.tandy.com> kevinl@tisdec.tis.tandy.com writes: > > Is there any way to get the Enhanced editory to stop changing > the keys and tabs on me when it finds out that the file I'm editing is > a Rexx program (.cmd file)? I really hate the way it messes up the enter > key. I don't mind it adding the 'else', or 'then' key words, but I hate > the keys! You can turn off syntax expansion with the command EXPAND OFF. > Also, is there any way I can get my options/preferences stuff > to take effect? Right now I have my tabs set up for 4 spaces. It doesn't > seem to care. It inserts tabs, but they are eight space tabs. Unfortunately, the tabs and margins for the languages with syntax assist are hard-coded. One way to automatically take care of both would be via a profile - create a PROFILE.ERX containing the following: /* EPM profile */ if translate(right(arg(1),4))='.CMD' then do /* If a .CMD file, */ 'expand off' /* turn off syntax expansion */ 'postme tabs 4' /* 'postme' delays the processing ... */ end /* Do */ (This should be in your PATH or EPMPATH.) Then enable profile processing by entering the command Profile On in the EPM command dialog, then select Options / Save Options. Note that the profile is only executed once, when an edit window is opened, so this will not apply when you're adding a .CMD file to an existing edit window. Larry Margolis, MARGOLI@YKTVMV (Bitnet), margoli@watson.IBM.com (Internet)
Technical Details
Message-ID:
<1992Aug20.195713.6320@watson.ibm.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!newsShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!news From: Larry Margolis <margoli@watson.ibm.com> Subject: Re: Enhanced Editor & Rexx Sender: news@watson.ibm.com (NNTP News Poster) Message-ID: <1992Aug20.195713.6320@watson.ibm.com> Date: Thu, 20 Aug 1992 19:57:13 GMT Reply-To: margoli@watson.ibm.com Disclaimer: This posting represents the poster's views, not necessarily those of IBM Nntp-Posting-Host: lamail.watson.ibm.com Organization: The Village Waterbed Lines: 31