public void StructureScript()
{
this._scintilla.UndoRedo.BeginUndoAction();
foreach (Line line in this._scintilla.Lines)
{
int indent = this.GetLineIndent(line);
if (indent != -1)
{
line.Indentation = 0; // so even if the indent is the same thereafter it will replace " " by "\t"
line.Indentation = indent * this._scintilla.Indentation.TabWidth;
}
}
this._scintilla.UndoRedo.EndUndoAction();
}