示例#1
0
        public static void SetXmlFormat(String name)
        {
            SyntaxDefinition def = GetDefinition(name);

            if (def != null)
            {
                def.IsXmlFormat = true;
            }
        }
示例#2
0
        public static void SetCommentCharacters(String name, String singleLineComment, String multiLineCommentStart, String multiLineCommentEnd)
        {
            SyntaxDefinition def = GetDefinition(name);

            if (def != null)
            {
                def.SingleLineComment     = singleLineComment;
                def.MultiLineCommentStart = multiLineCommentStart;
                def.MultiLineCommentEnd   = multiLineCommentEnd;
            }
        }
示例#3
0
        public static void SetCommentCharacters(String name, String copyFrom)
        {
            SyntaxDefinition def       = GetDefinition(name);
            SyntaxDefinition sourceDef = GetDefinition(copyFrom);

            if (def != null && sourceDef != null)
            {
                def.SingleLineComment     = sourceDef.SingleLineComment;
                def.MultiLineCommentStart = sourceDef.MultiLineCommentStart;
                def.MultiLineCommentEnd   = sourceDef.MultiLineCommentEnd;
            }
        }