PlanetSquires Forums

Support Forums => General Board => Topic started by: Eddy Van Esch on November 28, 2013, 08:30:21 AM

Title: FF User Tool: Format Selection to Columns
Post by: Eddy Van Esch on November 28, 2013, 08:30:21 AM
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


Title: Re: FF User Tool: Format Selection to Columns
Post by: Rolf Brandt on November 28, 2013, 06:07:22 PM
Great - thanks for that one, Eddy.

Rolf