Smdn.LibHighlightSharp.Bindings 4.13.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Smdn.LibHighlightSharp.Bindings --version 4.13.0                
NuGet\Install-Package Smdn.LibHighlightSharp.Bindings -Version 4.13.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Smdn.LibHighlightSharp.Bindings" Version="4.13.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Smdn.LibHighlightSharp.Bindings --version 4.13.0                
#r "nuget: Smdn.LibHighlightSharp.Bindings, 4.13.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Smdn.LibHighlightSharp.Bindings as a Cake Addin
#addin nuget:?package=Smdn.LibHighlightSharp.Bindings&version=4.13.0

// Install Smdn.LibHighlightSharp.Bindings as a Cake Tool
#tool nuget:?package=Smdn.LibHighlightSharp.Bindings&version=4.13.0                

Smdn.LibHighlightSharp.Bindings-4.13.0

Native libraries

This package provides Highlight v4.13 native libraries for the platforms represented by the following RIDs.

  • linux-x64
  • ubuntu.22.04-x64
  • ubuntu.20.04-x64
  • osx-x64
  • win-x64

Also note that this package provides the Lua DLL (for Windows only).

.NET bindings

This package also provides .NET bindings for the native libraries descrived above.

All types under the namespace Smdn.LibHighlightSharp.Bindings are automatically generated by SWIG, without any other modifications.

API List

List of APIs exposed by assembly Smdn.LibHighlightSharp.Bindings-4.13.0 (net8.0)

// Smdn.LibHighlightSharp.Bindings.dll (Smdn.LibHighlightSharp.Bindings-4.13.0)
//   Name: Smdn.LibHighlightSharp.Bindings
//   AssemblyVersion: 4.13.0.0
//   InformationalVersion: 4.13.0+d0857990339615c5034479973df692cd222d0058
//   TargetFramework: .NETCoreApp,Version=v8.0
//   Configuration: Release
//   Referenced assemblies:
//     System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
//     System.Runtime.InteropServices, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
//     System.Threading, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

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 byte getAdditionalEOFChar() {}
    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 LSResult initLanguageServer(string executable, SWIGTYPE_p_std__vectorT_std__string_t options, string workspace, string syntax, int delay, int logLevel, bool legacy) {}
    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 setAdditionalEOFChar() {}
    public void setAdditionalEOFChar(byte eofChar) {}
    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 setStyleInputPath(string path) {}
    public void setStyleOutputPath(string path) {}
    public void setTitle(string title) {}
    public void setValidateInput(bool flag) {}
    public bool styleFound() {}
    public bool syntaxRequiresTwoPassRun() {}
  }

  public class DataDir : IDisposable {
    public static string LSB_CFG_DIR { get; set; }
    public static string LSB_DATA_DIR { get; set; }
    public static string LSB_DOC_DIR { get; set; }

    protected bool swigCMemOwn;

    public DataDir() {}

    public SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t assocByExtension { get; set; }
    public SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t assocByFilename { get; set; }
    public SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t assocByShebang { get; set; }
    public SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t encodingHint { get; set; }

    protected virtual void Dispose(bool disposing) {}
    public void Dispose() {}
    ~DataDir() {}
    public string getDocDir() {}
    public string getEncodingHint(string arg0) {}
    public string getExtDir() {}
    public string getFileSuffix(string fileName) {}
    public string getFiletypesConfPath() {}
    public string getFiletypesConfPath(string path) {}
    public string getI18nDir() {}
    public string getLangPath() {}
    public string getLangPath(string file) {}
    public string getPluginPath() {}
    public string getPluginPath(string arg0) {}
    public SWIGTYPE_p_highlight__LSPProfile getProfile(string profile) {}
    public string getSystemDataPath() {}
    public string getThemePath() {}
    public string getThemePath(string file) {}
    public string getThemePath(string file, bool base16) {}
    public string guessFileType(string suffix, string inputFile) {}
    public string guessFileType(string suffix, string inputFile, bool useUserSuffix) {}
    public string guessFileType(string suffix, string inputFile, bool useUserSuffix, bool forceShebangCheckStdin) {}
    public void initSearchDirectories(string userDefinedDir) {}
    public bool loadFileTypeConfig(string name) {}
    public bool loadLSPConfig(string name) {}
    public void printConfigPaths() {}
    public bool profileExists(string profile) {}
  }

  public class SWIGTYPE_p_Diluculum__LuaFunction {
    protected SWIGTYPE_p_Diluculum__LuaFunction() {}
  }

  public class SWIGTYPE_p_Diluculum__LuaState {
    protected SWIGTYPE_p_Diluculum__LuaState() {}
  }

  public class SWIGTYPE_p_StringTools__KeywordCase {
    protected SWIGTYPE_p_StringTools__KeywordCase() {}
  }

  public class SWIGTYPE_p_highlight__LSPProfile {
    protected SWIGTYPE_p_highlight__LSPProfile() {}
  }

  public class SWIGTYPE_p_std__mapT_std__string_int_std__lessT_std__string_t_t {
    protected SWIGTYPE_p_std__mapT_std__string_int_std__lessT_std__string_t_t() {}
  }

  public class SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t {
    protected SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t() {}
  }

  public class SWIGTYPE_p_std__vectorT_highlight__RegexElement_p_t {
    protected SWIGTYPE_p_std__vectorT_highlight__RegexElement_p_t() {}
  }

  public class SWIGTYPE_p_std__vectorT_int_t {
    protected SWIGTYPE_p_std__vectorT_int_t() {}
  }

  public class SWIGTYPE_p_std__vectorT_std__string_t {
    protected SWIGTYPE_p_std__vectorT_std__string_t() {}
  }

  public class SyntaxReader : IDisposable {
    public static void initLuaState(SWIGTYPE_p_Diluculum__LuaState ls, string langDefPath, string pluginReadFilePath) {}
    public static void initLuaState(SWIGTYPE_p_Diluculum__LuaState ls, string langDefPath, string pluginReadFilePath, OutputType outputType) {}

    protected bool swigCMemOwn;

    public SyntaxReader() {}

    protected virtual void Dispose(bool disposing) {}
    public void Dispose() {}
    ~SyntaxReader() {}
    public void addPersistentKeyword(uint groupID, string kw) {}
    public void addPersistentStateRange(uint groupID, uint column, uint length, uint lineNumber, string fileName) {}
    public void addUserChunk(SWIGTYPE_p_Diluculum__LuaFunction chunk) {}
    public bool allowNestedMLComments() {}
    public bool allowsInnerSection(string langPath) {}
    public bool assertDelimEqualLength() {}
    public void clearPersistentSnippets() {}
    public bool delimiterIsDistinct(int delimID) {}
    public bool delimiterIsRawString(int delimID) {}
    public bool enableReformatting() {}
    public uint generateNewKWClass(int classID) {}
    public uint generateNewKWClass(int classID, string prefix) {}
    public string getCategoryDescription() {}
    public byte getContinuationChar() {}
    public string getCurrentPath() {}
    public SWIGTYPE_p_Diluculum__LuaFunction getDecorateFct() {}
    public SWIGTYPE_p_Diluculum__LuaFunction getDecorateLineBeginFct() {}
    public SWIGTYPE_p_Diluculum__LuaFunction getDecorateLineEndFct() {}
    public string getDescription() {}
    public string getEncodingHint() {}
    public string getFailedRegex() {}
    public string getFooterInjection() {}
    public string getHeaderInjection() {}
    public string getInputFileName() {}
    public SWIGTYPE_p_std__vectorT_std__string_t getKeywordClasses() {}
    public int getKeywordCount() {}
    public int getKeywordListGroup(string s) {}
    public SWIGTYPE_p_std__mapT_std__string_int_std__lessT_std__string_t_t getKeywords() {}
    public string getLuaErrorText() {}
    public SWIGTYPE_p_Diluculum__LuaState getLuaState() {}
    public string getNewPath(string lang) {}
    public int getOpenDelimiterID(string token, State s) {}
    public string getOverrideConfigVal(string name) {}
    public SWIGTYPE_p_std__vectorT_int_t getOverrideStyleAttributes() {}
    public string getPersistentHookConditions() {}
    public SWIGTYPE_p_std__vectorT_std__string_t getPersistentSnippets() {}
    public int getPersistentSnippetsNum() {}
    public byte getRawStringPrefix() {}
    public SWIGTYPE_p_std__vectorT_highlight__RegexElement_p_t getRegexElements() {}
    public SWIGTYPE_p_Diluculum__LuaFunction getValidateStateChangeFct() {}
    public bool highlightingDisabled() {}
    public bool highlightingEnabled() {}
    public bool isIgnoreCase() {}
    public bool isKeyword(string s) {}
    public LoadResult load(string langDefPath, string pluginReadFilePath, OutputType outputType) {}
    public bool matchesOpenDelimiter(string token, State s, int openDelimId) {}
    public bool needsReload(string langDefPath) {}
    public bool requiresParamUpdate() {}
    public bool requiresTwoPassRun() {}
    public void restoreLangEndDelim(string langPath) {}
    public void setInputFileName(string fn) {}
  }

  public class highlight {
    public static readonly string GLOBAL_SR_INSTANCE_NAME = "HL_SRInstance";

    public highlight() {}
  }
}
// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.3.2.0.
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.2.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)

