code_field icon indicating copy to clipboard operation
code_field copied to clipboard

Cluttering highlight with duplicate languages

Open alexeyinkin opened this issue 2 years ago • 0 comments

Currently CodeController registers languages with highlight using a random string. When multiple controllers are created with the same language, this same language is registered in highlight under multiple generated IDs.

Can we avoid this? Why don't we use mode.hashCode.toString() or something similar for ID when registering languages?

alexeyinkin avatar Jun 16 '22 06:06 alexeyinkin