AppKit.TextKit.Formatter.XMLDescriptor.Define C# (CSharp) Method

Define() public method

Define this instance.
public Define ( ) : void
return void
		public override void Define ()
		{
			base.Define ();

			// Keywords
			// Keywords.Add("", new KeywordDescriptor(KeywordType.Keyword, KeywordColor, ""));
			Keywords.Add("xml", new KeywordDescriptor(KeywordType.Keyword, KeywordColor, "The XML prolog is optional. If it exists, it must come first in the document."));
			Keywords.Add("xsl", new KeywordDescriptor(KeywordType.Keyword, KeywordColor, "XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents."));
			Keywords.Add("xs", new KeywordDescriptor(KeywordType.Keyword, KeywordColor, "Defines an XML schema."));

			// Parameters
			// Keywords.Add("", new KeywordDescriptor(KeywordType.MethodParameters, MethodParameterColor, ""));
			Keywords.Add("version", new KeywordDescriptor(KeywordType.MethodParameters, MethodParameterColor, "Specifies the XML version."));
			Keywords.Add("encoding", new KeywordDescriptor(KeywordType.MethodParameters, MethodParameterColor, "Specifies the files encoding type."));
			Keywords.Add("xmlns", new KeywordDescriptor(KeywordType.MethodParameters, MethodParameterColor, "The namespace can be defined by an xmlns attribute in the start tag of an element."));

			// Define HTML formats
			Formats.Add (new FormatDescriptor ("<!--", "-->", CommentColor));
			Formats.Add(new FormatDescriptor ("\"","\"", StringLiteralColor));
			Formats.Add (new FormatDescriptor ("&", ";", PreprocessorDirectiveColor));
			Formats.Add (new FormatDescriptor ("<", ">", StatementColor));

		}