<http://forum.pspad.com/read.php?f=2&i=10229&t=10190>
----------------------------------------------------------------
I thank you a lot :-)
I've tried, it's ok.
But I have a suggestion for this function: the possibility of define a
list of characters (more than two) and what to do for each character: add
or delete an indent before the character or at the next row.
In my example, I could define:
- ")" -> add an indent at the next row
- "{" -> delete an indent before the "{"
- "}" -> delete an indent before the "}"
And PSPad will indent automatically like this:
if($c==true)
echo($c);
Or
if($c==true)
{
echo($c);
}
Besides, other people can define the auto-indent they want.
--
PSPad freeware editor http://www.pspad.com