FF User Tool: Format Selection to Columns

Started by Eddy Van Esch, November 28, 2013, 08:30:21 AM

Previous topic - Next topic

Eddy Van Esch

How to install in FF:
- Compile the below source code (or copy the precompiled exe in a folder)
- In FireFly: "Tools / Edit User Tools"
- "New"
- Enter "Column Formatter" as tool name
- Enter the name of the executable ("ColForm_NoGUI.exe" ?)
- No parameters required
- Enter an accelerator key combination
- Hit "Done"

How to use in FF:
- Select a few lines of code in the Code Editor
- Hit the accelerator key combination (or  Menu: "Tools / Column Formatter")
- Selected text is fetched and formatted, columns aligned.

This:


     DIM a as long 'This is comment
       DIM abc         as string      'Note that the REM statement
DIM         test as double 'is not recognised as start of comment


becomes:


Dim a    As Long    'This is comment
Dim abc  As String  'Note that the REM statement
Dim test As Double  'is not recognised as start of comment


Eddy

Rolf Brandt

Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)