SourceWriter.ViewController.ReformatText C# (CSharp) Method

ReformatText() public method

Re-run syntax highlighting for the entire text of the document.
public ReformatText ( bool updateLanguage ) : void
updateLanguage bool If set to true, the language descriptor will be reloaded as well.
return void
		public void ReformatText(bool updateLanguage) {

			// Redefine language to get any preference changes?
			if (updateLanguage) {
				Formatter.Language.Define ();
				ConfigureEditor ();
			}

			// Re-highlight all text.
			Formatter.Reformat ();
		}