klyn.code.LanguageRegistry.profileForId
method
public static profileForId(idOrAlias as String) as LanguageProfile
Description

Resolves a LanguageProfile by its canonical identifier or common alias (e.g. "klyn", "kn", "py", "js", "ts", "c++").

Parameters
ParameterDescription
idOrAliasLanguage ID or alias.
Returns

Matching LanguageProfile, or the "plain" profile if unknown.

Example
import klyn.code

assert LanguageRegistry.profileForId("kn").id == "klyn"
assert LanguageRegistry.profileForId("py").id == "python"