diff --git a/docs/functions/detect.detectLanguage.html b/docs/functions/detect.detectLanguage.html index f3eb14d..ac05e24 100644 --- a/docs/functions/detect.detectLanguage.html +++ b/docs/functions/detect.detectLanguage.html @@ -2,4 +2,4 @@

detectLanguage

+
diff --git a/docs/functions/index.highlightAll.html b/docs/functions/index.highlightAll.html index 25433ea..f9f2c75 100644 --- a/docs/functions/index.highlightAll.html +++ b/docs/functions/index.highlightAll.html @@ -1,4 +1,4 @@ highlightAll | @speed-highlight/core

Call highlightElement on element with a css class starting with shj-lang-

highlightAll

+

Returns Promise<void[]>

diff --git a/docs/functions/index.highlightElement.html b/docs/functions/index.highlightElement.html index 631a0bd..0a98987 100644 --- a/docs/functions/index.highlightElement.html +++ b/docs/functions/index.highlightElement.html @@ -4,4 +4,4 @@
  • Optionalmode: ShjDisplayMode

    The display mode (guessed by default)

  • Optionalopt: ShjOptions

    Customization options

  • Returns Promise<void>

    highlightElement

    -
    +
    diff --git a/docs/functions/index.highlightText.html b/docs/functions/index.highlightText.html index 61814a5..47f9b6b 100644 --- a/docs/functions/index.highlightText.html +++ b/docs/functions/index.highlightText.html @@ -8,4 +8,4 @@

    highlightText

    -
    +
    diff --git a/docs/functions/index.loadLanguage.html b/docs/functions/index.loadLanguage.html index 083f8dc..0c018eb 100644 --- a/docs/functions/index.loadLanguage.html +++ b/docs/functions/index.loadLanguage.html @@ -2,4 +2,4 @@

    loadLanguage

    +

    Returns void

    diff --git a/docs/functions/index.tokenize.html b/docs/functions/index.tokenize.html index 1b7764f..c034a02 100644 --- a/docs/functions/index.tokenize.html +++ b/docs/functions/index.tokenize.html @@ -8,4 +8,4 @@
  • the type of the token
  • Returns Promise<void>

    tokenize

    -
    +
    diff --git a/docs/functions/terminal.highlightText.html b/docs/functions/terminal.highlightText.html index 1c220a2..7d5d425 100644 --- a/docs/functions/terminal.highlightText.html +++ b/docs/functions/terminal.highlightText.html @@ -3,4 +3,4 @@
    +
    diff --git a/docs/functions/terminal.printHighlight.html b/docs/functions/terminal.printHighlight.html index 808a548..b773363 100644 --- a/docs/functions/terminal.printHighlight.html +++ b/docs/functions/terminal.printHighlight.html @@ -2,4 +2,4 @@

    printHighlight

    +

    Returns Promise<any>

    diff --git a/docs/functions/terminal.setTheme.html b/docs/functions/terminal.setTheme.html index 067f0d7..833721e 100644 --- a/docs/functions/terminal.setTheme.html +++ b/docs/functions/terminal.setTheme.html @@ -1,4 +1,4 @@ setTheme | @speed-highlight/core

    Change the current used theme for highlighting

    setTheme

    +

    Returns Promise<any>

    diff --git a/docs/index.html b/docs/index.html index 80e574c..b9e9cdc 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ -@speed-highlight/core

    @speed-highlight/core

    Speed-highlight JS

    Light, fast, and easy to use, dependencies free javascript syntax highlighter, with automatic language detection, try it out here

    +@speed-highlight/core

    @speed-highlight/core

    Speed Highlight JS

    Light, fast, and easy to use, dependencies free javascript syntax highlighter, with automatic language detection, try it out here

    • The core is about 1kB (gzipped & minified)
    • @@ -335,4 +335,4 @@

      Further in-depth documentation for the API and other topics is in our Wiki and our Documentation

      Shj is released under the Creative Commons Zero License. See our LICENSE file for details.

      -
    +
    diff --git a/docs/interfaces/index.ShjOptions.html b/docs/interfaces/index.ShjOptions.html index 3ece683..ce18d8b 100644 --- a/docs/interfaces/index.ShjOptions.html +++ b/docs/interfaces/index.ShjOptions.html @@ -1,3 +1,3 @@ -ShjOptions | @speed-highlight/core
    interface ShjOptions {
        hideLineNumbers?: boolean;
    }

    Properties

    hideLineNumbers? +ShjOptions | @speed-highlight/core
    interface ShjOptions {
        hideLineNumbers?: boolean;
    }

    Properties

    Properties

    hideLineNumbers?: boolean

    Indicates whether to hide line numbers

    -
    +
    diff --git a/docs/types/index.ShjBrowserTheme.html b/docs/types/index.ShjBrowserTheme.html index 8d197e7..0e2bb26 100644 --- a/docs/types/index.ShjBrowserTheme.html +++ b/docs/types/index.ShjBrowserTheme.html @@ -1 +1 @@ -ShjBrowserTheme | @speed-highlight/core
    ShjBrowserTheme:
        | "atom-dark"
        | "github-dark"
        | "github-dim"
        | "dark"
        | "default"
        | "github-light"
        | "visual-studio-dark"
    +ShjBrowserTheme | @speed-highlight/core
    ShjBrowserTheme:
        | "atom-dark"
        | "github-dark"
        | "github-dim"
        | "dark"
        | "default"
        | "github-light"
        | "visual-studio-dark"
    diff --git a/docs/types/index.ShjDisplayMode.html b/docs/types/index.ShjDisplayMode.html index daa8edb..2ab875f 100644 --- a/docs/types/index.ShjDisplayMode.html +++ b/docs/types/index.ShjDisplayMode.html @@ -3,4 +3,4 @@
  • oneline inside div element and containing only one line
  • multiline inside div element
  • -
    +
    diff --git a/docs/types/index.ShjLanguage.html b/docs/types/index.ShjLanguage.html index 5756093..a3e8cee 100644 --- a/docs/types/index.ShjLanguage.html +++ b/docs/types/index.ShjLanguage.html @@ -1 +1 @@ -ShjLanguage | @speed-highlight/core
    ShjLanguage:
        | "asm"
        | "bash"
        | "bf"
        | "c"
        | "css"
        | "csv"
        | "diff"
        | "docker"
        | "git"
        | "go"
        | "html"
        | "http"
        | "ini"
        | "java"
        | "js"
        | "jsdoc"
        | "json"
        | "leanpub-md"
        | "log"
        | "lua"
        | "make"
        | "md"
        | "pl"
        | "plain"
        | "py"
        | "regex"
        | "rs"
        | "sql"
        | "todo"
        | "toml"
        | "ts"
        | "uri"
        | "xml"
        | "yaml"
    +ShjLanguage | @speed-highlight/core
    ShjLanguage:
        | "asm"
        | "bash"
        | "bf"
        | "c"
        | "css"
        | "csv"
        | "diff"
        | "docker"
        | "git"
        | "go"
        | "html"
        | "http"
        | "ini"
        | "java"
        | "js"
        | "jsdoc"
        | "json"
        | "leanpub-md"
        | "log"
        | "lua"
        | "make"
        | "md"
        | "pl"
        | "plain"
        | "py"
        | "regex"
        | "rs"
        | "sql"
        | "todo"
        | "toml"
        | "ts"
        | "uri"
        | "xml"
        | "yaml"
    diff --git a/docs/types/index.ShjLanguageComponent.html b/docs/types/index.ShjLanguageComponent.html index 54ca0a9..3a43ccf 100644 --- a/docs/types/index.ShjLanguageComponent.html +++ b/docs/types/index.ShjLanguageComponent.html @@ -1 +1 @@ -ShjLanguageComponent | @speed-highlight/core

    Type Alias ShjLanguageComponent

    ShjLanguageComponent:
        | { match: RegExp; type: string }
        | {
            match: RegExp;
            sub:
                | string
                | ShjLanguageDefinition
                | (code: string) => ShjLanguageComponent;
        }
        | { expand: string }
    +ShjLanguageComponent | @speed-highlight/core

    Type Alias ShjLanguageComponent

    ShjLanguageComponent:
        | { match: RegExp; type: string }
        | {
            match: RegExp;
            sub:
                | string
                | ShjLanguageDefinition
                | (code: string) => ShjLanguageComponent;
        }
        | { expand: string }
    diff --git a/docs/types/index.ShjLanguageDefinition.html b/docs/types/index.ShjLanguageDefinition.html index 659877c..ceba8cd 100644 --- a/docs/types/index.ShjLanguageDefinition.html +++ b/docs/types/index.ShjLanguageDefinition.html @@ -1 +1 @@ -ShjLanguageDefinition | @speed-highlight/core

    Type Alias ShjLanguageDefinition

    ShjLanguageDefinition: ShjLanguageComponent[]
    +ShjLanguageDefinition | @speed-highlight/core

    Type Alias ShjLanguageDefinition

    ShjLanguageDefinition: ShjLanguageComponent[]
    diff --git a/docs/types/index.ShjToken.html b/docs/types/index.ShjToken.html index 64e80aa..b624ca9 100644 --- a/docs/types/index.ShjToken.html +++ b/docs/types/index.ShjToken.html @@ -1 +1 @@ -ShjToken | @speed-highlight/core
    ShjToken:
        | "deleted"
        | "err"
        | "var"
        | "section"
        | "kwd"
        | "class"
        | "cmnt"
        | "insert"
        | "type"
        | "func"
        | "bool"
        | "num"
        | "oper"
        | "str"
        | "esc"
    +ShjToken | @speed-highlight/core
    ShjToken:
        | "deleted"
        | "err"
        | "var"
        | "section"
        | "kwd"
        | "class"
        | "cmnt"
        | "insert"
        | "type"
        | "func"
        | "bool"
        | "num"
        | "oper"
        | "str"
        | "esc"
    diff --git a/docs/types/terminal.ShjTerminalTheme.html b/docs/types/terminal.ShjTerminalTheme.html index 1f840ef..ff98e79 100644 --- a/docs/types/terminal.ShjTerminalTheme.html +++ b/docs/types/terminal.ShjTerminalTheme.html @@ -1 +1 @@ -ShjTerminalTheme | @speed-highlight/core
    ShjTerminalTheme: "default" | "atom-dark"
    +ShjTerminalTheme | @speed-highlight/core
    ShjTerminalTheme: "default" | "atom-dark"