|
That works well! For those interested, registering an LPEX Editor / User Command of name = detab, class = com.ibm.lpex.samples.DetabCommand was all that was required (along with entering the command detab at the LPEX command line).
Do you think that it would be fairly easy to extend LPEX further by making the detab command run automatically whenever a source member is saved?
Thanks!
Mike
-----Original Message-----
From: adrian [mailto:stori@xxxxxxxxxx] Sent: Monday, December 15, 2008 2:07 PM
To: wdsci-l@xxxxxxxxxxxx
Subject: Re: [WDSCI-L] LPEX - converting tabs to spaces
You must register the sample "detab" command from Window > Preferences > LPEX Editor > User Commands. By default, the command uses the current tabs setting.
For more information on detab, enter this on any LPEX command line:
?detab
For help on the tabs parameter:
?tabs
Michael Jones wrote:
In WDSC 7, is there an easy way in LPEX to convert tabs to spaces when editing or saving the source member?
I'd like the source to be indented properly if someone views the source with SEU or another editor with different tab settings.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.