public static string Indent(int tabs, string code) { string sep = "\n"; for (int n = 0; n < tabs; n++) sep += "\t"; code = sep + string.Join (sep, code.Split ('\n')); return code.Substring (1).TrimEnd ('\t'); }