ARCed.Scripting.ScriptEditorForm.StructureScript C# (CSharp) Метод

StructureScript() публичный Метод

Normalizes indentation of the script according to standard Ruby conventions
public StructureScript ( ) : void
Результат void
		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();
		}