public static profileForId(idOrAlias as String) as LanguageProfile
Resolves a LanguageProfile by its canonical identifier or common alias (e.g. "klyn", "kn", "py", "js", "ts", "c++").
| Parameter | Description |
|---|---|
idOrAlias | Language ID or alias. |
Matching LanguageProfile, or the "plain" profile if unknown.
import klyn.code
assert LanguageRegistry.profileForId("kn").id == "klyn"
assert LanguageRegistry.profileForId("py").id == "python"