NOTICE

Highlight

The bundled file copied or generated from Highlight is licensed under the GNU General Public License v3.0 (see COPYING.txt).

Lua

The bundled Lua Windows DLL is licensed under the MIT License:

Copyright © 1994–2021 Lua.org, PUC-Rio.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Smdn.LibHighlightSharp.Bindings:

Package Downloads
Smdn.LibHighlightSharp

Provides wrapper classes for using various versions of [André Simon's Highlight](http://andre-simon.de/doku/highlight/en/highlight.php) on .NET.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.14.0 122 9/17/2024
4.13.0 140 8/24/2024
4.12.0 114 5/28/2024
4.11.0 139 3/20/2024
4.10.1 127 2/4/2024
4.10.0 247 11/2/2023
4.9.1 118 2/4/2024
4.9.0 128 11/2/2023
4.8.1 116 2/4/2024
4.8.0 142 11/2/2023
4.7.1 113 2/4/2024
4.7.0 175 7/27/2023
4.6.1 112 2/4/2024
4.6.0 163 6/6/2023
4.5.1 112 2/4/2024
4.5.0 186 4/21/2023
4.4.1 112 2/4/2024
4.4.0 439 12/9/2022
4.3.1 107 2/4/2024
4.3.0 342 12/9/2022
4.2.1 110 2/4/2024
4.2.0 296 12/9/2022
4.1.1 110 2/4/2024
4.1.0 324 12/9/2022
4.0.1 146 2/4/2024
4.0.0 324 12/8/2022
3.60.0 402 12/4/2022
3.56.0 363 12/4/2022
3.51.0 375 12/4/2022
3.44.0 378 12/4/2022
3.43.0 375 12/2/2022
3.36.1 340 12/1/2022
3.36.0 2,625 11/30/2022
3.36.0-preview2 183 11/29/2022
3.36.0-preview1 150 11/21/2022