Ejemplo n.º 1
0
        public static void SetXmlFormat(String name)
        {
            SyntaxDefinition def = GetDefinition(name);

            if (def != null)
            {
                def.IsXmlFormat = true;
            }
        }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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;
            }
        }