Mono.TextEditor.TextDocument.CreateImmutableDocument C# (CSharp) Method

CreateImmutableDocument() public static method

public static CreateImmutableDocument ( string text, bool suppressHighlighting = true ) : TextDocument
text string
suppressHighlighting bool
return TextDocument
		public static TextDocument CreateImmutableDocument (string text, bool suppressHighlighting = true)
		{
			return new TextDocument (new ImmutableText (text), new PrimitiveLineSplitter ()) {
				SuppressHighlightUpdate = suppressHighlighting,
				Text = text,
				ReadOnly = true
			};
		}
TextDocument