Expandtabs.py
Join the DZone community and get the full member experience.
Join For FreeConvert tabs to spaces.
from sys import stdin, stdout
stdout.write(stdin.read().expandtabs(4))
To use in SciTE:
command.name.3.*=Expand Tabs
command.mode.3.*=savebefore:yes,groupundo:yes,replaceselection:yes,quiet:yes
command.input.3.*=$(CurrentSelection)
command.3.*=python c:\dev\expandtabs.py
Opinions expressed by DZone contributors are their own.
Comments