/// <summary> /// Splits the source code into language regions. /// </summary> /// <param name="code">The code.</param> /// <param name="index">The index in the code to start at.</param> /// <param name="length">The number of characters from <paramref name="index"/> to process.</param> /// <returns>A list of language regions.</returns> public IEnumerable <LanguageRegion> SplitRegions(string code, int index, int length) { return(MultilanguageHelper.SplitRegions(code, index, length, "[xml]", "[/xml]", true, "xmlLiteral", typeof(XmlLiteralFormattingInfo), Types, false)); }
public IEnumerable <LanguageRegion> SplitRegions(string code, int index, int length) { return(MultilanguageHelper.SplitRegions(code, index, length, "<%=", "%>", false, null, typeof(VisualBasicFormattingInfo), Types, true)); }