Syntax highlighting with custom linter

I’m currently using a custom linter, by direclty putting the lint function in the editor’s options.
I’ve tried using defineSimpleMode(…) to highlight parts of code, but as I use it, the linter isn’t used anymore.

Am I missing something ? Is there a way to do both at the same time (highlight/color + lint) ?

Thank for your help and for CodeMirror. :slight_smile:

Providing the function directly in the options should override any language-based linting, so I don’t see how enabling a language mode could break linting in this case.