Highlight JS - Configuration

Configure supported languages for syntax highlighting

2025-05-23

ITADS

To optimize performance, supported syntax highlighter languages are set on demand. You can adjust it to your own needs by setting the hljsLanguages array of highlight.js aliases:

Default syntax highlighting supported languages into LibDoc:

{
    "hljsLanguages": [
        "xml",
        "javascript",
        "json",
        "yaml",
        "liquid",
        "markdown",
        "css"
    ]
}

An example of overridden settings into settings.json:

{
    "hljsLanguages": [
        "go",
        "kotlin",
        "php",
        "python"
    ]
}