public static void SetXmlFormat(String name) { SyntaxDefinition def = GetDefinition(name); if (def != null) { def.IsXmlFormat = true; } }
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; } }
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; } }