Smdn.LibHighlightSharp.Bindings 3.36.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. 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 3.36.1
NuGet\Install-Package Smdn.LibHighlightSharp.Bindings -Version 3.36.1
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="3.36.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Smdn.LibHighlightSharp.Bindings --version 3.36.1
#r "nuget: Smdn.LibHighlightSharp.Bindings, 3.36.1"
#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=3.36.1

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

Smdn.LibHighlightSharp.Bindings-3.36.1

Native libraries

This package provides Highlight v3.36 native libraries for the platforms represented by the following RIDs.

  • 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-3.36.1 (net6.0)

// Smdn.LibHighlightSharp.Bindings.dll (Smdn.LibHighlightSharp.Bindings-3.36.1)
//   Name: Smdn.LibHighlightSharp.Bindings
//   AssemblyVersion: 3.36.1.0
//   InformationalVersion: 3.36.1+0134c18aa46629fc4db0254325795857c949fe3c
//   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 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_XTERM256 = 6,
    HTML = 0,
    HTML32 = 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_STRING = 7,
    EMBEDDED_CODE_BEGIN = 23,
    EMBEDDED_CODE_END = 24,
    ESC_CHAR = 5,
    ESC_CHAR_END = 16,
    IDENTIFIER_BEGIN = 21,
    IDENTIFIER_END = 22,
    KEYWORD = 11,
    KEYWORD_END = 20,
    LINENUMBER = 8,
    ML_COMMENT = 4,
    ML_COMMENT_END = 15,
    NUMBER = 2,
    NUMBER_END = 13,
    SL_COMMENT = 3,
    SL_COMMENT_END = 14,
    STANDARD = 0,
    STRING = 1,
    STRING_END = 12,
    STRING_INTERPOLATION = 10,
    STRING_INTERPOLATION_END = 19,
    SYMBOL = 9,
    SYMBOL_END = 18,
    _EOF = 103,
    _EOL = 102,
    _REJECT = 101,
    _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 disableTrailingNL(bool flag) {}
    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 bool getKeepInjections() {}
    public int getLineNumberWidth() {}
    public bool getNumberWrappedLines() {}
    public string getPluginScriptError() {}
    public bool getPrintLineNumbers() {}
    public bool getPrintZeroes() {}
    public string getStyleInputPath() {}
    public string getStyleName() {}
    public string getStyleOutputPath() {}
    public string getSyntaxDescription() {}
    public string getSyntaxLuaError() {}
    public SyntaxReader getSyntaxReader() {}
    public string getSyntaxRegexError() {}
    public string getThemeInitError() {}
    public string getTitle() {}
    public bool getValidateInput() {}
    public bool initIndentationScheme(string indentScheme) {}
    public bool initPluginScript(string script) {}
    public bool initTheme(string themePath) {}
    public LoadResult loadLanguage(string langDefPath) {}
    public LoadResult loadLanguage(string langDefPath, bool embedded) {}
    public bool printExternalStyle(string outFile) {}
    public virtual bool printIndexFile(SWIGTYPE_p_std__vectorT_std__string_t fileList, string outPath) {}
    public void setBaseFont(string fontName) {}
    public void setBaseFontSize(string fontSize) {}
    public void setEOLDelimiter(char delim) {}
    public virtual void setESCTrueColor(bool arg0) {}
    public void setEncoding(string encodingName) {}
    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 setKeepInjections(bool flag) {}
    public void setKeyWordCase(SWIGTYPE_p_StringTools__KeywordCase keyCase) {}
    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 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 setStartingNestedLang(string langName) {}
    public void setStyleInputPath(string path) {}
    public void setStyleOutputPath(string path) {}
    public void setTitle(string title) {}
    public void setValidateInput(bool flag) {}
    public bool styleFound() {}
  }

  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() {}

    protected virtual void Dispose(bool disposing) {}
    public void Dispose() {}
    ~DataDir() {}
    public string getDocDir() {}
    public string getExtDir() {}
    public string getFiletypesConfPath(string arg0) {}
    public string getI18nDir() {}
    public string getLangPath() {}
    public string getLangPath(string file) {}
    public string getPluginPath() {}
    public string getPluginPath(string arg0) {}
    public string getSystemDataPath() {}
    public string getThemePath() {}
    public string getThemePath(string file) {}
    public void initSearchDirectories(string userDefinedDir) {}
    public void printConfigPaths() {}
    public void searchDataDir(string userDefinedDir) {}
    public string searchFile(string path) {}
  }

  public class ReGroup : IDisposable {
    protected bool swigCMemOwn;

    public ReGroup() {}
    public ReGroup(ReGroup other) {}
    public ReGroup(State s, uint l, uint c, string n) {}

    public uint kwClass { get; set; }
    public uint length { get; set; }
    public string name { get; set; }
    public State state { get; set; }

    protected virtual void Dispose(bool disposing) {}
    public void Dispose() {}
    ~ReGroup() {}
  }

  public class RegexDef : IDisposable {
    protected bool swigCMemOwn;

    public RegexDef() {}

    public int capturingGroup { get; set; }
    public string reString { get; set; }

    protected virtual void Dispose(bool disposing) {}
    public void Dispose() {}
    ~RegexDef() {}
  }

  public class RegexElement : IDisposable {
    public static int instanceCnt { get; set; }

    protected bool swigCMemOwn;

    public RegexElement() {}
    public RegexElement(State oState, State eState, string rePattern) {}
    public RegexElement(State oState, State eState, string rePattern, uint cID) {}
    public RegexElement(State oState, State eState, string rePattern, uint cID, int group) {}
    public RegexElement(State oState, State eState, string rePattern, uint cID, int group, string name) {}

    public int capturingGroup { get; set; }
    public State end { get; set; }
    public int instanceId { get; set; }
    public uint kwClass { get; set; }
    public string langName { get; set; }
    public State open { get; set; }
    public SWIGTYPE_p_boost__xpressive__sregex rex { get; set; }

    protected virtual void Dispose(bool disposing) {}
    public void Dispose() {}
    ~RegexElement() {}
  }

  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_boost__xpressive__sregex {
    protected SWIGTYPE_p_boost__xpressive__sregex() {}
  }

  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__vectorT_highlight__RegexElement_p_t {
    protected SWIGTYPE_p_std__vectorT_highlight__RegexElement_p_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 addUserChunk(SWIGTYPE_p_Diluculum__LuaFunction chunk) {}
    public bool allowNestedMLComments() {}
    public bool allowsInnerSection(string langPath) {}
    public bool assertDelimEqualLength() {}
    public bool delimiterIsDistinct(int delimID) {}
    public bool delimiterIsRawString(int delimID) {}
    public bool enableReformatting() {}
    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 getFailedRegex() {}
    public string getFooterInjection() {}
    public string getHeaderInjection() {}
    public SWIGTYPE_p_std__vectorT_std__string_t getKeywordClasses() {}
    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 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 int 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 void restoreLangEndDelim(string langPath) {}
  }

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

    public highlight() {}
  }
}

