Name | Modified | Size | Downloads / Week |
---|---|---|---|
README | 2013-01-27 | 1.3 kB | |
tisa-0.1.0.tar.gz | 2013-01-27 | 17.2 kB | |
Totals: 2 Items | 18.5 kB | 0 |
_______ _____ _____ |__ __|_ _|/ ____| /\ | | | | | (___ / \ | | | | \___ \ / /\ \ | | _| |_ ____) / ____ \ |_| |_____|_____/_/ \_\ tab indent - space align This program will correct source code so that tabs that incorrectly are used for alignment are replaced with a correct number og spaces as well as replacing spaces that are used for indentation with tabs. Example: Let's say the following is the input (where tabs are written as <-----> (or shorter)) int main(int argc, char *argv[]) { int<-><------>i; const int *<->p; puts("Hello world"); return 0; } Here tabs are used to align the comments and that is incorrect since the source code then looks wrong if viewed with a different tab setting than the origial editor. Also forcing a fixed number of spaces for indentation is wrong; each editor should be able to view the source code with his/her personal preference. Running the above program through tisa.pl would give the following result (again with tabs written as <------>): int main(int argc, char *argv[]) { <------>int i; <------>const int * p; <------>puts("Hello world"); <------>return 0; } There is no specific installation needed, just copy tisa.pl to somewhere in your $PATH.