AutoStyleExtension for Medium Editor allows auto-styling of words.
The auto-styling is defined in a configuration object, which gets passed to the constructur. In detail:Play around with the words yellöw, gräy, gray, grey, RED, oraNGE, 汉语/漢語.
(If deleting the content, make sure that the placeholder "Type your text" appears.
The editor seems sometimes to remember the last HTML-color settings. Will look into it.)
<style type="text/css"> .my-class { border: 1px solid red; background-color: yellow; } </style> <script> config: { sectionA: { matchcase: false, wordsonly: false, class: 'my-class', style: 'color:red;', words: ['yellow'] }, sectionB: { matchcase: true, wordsonly: true, style: 'color:red;', words: ['RED'] }, sectionC: { matchcase: false, wordsonly: false, style: 'background-color:gray;', words: ['gray', 'grey'] }, sectionD: { matchcase: true, wordsonly: true, style: 'background-color:orange;', words: ['oraNGE', '汉语/漢語'] } } </script>