コード例 #1
0
        private static Exception Error(IXmlLineInfo lineInfo, string message)
        {
            if (lineInfo != null)
            {
                return(new HighlightingDefinitionInvalidException(HighlightingLoader.FormatExceptionMessage(message, lineInfo.LineNumber, lineInfo.LinePosition)));
            }

            return(new HighlightingDefinitionInvalidException(message));
        }
コード例 #2
0
 public static XhstdThemeDefinition LoadDefinition(XmlReader reader, bool skipValidation)
 {
     reader = HighlightingLoader.GetValidatingReader(reader, true, skipValidation ? null : SchemaSet);
     reader.Read();
     return(ParseDefinition(reader));
 }