Mono.TextEditor.TextEditorData.CreateImmutable C# (CSharp) Method

CreateImmutable() public static method

Creates the a text editor data object which document can't be changed. This is useful for 'view' only documents.
The Document itself is very fast because it uses a special case buffer and line splitter implementation. Additionally highlighting is turned off as default.
public static CreateImmutable ( string input, bool suppressHighlighting = true ) : TextEditorData
input string
suppressHighlighting bool
return TextEditorData
		public static TextEditorData CreateImmutable (string input, bool suppressHighlighting = true)
		{
			return new TextEditorData (TextDocument.CreateImmutableDocument (input, suppressHighlighting));
		}
	}