Hello Willy,
As i am not confident with regexp, so i have tried with a simple class to handle code indentation.
The result is here, if you need:
https://gist.github.com/partageit/869fa0fbf9f89582d5f0
David
Yes, it is not simple 🙂
A simple solution is maybe to remove first white char (space or \t) of every lines until at least one line first char is not a white char.
For example:
__a
____b
______c
becomes in the first iteration:
_a
___b
_____c
and finally:
a
__b
____c
David