autocomplete completion with html tags


In cm v5 I was able to do something like this in option render method :

el.innerHTML = option.displayText

Displaytext was e.g: Some special option - where “special” was wrapped by html tag e.g strong

thanks to this it was possible to render html tags e.g for bolding part of the option label
Is it possible to achieve something like this with cm6?


No, the label is rendered by the library in v6 (so that it can highlight the matched characters). But you can add additional elements to the completion using the addToOptions option.