I would like to indent a code string with tabulation. The simple rule is that I must append a tabulation after each line feed inside braces "{}".
My trouble is for nested braces... here I need many tabulation to be exactly the number of nested braces.
Do you think it is possible to do with a regex replace?