is Supported
Checks whether the specified language identifier, alias, or file extension is supported.
Returns true if language matches any canonical language in all, any registered Highlight.js alias (such as "kt", "py", "js", "ts", "sh", "html"), or any recognized file extension, case-insensitively.
Example:
HighlightLanguage.isSupported("kotlin") // true
HighlightLanguage.isSupported("kt") // true
HighlightLanguage.isSupported("HTML") // true
HighlightLanguage.isSupported("unknown") // falseContent copied to clipboard
Return
true if supported, false otherwise.
Parameters
language
Language identifier, alias, or file extension to check.