Home uh-lab

Psion Home Page

Links to other interesting sites
Send me an email

 

bottom of page

Selfmade OPL Programs for Psion5: IndentOPL

to Psion page

Written by u.hornstein

Description

  • Automatisches Formatieren von OPL-Programmen und Makros
  • This macro (for the Psion Macro5 system by P. Nicholas) redesigns all indentations in your OPL code. It must be used within the built-in OPL editor. IT WILL SAVE YOU A LOT OF TIME: no code-formatting with the keyboard any more.
  • Place the cursor in the area before the first character of any line. Let us call the area LEFT of the cursor "X", which may be a nullstring or some spaces.
  • The following lines will all be indented by X, plus a defineable "indentation unit" (usually 2 spaces or a tab character) for each additional level of indentation after keywords like
    APP, PROC, IF, DO, WHILE, VECTOR.
  • The corresponding keywords
    ENDA, ENDP, ENDIF, UNTIL, ENDWH, ENDV
    reduce the indentation level accordingly.
  • All these keywords as well as keywords like LOCAL, GLOBAL or CLOSE are rewritten in UPPERcase. Labels are positioned without indentation.
  • If started on a PROC line: the whole file can be processed by pressing the "w" key.
  • "h" shows a help file, "p" lets yout edit some parameters.
  • Any other key pressed stops the macro.

Here are some screen dumps

  • before using the Macro:
    S5 screen dump before using IndentOPL
  • after using the Macro:
    S5 screen dump after using IndentOPL

 

Legal stuff

This macro is  EXCHANGEWARE:
If you write shareware or payware and if you use IndentOPL during any stage of the production, consider sending me a free register code of your product. The judgement on this up to you.
For freeware authors and for personal use this software is free. However, you may send me an email if you like the program or send me your improvements.
Please do not distribute altered versions of this software.

MAKE BACKUPS OF YOUR CODE BEFORE USING THIS MACRO!
NO WARRANTIES WHATSOEVER FROM THE AUTHOR!!
IndentOPL. Copyright 2000, 2004, 2006 by u.hornstein, Germany.

Download

Please include your field of application (delete as applicable) :

  • freeware
  • shareware
  • commercial SW
  • unpublished SW

and add the software titles if you want.

Changes

New in V1.58 from 18.9.2006:
a) Bug removed: Long lines >255 characters are no longer truncated
b) LinesProcessed& and SumLinesProcessed& in all terminating messages.

New in V1.57 from 10.05.2005:
Shift+blank = ° is recognized
Short variables that are subsets of up/downlist keywords are now recognized. New ini file.
Thanks to Jaap Lameris for bug reports

New in V1.55 from 03.11.2004:
After errors: User can select if Help is shown
Code for OPLprotection; no stop after parameter store
Key Ct+I=Instruction used instead of Ct+H [=delete key] = Help
CHR$(13) Bug (appeared after copy/paste from CD manual) solved
New Help design
DO : UNTIL and WHILE : ENDWH -in-one-line bug
Esc to quit;
ini file, parameter editing
smart rem/REM handling
User editable area: ENDPappearance%
Switch off Remote link

V1.2  from 30. Sept. 2000

to Psion page

top of page

Stand / Last Revision: 18.09.06

[off] PsionVisitors
   since 05.01.04
[off] PageHits
   since 03.07.05

.