Releases: smdn/Smdn.LibHighlightSharp
Smdn.LibHighlightSharp.Bindings version 4.2.0
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2022-12-09 Merge branch 'artifact-highlight-4.2' into artifact-highlight-v4_2_0_0-ubuntu.22.04-x64
- 2022-12-09 Merge branch 'artifact-highlight-4.2' into artifact-highlight-v4_2_0_0-osx-x64
- 2022-12-09 add artifact libhighlight-v4_2_0_0.dylib (artifact-highlight-v4_2_0_0-osx-x64)
- 2022-12-09 add artifact libhighlight-v4_2_0_0.so highlight-v4_2_0_0.dll (artifact-highlight-v4_2_0_0-ubuntu.22.04-x64)
- 2022-12-09 add artifact libhighlight-v4_2_0_0.so (artifact-highlight-v4_2_0_0-ubuntu.20.04-x64)
- 2022-12-09 add bindings for highlight-4.2
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings-net6.0.apilist.cs b/doc/api-list/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings-net6.0.apilist.cs
index f18be7c..dc14731 100644
--- a/doc/api-list/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings-net6.0.apilist.cs
@@ -1,361 +1,361 @@
-// Smdn.LibHighlightSharp.Bindings.dll (Smdn.LibHighlightSharp.Bindings-4.1.0)
+// Smdn.LibHighlightSharp.Bindings.dll (Smdn.LibHighlightSharp.Bindings-4.2.0)
// Name: Smdn.LibHighlightSharp.Bindings
-// AssemblyVersion: 4.1.0.0
-// InformationalVersion: 4.1.0+c5225b95a11a58361191b557ed7ccea7cbaad8c9
+// AssemblyVersion: 4.2.0.0
+// InformationalVersion: 4.2.0+463866dca31214584f7d2126dc1a0e73717494c2
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
using System;
using Smdn.LibHighlightSharp.Bindings;
namespace Smdn.LibHighlightSharp {
public static class VersionInformations {
public static Version BindingsVersion { get; }
public static string NativeLibraryFileName { get; }
public static string NativeLibraryName { get; }
public static Version NativeLibraryVersion { get; }
}
}
namespace Smdn.LibHighlightSharp.Bindings {
public enum LSResult : int {
CMD_ERROR = 3,
INIT_BAD_PIPE = 1,
INIT_BAD_REQUEST = 2,
INIT_OK = 0,
}
public enum LoadResult : int {
LOAD_FAILED = 1,
LOAD_FAILED_LUA = 3,
LOAD_FAILED_REGEX = 2,
LOAD_OK = 0,
}
public enum OutputType : int {
BBCODE = 9,
ESC_ANSI = 5,
ESC_TRUECOLOR = 7,
ESC_XTERM256 = 6,
HTML = 0,
LATEX = 3,
ODTFLAT = 11,
PANGO = 10,
RTF = 4,
SVG = 8,
TEX = 2,
XHTML = 1,
}
public enum ParseError : int {
BAD_BINARY = 8,
BAD_INPUT = 1,
BAD_OUTPUT = 2,
BAD_STYLE = 4,
PARSE_OK = 0,
}
public enum State : int {
DIRECTIVE = 6,
DIRECTIVE_END = 19,
DIRECTIVE_STRING = 7,
EMBEDDED_CODE_BEGIN = 25,
EMBEDDED_CODE_END = 26,
ESC_CHAR = 5,
ESC_CHAR_END = 18,
IDENTIFIER_BEGIN = 23,
IDENTIFIER_END = 24,
KEYWORD = 13,
KEYWORD_END = 22,
LINENUMBER = 8,
ML_COMMENT = 4,
ML_COMMENT_END = 17,
NUMBER = 2,
NUMBER_END = 15,
SL_COMMENT = 3,
SL_COMMENT_END = 16,
STANDARD = 0,
STRING = 1,
STRING_END = 14,
STRING_INTERPOLATION = 10,
STRING_INTERPOLATION_END = 21,
SYMBOL = 9,
SYMBOL_END = 20,
SYNTAX_ERROR = 11,
SYNTAX_ERROR_MSG = 12,
_EOF = 103,
_EOL = 102,
_REJECT = 101,
_TESTPOS = 105,
_UNKNOWN = 100,
_WS = 104,
}
public enum WrapMode : int {
WRAP_DEFAULT = 2,
WRAP_DISABLED = 0,
WRAP_SIMPLE = 1,
}
public class CodeGenerator : IDisposable {
public static void deleteInstance(CodeGenerator inst) {}
public static CodeGenerator getInstance(OutputType type) {}
protected bool swigCMemOwn;
protected virtual void Dispose(bool disposing) {}
public void Dispose() {}
~CodeGenerator() {}
public void clearPersistentSnippets() {}
public void disableTrailingNL(int flag) {}
public void exitLanguageServer() {}
public bool formattingDisabled() {}
public bool formattingIsPossible() {}
public ParseError generateFile(string inFileName, string outFileName) {}
public string generateString(string input) {}
public string generateStringFromFile(string inFileName) {}
public string getBaseFont() {}
public string getBaseFontSize() {}
public bool getFragmentCode() {}
public virtual string getHoverTagClose() {}
public virtual string getHoverTagOpen(string hoverText) {}
public bool getIsolateTags() {}
public bool getKeepInjections() {}
public int getLineNumberWidth() {}
public bool getNumberWrappedLines() {}
public bool getOmitVersionComment() {}
public string getPluginScriptError() {}
public SWIGTYPE_p_std__vectorT_std__string_t getPosTestErrors() {}
public bool getPrintLineNumbers() {}
public bool getPrintZeroes() {}
public virtual string getStyleDefinition() {}
public string getStyleInputPath() {}
public string getStyleName() {}
public string getStyleOutputPath() {}
public string getSyntaxCatDescription() {}
public string getSyntaxDescription() {}
public string getSyntaxEncodingHint() {}
public string getSyntaxLuaError() {}
public SyntaxReader getSyntaxReader() {}
public string getSyntaxRegexError() {}
public string getThemeCatDescription() {}
public float getThemeContrast() {}
public string getThemeDescription() {}
public string getThemeInitError() {}
public string getTitle() {}
public bool getValidateInput() {}
public bool initIndentationScheme(string indentScheme) {}
public LSResult initLanguageServer(string executable, SWIGTYPE_p_std__vectorT_std__string_t options, string workspace, string syntax, int delay, int logLevel) {}
public bool initPluginScript(string script) {}
public bool initTheme(string themePath) {}
public bool initTheme(string themePath, bool loadSemanticStyles) {}
public bool isHoverProvider() {}
public bool isSemanticTokensProvider() {}
public LoadResult loadLanguage(string langDefPath) {}
public LoadResult loadLanguage(string langDefPath, bool embedded) {}
public void lsAddHoverInfo(bool hover) {}
public bool lsAddSemanticInfo(string fileName, string suffix) {}
public void lsAddSyntaxErrorInfo(bool error) {}
public bool lsCloseDocument(string fileName, string suffix) {}
public bool lsOpenDocument(string fileName, string suffix) {}
public bool printExternalStyle(string outFile) {}
public virtual bool printIndexFile(SWIGTYPE_p_std__vectorT_std__string_t fileList, string outPath) {}
public bool printPersistentState(string outFile) {}
public string readUserStyleDef() {}
public bool requiresTwoPassParsing() {}
public void resetSyntaxReaders() {}
public void setBaseFont(string fontName) {}
public void setBaseFontSize(string fontSize) {}
public void setEOLDelimiter(char delim) {}
public virtual void setESCCanvasPadding(uint arg0) {}
public virtual void setESCTrueColor(bool arg0) {}
public void setEncoding(string encodingName) {}
public void setFilesCnt(uint cnt) {}
public void setFragmentCode(bool flag) {}
public virtual void setHTMLAnchorPrefix(string arg0) {}
public virtual void setHTMLAttachAnchors(bool arg0) {}
public virtual void setHTMLClassName(string arg0) {}
public virtual void setHTMLEnclosePreTag(bool arg0) {}
public virtual void setHTMLInlineCSS(bool arg0) {}
public virtual void setHTMLOrderedList(bool arg0) {}
public virtual void setHTMLUseNonBreakingSpace(bool arg0) {}
public void setIncludeStyle(bool flag) {}
public void setIsolateTags(bool flag) {}
public void setKeepInjections(bool flag) {}
public void setKeyWordCase(SWIGTYPE_p_StringTools__KeywordCase keyCase) {}
public virtual void setLATEXBeamerMode(bool arg0) {}
public virtual void setLATEXNoShorthands(bool arg0) {}
public virtual void setLATEXPrettySymbols(bool arg0) {}
public virtual void setLATEXReplaceQuotes(bool arg0) {}
public void setLineNumberWidth(int w) {}
public void setMaxInputLineCnt(uint cnt) {}
public void setNumberWrappedLines(bool flag) {}
public void setOmitVersionComment(bool flag) {}
public void setPluginParameter(string param) {}
public void setPreformatting(WrapMode lineWrappingStyle, uint lineLength, int numberSpaces) {}
public void setPrintLineNumbers(bool flag) {}
public void setPrintLineNumbers(bool flag, uint startCnt) {}
public void setPrintZeroes(bool flag) {}
public virtual void setRTFCharStyles(bool arg0) {}
public virtual void setRTFPageColor(bool arg0) {}
public virtual void setRTFPageSize(string arg0) {}
public virtual void setSVGSize(string arg0, string arg1) {}
public void setStartingInputLine(uint begin) {}
public void setStyleCaching(bool flag) {}
public void setStyleInputPat...
Smdn.LibHighlightSharp.Bindings version 4.1.0
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2022-12-09 Merge branch 'artifact-highlight-4.1' into artifact-highlight-v4_1_0_0-ubuntu.22.04-x64
- 2022-12-09 Merge branch 'artifact-highlight-4.1' into artifact-highlight-v4_1_0_0-osx-x64
- 2022-12-09 add artifact libhighlight-v4_1_0_0.so highlight-v4_1_0_0.dll (artifact-highlight-v4_1_0_0-ubuntu.22.04-x64)
- 2022-12-09 add artifact libhighlight-v4_1_0_0.dylib (artifact-highlight-v4_1_0_0-osx-x64)
- 2022-12-09 add artifact libhighlight-v4_1_0_0.so (artifact-highlight-v4_1_0_0-ubuntu.20.04-x64)
- 2022-12-09 add bindings for highlight-4.1
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings-net6.0.apilist.cs b/doc/api-list/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings-net6.0.apilist.cs
index 73eda78..f18be7c 100644
--- a/doc/api-list/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings-net6.0.apilist.cs
@@ -1,361 +1,361 @@
-// Smdn.LibHighlightSharp.Bindings.dll (Smdn.LibHighlightSharp.Bindings-4.0.0)
+// Smdn.LibHighlightSharp.Bindings.dll (Smdn.LibHighlightSharp.Bindings-4.1.0)
// Name: Smdn.LibHighlightSharp.Bindings
-// AssemblyVersion: 4.0.0.0
-// InformationalVersion: 4.0.0+a2e4bcedc158a01b4422726864946ed4c60e668d
+// AssemblyVersion: 4.1.0.0
+// InformationalVersion: 4.1.0+c5225b95a11a58361191b557ed7ccea7cbaad8c9
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
using System;
using Smdn.LibHighlightSharp.Bindings;
namespace Smdn.LibHighlightSharp {
public static class VersionInformations {
public static Version BindingsVersion { get; }
public static string NativeLibraryFileName { get; }
public static string NativeLibraryName { get; }
public static Version NativeLibraryVersion { get; }
}
}
namespace Smdn.LibHighlightSharp.Bindings {
public enum LSResult : int {
CMD_ERROR = 3,
INIT_BAD_PIPE = 1,
INIT_BAD_REQUEST = 2,
INIT_OK = 0,
}
public enum LoadResult : int {
LOAD_FAILED = 1,
LOAD_FAILED_LUA = 3,
LOAD_FAILED_REGEX = 2,
LOAD_OK = 0,
}
public enum OutputType : int {
BBCODE = 9,
ESC_ANSI = 5,
ESC_TRUECOLOR = 7,
ESC_XTERM256 = 6,
HTML = 0,
LATEX = 3,
ODTFLAT = 11,
PANGO = 10,
RTF = 4,
SVG = 8,
TEX = 2,
XHTML = 1,
}
public enum ParseError : int {
BAD_BINARY = 8,
BAD_INPUT = 1,
BAD_OUTPUT = 2,
BAD_STYLE = 4,
PARSE_OK = 0,
}
public enum State : int {
DIRECTIVE = 6,
DIRECTIVE_END = 19,
DIRECTIVE_STRING = 7,
EMBEDDED_CODE_BEGIN = 25,
EMBEDDED_CODE_END = 26,
ESC_CHAR = 5,
ESC_CHAR_END = 18,
IDENTIFIER_BEGIN = 23,
IDENTIFIER_END = 24,
KEYWORD = 13,
KEYWORD_END = 22,
LINENUMBER = 8,
ML_COMMENT = 4,
ML_COMMENT_END = 17,
NUMBER = 2,
NUMBER_END = 15,
SL_COMMENT = 3,
SL_COMMENT_END = 16,
STANDARD = 0,
STRING = 1,
STRING_END = 14,
STRING_INTERPOLATION = 10,
STRING_INTERPOLATION_END = 21,
SYMBOL = 9,
SYMBOL_END = 20,
SYNTAX_ERROR = 11,
SYNTAX_ERROR_MSG = 12,
_EOF = 103,
_EOL = 102,
_REJECT = 101,
_TESTPOS = 105,
_UNKNOWN = 100,
_WS = 104,
}
public enum WrapMode : int {
WRAP_DEFAULT = 2,
WRAP_DISABLED = 0,
WRAP_SIMPLE = 1,
}
public class CodeGenerator : IDisposable {
public static void deleteInstance(CodeGenerator inst) {}
public static CodeGenerator getInstance(OutputType type) {}
protected bool swigCMemOwn;
protected virtual void Dispose(bool disposing) {}
public void Dispose() {}
~CodeGenerator() {}
public void clearPersistentSnippets() {}
public void disableTrailingNL(int flag) {}
public void exitLanguageServer() {}
public bool formattingDisabled() {}
public bool formattingIsPossible() {}
public ParseError generateFile(string inFileName, string outFileName) {}
public string generateString(string input) {}
public string generateStringFromFile(string inFileName) {}
public string getBaseFont() {}
public string getBaseFontSize() {}
public bool getFragmentCode() {}
public virtual string getHoverTagClose() {}
public virtual string getHoverTagOpen(string hoverText) {}
public bool getIsolateTags() {}
public bool getKeepInjections() {}
public int getLineNumberWidth() {}
public bool getNumberWrappedLines() {}
public bool getOmitVersionComment() {}
public string getPluginScriptError() {}
public SWIGTYPE_p_std__vectorT_std__string_t getPosTestErrors() {}
public bool getPrintLineNumbers() {}
public bool getPrintZeroes() {}
public virtual string getStyleDefinition() {}
public string getStyleInputPath() {}
public string getStyleName() {}
public string getStyleOutputPath() {}
public string getSyntaxCatDescription() {}
public string getSyntaxDescription() {}
public string getSyntaxEncodingHint() {}
public string getSyntaxLuaError() {}
public SyntaxReader getSyntaxReader() {}
public string getSyntaxRegexError() {}
public string getThemeCatDescription() {}
public float getThemeContrast() {}
public string getThemeDescription() {}
public string getThemeInitError() {}
public string getTitle() {}
public bool getValidateInput() {}
public bool initIndentationScheme(string indentScheme) {}
public LSResult initLanguageServer(string executable, SWIGTYPE_p_std__vectorT_std__string_t options, string workspace, string syntax, int delay, int logLevel) {}
public bool initPluginScript(string script) {}
public bool initTheme(string themePath) {}
public bool initTheme(string themePath, bool loadSemanticStyles) {}
public bool isHoverProvider() {}
public bool isSemanticTokensProvider() {}
public LoadResult loadLanguage(string langDefPath) {}
public LoadResult loadLanguage(string langDefPath, bool embedded) {}
public void lsAddHoverInfo(bool hover) {}
public bool lsAddSemanticInfo(string fileName, string suffix) {}
public void lsAddSyntaxErrorInfo(bool error) {}
public bool lsCloseDocument(string fileName, string suffix) {}
public bool lsOpenDocument(string fileName, string suffix) {}
public bool printExternalStyle(string outFile) {}
public virtual bool printIndexFile(SWIGTYPE_p_std__vectorT_std__string_t fileList, string outPath) {}
public bool printPersistentState(string outFile) {}
public string readUserStyleDef() {}
public bool requiresTwoPassParsing() {}
public void resetSyntaxReaders() {}
public void setBaseFont(string fontName) {}
public void setBaseFontSize(string fontSize) {}
public void setEOLDelimiter(char delim) {}
public virtual void setESCCanvasPadding(uint arg0) {}
public virtual void setESCTrueColor(bool arg0) {}
public void setEncoding(string encodingName) {}
public void setFilesCnt(uint cnt) {}
public void setFragmentCode(bool flag) {}
public virtual void setHTMLAnchorPrefix(string arg0) {}
public virtual void setHTMLAttachAnchors(bool arg0) {}
public virtual void setHTMLClassName(string arg0) {}
public virtual void setHTMLEnclosePreTag(bool arg0) {}
public virtual void setHTMLInlineCSS(bool arg0) {}
public virtual void setHTMLOrderedList(bool arg0) {}
public virtual void setHTMLUseNonBreakingSpace(bool arg0) {}
public void setIncludeStyle(bool flag) {}
public void setIsolateTags(bool flag) {}
public void setKeepInjections(bool flag) {}
public void setKeyWordCase(SWIGTYPE_p_StringTools__KeywordCase keyCase) {}
public virtual void setLATEXBeamerMode(bool arg0) {}
public virtual void setLATEXNoShorthands(bool arg0) {}
public virtual void setLATEXPrettySymbols(bool arg0) {}
public virtual void setLATEXReplaceQuotes(bool arg0) {}
public void setLineNumberWidth(int w) {}
public void setMaxInputLineCnt(uint cnt) {}
public void setNumberWrappedLines(bool flag) {}
public void setOmitVersionComment(bool flag) {}
public void setPluginParameter(string param) {}
public void setPreformatting(WrapMode lineWrappingStyle, uint lineLength, int numberSpaces) {}
public void setPrintLineNumbers(bool flag) {}
public void setPrintLineNumbers(bool flag, uint startCnt) {}
public void setPrintZeroes(bool flag) {}
public virtual void setRTFCharStyles(bool arg0) {}
public virtual void setRTFPageColor(bool arg0) {}
public virtual void setRTFPageSize(string arg0) {}
public virtual void setSVGSize(string arg0, string arg1) {}
public void setStartingInputLine(uint begin) {}
public void setStyleCaching(bool flag) {}
public void setStyleInputPat...
Smdn.LibHighlightSharp.Themes version 4.0.0
Released package
Release notes
The full release notes are available at gist.
Notes
What's Changed
- Add 'osx'-targeted artifact built on macos-11 by @github-actions in #60
- Add 'ubuntu.20.04'-targeted artifact built on ubuntu-20.04 by @github-actions in #59
- Add 'ubuntu.22.04'-targeted artifact built on ubuntu-22.04 by @github-actions in #61
Full Changelog: releases/Smdn.LibHighlightSharp.Themes-3.60.0...releases/Smdn.LibHighlightSharp.Themes-4.0.0
Smdn.LibHighlightSharp.LangDefs version 4.0.0
Released package
Release notes
The full release notes are available at gist.
Notes
What's Changed
- Add 'osx'-targeted artifact built on macos-11 by @github-actions in #60
- Add 'ubuntu.20.04'-targeted artifact built on ubuntu-20.04 by @github-actions in #59
- Add 'ubuntu.22.04'-targeted artifact built on ubuntu-22.04 by @github-actions in #61
Full Changelog: releases/Smdn.LibHighlightSharp.LangDefs-3.60.0...releases/Smdn.LibHighlightSharp.LangDefs-4.0.0
Smdn.LibHighlightSharp.Bindings version 4.0.0
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2022-12-08 add CompatibilitySuppressions entries for highlight >=4.0
- 2022-12-08 add artifact libhighlight-v4_0_0_0.so highlight-v4_0_0_0.dll (artifact-highlight-v4_0_0_0-ubuntu.22.04-x64)
- 2022-12-07 Merge branch 'artifact-highlight-4.0' into artifact-highlight-v4_0_0_0-ubuntu.20.04-x64
- 2022-12-06 add artifact libhighlight-v4_0_0_0.dylib (artifact-highlight-v4_0_0_0-osx-x64)
- 2022-12-06 add artifact libhighlight-v4_0_0_0.so (artifact-highlight-v4_0_0_0-ubuntu.20.04-x64)
- 2022-12-07 add bindings for highlight-4.0
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings-net6.0.apilist.cs b/doc/api-list/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings-net6.0.apilist.cs
index a3c3d7c..73eda78 100644
--- a/doc/api-list/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings-net6.0.apilist.cs
@@ -1,385 +1,361 @@
-// Smdn.LibHighlightSharp.Bindings.dll (Smdn.LibHighlightSharp.Bindings-3.60.0)
+// Smdn.LibHighlightSharp.Bindings.dll (Smdn.LibHighlightSharp.Bindings-4.0.0)
// Name: Smdn.LibHighlightSharp.Bindings
-// AssemblyVersion: 3.60.0.0
-// InformationalVersion: 3.60.0+11c9c1634ccf3d96d71724a669c7875d8244f937
+// AssemblyVersion: 4.0.0.0
+// InformationalVersion: 4.0.0+a2e4bcedc158a01b4422726864946ed4c60e668d
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
using System;
using Smdn.LibHighlightSharp.Bindings;
namespace Smdn.LibHighlightSharp {
public static class VersionInformations {
public static Version BindingsVersion { get; }
public static string NativeLibraryFileName { get; }
public static string NativeLibraryName { get; }
public static Version NativeLibraryVersion { get; }
}
}
namespace Smdn.LibHighlightSharp.Bindings {
+ public enum LSResult : int {
+ CMD_ERROR = 3,
+ INIT_BAD_PIPE = 1,
+ INIT_BAD_REQUEST = 2,
+ INIT_OK = 0,
+ }
+
public enum LoadResult : int {
LOAD_FAILED = 1,
LOAD_FAILED_LUA = 3,
LOAD_FAILED_REGEX = 2,
LOAD_OK = 0,
}
public enum OutputType : int {
BBCODE = 9,
ESC_ANSI = 5,
- ESC_TRUECOLOR = 12,
+ ESC_TRUECOLOR = 7,
ESC_XTERM256 = 6,
HTML = 0,
- HTML32_UNUSED = 7,
LATEX = 3,
ODTFLAT = 11,
PANGO = 10,
RTF = 4,
SVG = 8,
TEX = 2,
XHTML = 1,
}
public enum ParseError : int {
BAD_BINARY = 8,
BAD_INPUT = 1,
BAD_OUTPUT = 2,
BAD_STYLE = 4,
PARSE_OK = 0,
}
public enum State : int {
DIRECTIVE = 6,
- DIRECTIVE_END = 17,
+ DIRECTIVE_END = 19,
DIRECTIVE_STRING = 7,
- EMBEDDED_CODE_BEGIN = 23,
- EMBEDDED_CODE_END = 24,
+ EMBEDDED_CODE_BEGIN = 25,
+ EMBEDDED_CODE_END = 26,
ESC_CHAR = 5,
- ESC_CHAR_END = 16,
- IDENTIFIER_BEGIN = 21,
- IDENTIFIER_END = 22,
- KEYWORD = 11,
- KEYWORD_END = 20,
+ ESC_CHAR_END = 18,
+ IDENTIFIER_BEGIN = 23,
+ IDENTIFIER_END = 24,
+ KEYWORD = 13,
+ KEYWORD_END = 22,
LINENUMBER = 8,
ML_COMMENT = 4,
- ML_COMMENT_END = 15,
+ ML_COMMENT_END = 17,
NUMBER = 2,
- NUMBER_END = 13,
+ NUMBER_END = 15,
SL_COMMENT = 3,
- SL_COMMENT_END = 14,
+ SL_COMMENT_END = 16,
STANDARD = 0,
STRING = 1,
- STRING_END = 12,
+ STRING_END = 14,
STRING_INTERPOLATION = 10,
- STRING_INTERPOLATION_END = 19,
+ STRING_INTERPOLATION_END = 21,
SYMBOL = 9,
- SYMBOL_END = 18,
+ SYMBOL_END = 20,
+ SYNTAX_ERROR = 11,
+ SYNTAX_ERROR_MSG = 12,
_EOF = 103,
_EOL = 102,
_REJECT = 101,
_TESTPOS = 105,
_UNKNOWN = 100,
_WS = 104,
}
public enum WrapMode : int {
WRAP_DEFAULT = 2,
WRAP_DISABLED = 0,
WRAP_SIMPLE = 1,
}
public class CodeGenerator : IDisposable {
public static void deleteInstance(CodeGenerator inst) {}
public static CodeGenerator getInstance(OutputType type) {}
protected bool swigCMemOwn;
protected virtual void Dispose(bool disposing) {}
public void Dispose() {}
~CodeGenerator() {}
public void clearPersistentSnippets() {}
public void disableTrailingNL(int flag) {}
+ public void exitLanguageServer() {}
public bool formattingDisabled() {}
public bool formattingIsPossible() {}
public ParseError generateFile(string inFileName, string outFileName) {}
public string generateString(string input) {}
public string generateStringFromFile(string inFileName) {}
public string getBaseFont() {}
public string getBaseFontSize() {}
public bool getFragmentCode() {}
+ public virtual string getHoverTagClose() {}
+ public virtual string getHoverTagOpen(string hoverText) {}
public bool getIsolateTags() {}
public bool getKeepInjections() {}
public int getLineNumberWidth() {}
public bool getNumberWrappedLines() {}
public bool getOmitVersionComment() {}
public string getPluginScriptError() {}
public SWIGTYPE_p_std__vectorT_std__string_t getPosTestErrors() {}
public bool getPrintLineNumbers() {}
public bool getPrintZeroes() {}
public virtual string getStyleDefinition() {}
public string getStyleInputPath() {}
public string getStyleName() {}
public string getStyleOutputPath() {}
public string getSyntaxCatDescription() {}
public string getSyntaxDescription() {}
public string getSyntaxEncodingHint() {}
public string getSyntaxLuaError() {}
public SyntaxReader getSyntaxReader() {}
public string getSyntaxRegexError() {}
public string getThemeCatDescription() {}
public float getThemeContrast() {}
public string getThemeDescription() {}
public string getThemeInitError() {}
public string getTitle() {}
public bool getValidateInput() {}
public bool initIndentationScheme(string indentScheme) {}
+ public LSResult initLanguageServer(string executable, SWIGTYPE_p_std__vectorT_std__string_t options, string workspace, string syntax, int delay, int logLevel) {}
public bool initPluginScript(string script) {}
public bool initTheme(string themePath) {}
+ public bool initTheme(string themePath, bool loadSemanticStyles) {}
+ public bool isHoverProvider() {}
+ public bool isSemanticTokensProvider() {}
public LoadResult loadLanguage(string langDefPath) {}
public LoadResult loadLanguage(string langDefPath, bool embedded) {}
+ public void lsAddHoverInfo(bool hover) {}
+ public bool lsAddSemanticInfo(string fileName, string suffix) {}
+ public void lsAddSyntaxErrorInfo(bool error) {}
+ public bool lsCloseDocument(string fileName, string suffix) {}
+ public bool lsOpenDocument(string fileName, string suffix) {}
public bool printExternalStyle(string outFile) {}
public virtual bool printIndexFile(SWIGTYPE_p_std__vectorT_std__string_t fileList, string outPath) {}
public bool printPersistentState(string outFile) {}
public string readUserStyleDef() {}
public bool requiresTwoPassParsing() {}
public void resetSyntaxReaders() {}
public void setBaseFont(string fontName) {}
public void setBaseFontSize(string fontSize) {}
public void setEOLDelimiter(char delim) {}
public virtual void setESCCanvasPadding(uint arg0) {}
public virtual void setESCTrueColor(bool arg0) {}
public void setEncoding(string encodingName) {}
public void setFilesCnt(uint cnt) {}
public void setFragmentCode(bool flag) {}
public virtual void setHTMLAnchorPrefix(string arg0) {}
public virtual void setHTMLAttachAnchors(bool arg0) {}
public virtual void setHTMLClassName(string arg0) {}
public virtual void setHTMLEnclosePreTag(bool arg0) {}
public virtual void setHTMLInlineCSS(bool arg0) {}
public virtual void setHTMLOrderedList(bool arg0) {}
public virtual void setHTMLUseNonBreakingSpace(bool arg0) {}
public void setIncludeStyle(bool flag) {}
- public void setIndentationOptions(SWIGTYPE_p_std__vectorT_std__string_t options) {}
public void setIsolateTags(bool flag) {}
public void setKeepInjections(bool flag) {}
public void setKeyWordCase(SWIGTYPE_p_StringTools__KeywordCase keyCase) {}
public virtual void setLATEXBeamerMode(bool arg0) {}
public virtual void setLATEXNoShorthands(bool arg0) {}
public virtual void setLATEXPrettySymbols(bool arg0) {}
public virtual void setLATEXReplaceQuotes(bool arg0) {}
public void setLineNumberWidth(int w) {}
public void setMaxInputLineCnt(uint cnt) {}
public void setNumberWrappedLines(bool flag) {}
public void setOmitVersionComment(bool flag) {}
public void setPluginParameter(string param) {}
public void setPreformatting(WrapMode lineWrappingStyle, uint lineLength, int numberSpaces) {}
public void setPrintLineNumbers(bool flag) {...
Smdn.LibHighlightSharp version 1.1.0
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2022-12-06 update assembly version
- 2022-12-06 add static GeneratorInformationalVersion and mark GeneratorVersionString as obsolete
- 2022-12-06 delete Highlight.Create
- 2022-12-06 add System.Runtime.InteropServices.RuntimeInformation to PackageReference
- 2022-12-06 fix GetGeneratorVersionString to load theme and syntax files from embedded resource instead of files from data dirs
- 2022-12-03 implement cross version testing
- 2022-12-01 enable property PackageValidationBaselineVersion
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.LibHighlightSharp/Smdn.LibHighlightSharp-net6.0.apilist.cs b/doc/api-list/Smdn.LibHighlightSharp/Smdn.LibHighlightSharp-net6.0.apilist.cs
index 2869ef7..e2d471f 100644
--- a/doc/api-list/Smdn.LibHighlightSharp/Smdn.LibHighlightSharp-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.LibHighlightSharp/Smdn.LibHighlightSharp-net6.0.apilist.cs
@@ -1,194 +1,197 @@
-// Smdn.LibHighlightSharp.dll (Smdn.LibHighlightSharp-1.0.0)
+// Smdn.LibHighlightSharp.dll (Smdn.LibHighlightSharp-1.1.0)
// Name: Smdn.LibHighlightSharp
-// AssemblyVersion: 1.0.0.0
-// InformationalVersion: 1.0.0+0728a9ecd0eff18dc31667e893ba787a178644e5
+// AssemblyVersion: 1.1.0.0
+// InformationalVersion: 1.1.0+f24e630967db8b274a29d2f3c9ce85030f883681
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
#nullable enable annotations
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Xml.Linq;
using Smdn.LibHighlightSharp;
using Smdn.LibHighlightSharp.Bindings;
namespace Smdn.LibHighlightSharp {
public enum GeneratorOutputType : int {
BBCode = 8,
EscapeSequencesAnsi = 5,
EscapeSequencesTrueColor = 11,
EscapeSequencesXterm256 = 6,
Html = 0,
LaTeX = 3,
Odt = 10,
Pango = 9,
Rtf = 4,
Svg = 7,
TeX = 2,
Xhtml = 1,
}
public enum HighlightElementType : int {
Default = 1,
ErrorMessage = 18,
EscapedCharacter = 6,
HoverText = 16,
KeywordA = 12,
KeywordB = 13,
KeywordC = 14,
KeywordD = 15,
LineNumber = 9,
MultiLineComment = 5,
Number = 3,
Operator = 10,
Other = 0,
Preprocessor = 7,
PreprocessorString = 8,
SingleLineComment = 4,
StringInterpolation = 11,
Strings = 2,
SyntaxError = 17,
}
public class Highlight : IDisposable {
public static readonly Version MinimumVersionSupportingBase16Themes; // = "3.44"
public static readonly Version MinimumVersionSupportingGuessFileType; // = "3.51"
public static readonly Version MinimumVersionSupportingLoadFileTypesConfig; // = "3.51"
+ public static string? GeneratorInformationalVersion { get; }
+
public static DataDir? CreateDefaultDataDir() {}
public Highlight(DataDir dataDir, GeneratorOutputType outputType = GeneratorOutputType.Html, bool shouldDisposeDataDir = false) {}
public Highlight(DataDir dataDirForSyntaxes, DataDir dataDirForThemes, GeneratorOutputType outputType = GeneratorOutputType.Html, bool shouldDisposeDataDir = false) {}
public Highlight(GeneratorOutputType outputType = GeneratorOutputType.Html) {}
public Highlight(string dataDir, GeneratorOutputType outputType = GeneratorOutputType.Html) {}
public Highlight(string dataDirForSyntaxes, string dataDirForThemes, GeneratorOutputType outputType = GeneratorOutputType.Html) {}
public string BaseFont { get; set; }
public string BaseFontSize { get; set; }
public bool Fragment { get; set; }
+ [Obsolete("Use GeneratorInformationalVersion instead.")]
public string? GeneratorVersionString { get; }
public bool IncrementWrappedLineNumber { get; set; }
public bool IsolateTags { get; set; }
public bool KeepInjections { get; set; }
public string? LastSyntaxError { get; }
public int LineNumberWidth { get; set; }
public bool LineNumberZeroPadding { get; set; }
public bool OmitVersionComment { get; set; }
public GeneratorOutputType OutputType { get; }
public bool PrintLineNumbers { get; set; }
public string StyleInputPath { get; set; }
public string StyleName { get; }
public string StyleOutputPath { get; set; }
public string? SyntaxCategoryDescription { get; }
public string? SyntaxDescription { get; }
public string? SyntaxEncodingHint { get; }
public string? ThemeCategoryDescription { get; }
public string? ThemeDescription { get; }
public string Title { get; set; }
public bool ValidateInput { get; set; }
protected virtual void Dispose(bool disposing) {}
public void Dispose() {}
public string Generate(string input) {}
public void Generate(string inputPath, string outputPath) {}
public string GenerateFromFile(string path) {}
public string GuessFileType(string inputFilePath) {}
public void LoadFileTypesConfig(string fileTypesConfPath) {}
public void SetEncoding(string encodingName) {}
public void SetIncludeStyle(bool trueForInclude) {}
public void SetSyntax(string name) {}
public void SetSyntaxFromFile(string pathToLangFile) {}
public void SetTheme(string name) {}
public void SetThemeBase16(string name) {}
public void SetThemeFromFile(string pathToThemeFile) {}
public bool TryFindSyntaxFile(string name, [NotNullWhen(true)] out string? syntaxFilePath) {}
public bool TryFindThemeBase16File(string name, [NotNullWhen(true)] out string? themeFilePath) {}
public bool TryFindThemeFile(string name, [NotNullWhen(true)] out string? themeFilePath) {}
public bool TryLoadFileTypesConfig() {}
}
public sealed class HighlightHtmlClass :
IEquatable<HighlightHtmlClass>,
IEquatable<string>
{
public static HighlightHtmlClass Default { get; }
public static HighlightHtmlClass DefaultV3 { get; }
public static HighlightHtmlClass DefaultV4 { get; }
public static HighlightHtmlClass ErrorMessage { get; }
public static HighlightHtmlClass EscapedCharacter { get; }
public static HighlightHtmlClass Highlight { get; }
public static HighlightHtmlClass HoverText { get; }
public static HighlightHtmlClass KeywordA { get; }
public static HighlightHtmlClass KeywordB { get; }
public static HighlightHtmlClass KeywordC { get; }
public static HighlightHtmlClass KeywordD { get; }
public static HighlightHtmlClass LineNumber { get; }
public static HighlightHtmlClass MultiLineComment { get; }
public static HighlightHtmlClass Number { get; }
public static HighlightHtmlClass Operator { get; }
public static HighlightHtmlClass Preprocessor { get; }
public static HighlightHtmlClass PreprocessorString { get; }
public static HighlightHtmlClass SingleLineComment { get; }
public static HighlightHtmlClass StringInterpolation { get; }
public static HighlightHtmlClass Strings { get; }
public static HighlightHtmlClass StringsV3 { get; }
public static HighlightHtmlClass StringsV4 { get; }
public static HighlightHtmlClass SyntaxError { get; }
public static bool TryParse(string className, [NotNullWhen(true)] out HighlightHtmlClass? @class) {}
public static bool TryParsePrefixed(string prefixedClassName, [NotNullWhen(true)] out HighlightHtmlClass? @class) {}
public string ClassName { get; }
public HighlightElementType ElementType { get; }
public bool Equals(HighlightHtmlClass? other) {}
public bool Equals(string? other) {}
public override bool Equals(object? obj) {}
public override int GetHashCode() {}
public override string ToString() {}
}
public class HighlightParserException : InvalidOperationException {
public HighlightParserException(string message) {}
public HighlightParserException(string message, ParseError reason) {}
public ParseError Reason { get; }
}
public class HighlightSyntaxException : InvalidOperationException {
public HighlightSyntaxException(string langFilePath, LoadResult reason) {}
public HighlightSyntaxException(string message) {}
public string? LangFilePath { get; }
public LoadResult Reason { get; }
}
public class HighlightThemeException : InvalidOperationException {
public HighlightThemeException(string message) {}
public HighlightThemeException(string themeFilePath, string? reason) {}
public string? Reason { get; }
public string? ThemeFilePath { get; }
}
}
namespace Smdn.LibHighlightSharp.Xhtml {
public class XhtmlHighlight : Highlight {
protected static IEnumerable<(XElement HighlightedElement, HighlightHtmlClass HighlightClass)> EnumerateHighlightedElements(XContainer container) {}
public XhtmlHighlight() {}
public XhtmlHighlight(DataDir dataDir, bool shouldDisposeDataDir = false) {}
...
Smdn.LibHighlightSharp.Themes version 3.60.0
Released package
Release notes
The full release notes are available at gist.
Notes
What's Changed
- Add 'ubuntu.20.04'-targeted artifact built on ubuntu-20.04 by @github-actions in #51
- Add 'ubuntu.22.04'-targeted artifact built on ubuntu-22.04 by @github-actions in #53
- Add 'osx'-targeted artifact built on macos-11 by @github-actions in #52
Full Changelog: releases/Smdn.LibHighlightSharp.Themes-3.56.0...releases/Smdn.LibHighlightSharp.Themes-3.60.0
Smdn.LibHighlightSharp.Themes version 3.56.0
Released package
Release notes
The full release notes are available at gist.
Notes
What's Changed
- Add 'ubuntu.20.04'-targeted artifact built on ubuntu-20.04 by @github-actions in #44
- Add 'ubuntu.22.04'-targeted artifact built on ubuntu-22.04 by @github-actions in #46
- Add 'osx'-targeted artifact built on macos-11 by @github-actions in #45
Full Changelog: releases/Smdn.LibHighlightSharp.Themes-3.51.0...releases/Smdn.LibHighlightSharp.Themes-3.56.0
Smdn.LibHighlightSharp.Themes version 3.51.0
Released package
Release notes
The full release notes are available at gist.
Notes
What's Changed
- Add 'ubuntu.20.04'-targeted artifact built on ubuntu-20.04 by @github-actions in #37
- Add 'ubuntu.22.04'-targeted artifact built on ubuntu-22.04 by @github-actions in #38
- Add 'osx'-targeted artifact built on macos-11 by @github-actions in #39
Full Changelog: releases/Smdn.LibHighlightSharp.Themes-3.44.0...releases/Smdn.LibHighlightSharp.Themes-3.51.0
Smdn.LibHighlightSharp.Themes version 3.44.0
Released package
Release notes
The full release notes are available at gist.
Notes
What's Changed
- Add 'ubuntu.20.04'-targeted artifact built on ubuntu-20.04 by @github-actions in #30
- Add 'osx'-targeted artifact built on macos-11 by @github-actions in #31
- Add 'ubuntu.22.04'-targeted artifact built on ubuntu-22.04 by @github-actions in #32
Full Changelog: releases/Smdn.LibHighlightSharp.Themes-3.43.0...releases/Smdn.LibHighlightSharp.Themes-3.44.0