Original text:
some text,20,Number,
and more text,False,Boolean,
text,0xFF,Number | String,
just another line of text,8,Array,
alignColumns(right = 0):
some text ,20 ,Number ,
and more text ,False,Boolean ,
text ,0xFF ,Number | String,
just another line of text,8 ,Array ,
alignColumns(right = 1):
some text, 20, Number,
and more text,False, Boolean,
text, 0xFF,Number | String,
just another line of text, 8, Array,
alignColumns(sticky = 1):
some text, 20, Number,
and more text, False,Boolean,
text, 0xFF, Number | String,
just another line of text,8, Array,
Note: Python Script for Notepad++
Plugin is required.
- Copy
AlignColumns.py
to%APPDATA%\Notepad++\plugins\Config\PythonScript\scripts\
orC:\path\to\npp\plugins\Config\PythonScript\scripts\
if you havedoLocalConf.xml
inC:\path\to\npp\
- In Notepad++ select the lines you want to align
- Restart Notepad++
- From top menu choose:
Plugins
->Python Script
->Scripts
->AlignColumns
- In the prompt box input the desired delimited and hit the
Return
key
It is a good idea to assign a keyboard shortcut to this script. Before assigning a shortcut you need to add this script to the menu:
- From menu open
Plugins
->Python Script
->Configuration
- Select
AlignColumns.py
from list ofUser Scripts
- Click
Add
from aboveMenu item
- Click
Ok
to close the dialog - Restart Notepad++
- Open
Settings
->Shrotcut mapper...
->Plugin commands
- Select
AlignColumns
from the list and clickModify
- Choose a shortcut (I preffer
Ctrl
+Alt
+A
) - Press
Ok
,Close
, and you are done!
- Add menu entries for each alignment mode
- Add more alignment modes
I've switched to Sublime Text, which has a great plugin for this job - AlignTab, thus I have no interest in improving this script any more!