### 2024-12-20 星期五更新
------ #### SuperDesign V3.0.2412.2001 - *.[新增]新增程序更新日志设置和自动发布功能。 - *.[修复]修复Post数据格式不正确时双击文本框会导致软件闪退的BUG。
This commit is contained in:
1 parent
03bcb8c5fd
commit
993f1ca1a9
349 files changed
+81977
-13873
No files matched your search
+22
-44
@@ -54,30 +54,30 @@ namespace VPKSoft.ScintillaLexers.HelperClasses
|
||||
/// <summary>
|
||||
/// A list of currently supported lexers by this library.
|
||||
/// </summary>
|
||||
public static readonly List<Tuple<LexerEnumerations.LexerType, string, Lexer,string>> LexerTypeNameList = new List<Tuple<LexerEnumerations.LexerType, string, Lexer,string>>(
|
||||
public static readonly List<Tuple<LexerEnumerations.LexerType, string,string>> LexerTypeNameList = new List<Tuple<LexerEnumerations.LexerType, string,string>>(
|
||||
new[]
|
||||
{
|
||||
Tuple.Create(LexerEnumerations.LexerType.Unknown, "text", Lexer.Null,"Text"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Cs, "cs", Lexer.Cpp, "C#"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Cpp, "cpp", Lexer.Cpp, "C++"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Xml, "xml", Lexer.Xml, "XML"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Text, "text", Lexer.Null, "Text"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Nsis, "nsis", (Lexer)SCLEX_NSIS, "Nsis"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.InnoSetup, "inno", (Lexer)SCLEX_INNOSETUP, "InnoSetup"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.SQL, "sql", Lexer.Xml, "SQL"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Batch, "batch", Lexer.Batch, "Batch"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Pascal, "pascal", Lexer.Pascal, "Pascal"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.PHP, "php", Lexer.Html, "PHP"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.WindowsPowerShell, "powershell", Lexer.PowerShell, "PowerShell"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.INI, "ini", Lexer.Properties, "INI"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Python, "python", Lexer.Python, "Python"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.YAML, "yaml", (Lexer)SCLEX_YAML, "YAML"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Java, "java", Lexer.Cpp, "Java"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Css, "css", Lexer.Css, "Css"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.VbDotNet, "vb", Lexer.Vb, "VB.Net"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Json, "json", Lexer.Json, "Json"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.HTML, "html", Lexer.Html, "HTML"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.JavaScript, "javascript", Lexer.Cpp, "JavaScript"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Unknown, "text","Text"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Cs, "cs", "C#"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Cpp, "cpp", "C++"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Xml, "xml", "XML"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Text, "text", "Text"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Nsis, "nsis", "Nsis"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.InnoSetup, "inno", "InnoSetup"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.SQL, "sql", "SQL"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Batch, "batch", "Batch"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Pascal, "pascal", "Pascal"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.PHP, "php", "PHP"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.WindowsPowerShell, "powershell", "PowerShell"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.INI, "ini", "INI"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Python, "python", "Python"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.YAML, "yaml", "YAML"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Java, "java", "Java"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Css, "css", "Css"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.VbDotNet, "vb", "VB.Net"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.Json, "json", "Json"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.HTML, "html", "HTML"),
|
||||
Tuple.Create(LexerEnumerations.LexerType.JavaScript, "javascript", "JavaScript"),
|
||||
});
|
||||
|
||||
/// <summary>
|
||||
@@ -90,27 +90,5 @@ namespace VPKSoft.ScintillaLexers.HelperClasses
|
||||
var result = LexerTypeNameList.FirstOrDefault(f => f.Item1 == lexerType);
|
||||
return result == null ? "text" : result.Item2;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the lexer XML used in Notepad++'s XML style files.
|
||||
/// </summary>
|
||||
/// <param name="lexer">The Scintilla lexer enumeration value.</param>
|
||||
/// <returns>The name of the lexer used in Notepad++'s XML style files if successful; otherwise "text".</returns>
|
||||
public static string GetLexerXmlName(Lexer lexer)
|
||||
{
|
||||
var result = LexerTypeNameList.FirstOrDefault(f => f.Item3 == lexer);
|
||||
return result == null ? "text" : result.Item2;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of the lexer by a given <see cref="LexerEnumerations.LexerType"/> enumeration.
|
||||
/// </summary>
|
||||
/// <param name="lexerType">Type of the lexer.</param>
|
||||
/// <returns>A <see cref="Lexer"/> matching the given <see cref="LexerEnumerations.LexerType"/> enumeration.</returns>
|
||||
public static Lexer GetLexerByLexerType(LexerEnumerations.LexerType lexerType)
|
||||
{
|
||||
var result = LexerTypeNameList.FirstOrDefault(f => f.Item1 == lexerType);
|
||||
return result?.Item3 ?? Lexer.Null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user