code-syntax-block icon indicating copy to clipboard operation
code-syntax-block copied to clipboard

Free text field instead of drop-down for language selection

Open sboudjema opened this issue 5 years ago • 1 comments

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

sboudjema avatar Sep 30 '20 15:09 sboudjema

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.

mkaz avatar Oct 08 '20 03:10 mkaz