code-syntax-block
code-syntax-block copied to clipboard
Free text field instead of drop-down for language selection
Hi,
It's nice to have a dropdown to select the language, and it ensures only valid language values are used.
However, I think a text field would be nice too, in which you just have to type the language name to be placed in the language attribute of the code tag (the short names listed on the prism site). This way you don't have to maintain a static list of available languages.
Cheers
Maybe I can do a combo box that allows for both., Gutenberg recently introduced a ComboBoxControl. I'll have to take a look and see if I can switch over to that.
Thanks for the suggestion.