home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
text
/
edit
/
FrexxEdA.lha
/
FrexxEd
/
fpl
/
SimpleIndent.FPL
< prev
next >
Wrap
Text File
|
1995-08-06
|
352b
|
19 lines
export void Indent()
{
int counter=0;
int column=ReadInfo("byte_position");
int chara;
string output="\n";
while (counter<column) {
chara=GetChar(counter);
if (chara==' ' || chara=='\t')
output=joinstr(output, itoc(chara));
else
break;
counter++;
}
Output(output);
}
AssignKey("Indent();", "Shift 'Return'");