public ISyntaxHighlighter CreateHighlighter(IDocument document, string fileName)
		{
			var def = HighlightingManager.Instance.GetDefinitionByExtension(Path.GetExtension(fileName));
			var doc = document.GetService(typeof(TextDocument)) as TextDocument;
			if (def == null || doc == null)
				return null;
			var baseHighlighter = new DocumentHighlighter(doc, def.MainRuleSet);
			var highlighter = new CustomizableHighlightingColorizer.CustomizingHighlighter(CustomizedHighlightingColor.FetchCustomizations(def.Name), baseHighlighter);
			return new DocumentSyntaxHighlighter(document, highlighter, def.Name);
		}
        public ISyntaxHighlighter CreateHighlighter(IDocument document, string fileName)
        {
            var def = HighlightingManager.Instance.GetDefinitionByExtension(Path.GetExtension(fileName));
            var doc = document.GetService(typeof(TextDocument)) as TextDocument;

            if (def == null || doc == null)
            {
                return(null);
            }
            var baseHighlighter = new DocumentHighlighter(doc, def.MainRuleSet);
            var highlighter     = new CustomizableHighlightingColorizer.CustomizingHighlighter(CustomizedHighlightingColor.FetchCustomizations(def.Name), baseHighlighter);

            return(new DocumentSyntaxHighlighter(document, highlighter, def.Name));
        }