Function: getCodeBlockLanguageSelectData()
getCodeBlockLanguageSelectData(
normalized,language):object
Resolves the current language to the select value and items used by CodeMirror language pickers. Unknown languages are added as a temporary item so the picker remains in sync with the code block value.
Parameters
| Parameter | Type |
|---|---|
normalized | NormalizedCodeBlockLanguages |
language | string |
Returns
object
items
items:
object[]
value
value:
string