Is there a way to add syntax highlighting to tooltips and autocomplete?

Is there a way to add syntax highlighting to tooltips and autocomplete?

You can use highlightTree with Language.parser to directly parse and highlight code outside of the editor.