NOTICE

Highlight

The bundled file copyied 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 was computed.  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.

NuGet packages (1)

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

Package Downloads
Smdn.LibHighlightSharp The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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.11.0 96 3/20/2024
4.10.1 89 2/4/2024
4.10.0 206 11/2/2023
4.9.1 70 2/4/2024
4.9.0 88 11/2/2023
4.8.1 72 2/4/2024
4.8.0 104 11/2/2023
4.7.1 67 2/4/2024
4.7.0 154 7/27/2023
4.6.1 68 2/4/2024
4.6.0 125 6/6/2023
4.5.1 69 2/4/2024
4.5.0 152 4/21/2023
4.4.1 69 2/4/2024
4.4.0 415 12/9/2022
4.3.1 70 2/4/2024
4.3.0 306 12/9/2022
4.2.1 72 2/4/2024
4.2.0 280 12/9/2022
4.1.1 70 2/4/2024
4.1.0 287 12/9/2022
4.0.1 83 2/4/2024
4.0.0 307 12/8/2022
3.60.0 369 12/4/2022
3.56.0 330 12/4/2022
3.51.0 337 12/4/2022
3.44.0 337 12/4/2022
3.43.0 338 12/2/2022
3.36.1 302 12/1/2022
3.36.0 2,251 11/30/2022
3.36.0-preview2 148 11/29/2022
3.36.0-preview1 132 11/21/2022