- May
- 399
- 4
Hello everyone
In TCC options | advanced I have my TAB Width set to 3. However, if I TYPE eRen.tcclib, one of my library functions, which uses tabs for indentation, it looks like it uses 8. How is the Tab Width setting used? Am I doing something wrong? I expected the tabs to be of the set width.
Thanks,
Michael
In TCC options | advanced I have my TAB Width set to 3. However, if I TYPE eRen.tcclib, one of my library functions, which uses tabs for indentation, it looks like it uses 8. How is the Tab Width setting used? Am I doing something wrong? I expected the tabs to be of the set width.
Thanks,
Michael
Code:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: eRen - rename in place with command line edit
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
eRen {
setlocal
GetOpt %*
:: Turn on Debugging if -D provided
if defined OPTION_D set DEBUG=1
iff %PARAM_0 EQ 1 then
DebugPrint "Filename Given: %PARAM_1"
:: Make sure the provided file exists
iff not exist %PARAM_1 then
EchoColor RED "eRen Usage Error - '%PARAM_1' Does Not Exist"
gosub Usage
goto EndProgram
endiff
set NewFileName=%@filename[%@Replace[\,,%PARAM_1]]
eset NewFileName
DebugPrint "New Filename: %NewFileName"
DebugPrint "Rename Command: '%PARAM_1' '%NewFileName'"
ren "%PARAM_1" "%NewFileName"
else
echocolor RED "eRen Usage Error - One Filename Parameter Needed"
gosub Usage
goto EndProgram
endiff
:EndProgram
DebugPrint "Cleaning up and exiting..."
unset NewFileName
if defined OPTION_D unset DEBUG
endlocal
quit
:Usage
echo.
echo Usage: eRen [-D] filename
echo -D: Turns on eRen's Debug Mode
return
}