Smdn.LibHighlightSharp.Bindings 3.36.0-preview1

Prefix Reserved
This is a prerelease version of Smdn.LibHighlightSharp.Bindings.
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.0-preview1                
NuGet\Install-Package Smdn.LibHighlightSharp.Bindings -Version 3.36.0-preview1                
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.0-preview1" />                
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.0-preview1                
#r "nuget: Smdn.LibHighlightSharp.Bindings, 3.36.0-preview1"                
#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.0-preview1&prerelease

// Install Smdn.LibHighlightSharp.Bindings as a Cake Tool
#tool nuget:?package=Smdn.LibHighlightSharp.Bindings&version=3.36.0-preview1&prerelease                

Smdn.LibHighlightSharp.Bindings-3.36.0-preview1

Native libraries

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

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

// Smdn.LibHighlightSharp.Bindings.dll (Smdn.LibHighlightSharp.Bindings-3.36.0-preview1)
//   Name: Smdn.LibHighlightSharp.Bindings
//   AssemblyVersion: 3.36.0.0
//   InformationalVersion: 3.36.0-preview1+eaee3323c282f20fa805a2dbdfc216bacd885f7b
//   TargetFramework: .NETCoreApp,Version=v6.0
//   Configuration: Release

using System;
using Smdn.LibHighlightSharp.Bindings;

namespace Smdn.LibHighlightSharp {
  public class VersionInformations {
    public static Version BindingsVersion { get; }
    public static string NativeLibraryFileName { get; }
    public static string NativeLibraryName { get; }
    public static Version NativeLibraryVersion { get; }

    public VersionInformations() {}
  }
}

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

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 135 9/17/2024
4.13.0 144 8/24/2024
4.12.0 118 5/28/2024
4.11.0 141 3/20/2024
4.10.1 129 2/4/2024
4.10.0 249 11/2/2023
4.9.1 122 2/4/2024
4.9.0 130 11/2/2023
4.8.1 118 2/4/2024
4.8.0 144 11/2/2023
4.7.1 115 2/4/2024
4.7.0 177 7/27/2023
4.6.1 116 2/4/2024
4.6.0 165 6/6/2023
4.5.1 114 2/4/2024
4.5.0 188 4/21/2023
4.4.1 114 2/4/2024
4.4.0 441 12/9/2022
4.3.1 109 2/4/2024
4.3.0 344 12/9/2022
4.2.1 114 2/4/2024
4.2.0 298 12/9/2022
4.1.1 112 2/4/2024
4.1.0 326 12/9/2022
4.0.1 148 2/4/2024
4.0.0 328 12/8/2022
3.60.0 404 12/4/2022
3.56.0 365 12/4/2022
3.51.0 377 12/4/2022
3.44.0 380 12/4/2022
3.43.0 377 12/2/2022
3.36.1 342 12/1/2022
3.36.0 2,690 11/30/2022
3.36.0-preview2 183 11/29/2022
3.36.0-preview1 150 11/21/2022