using own mode instead of primefaces default mode

I have edited “vb” mode in codemirror. It is working perfectly fine with just codemirror. But when I try using codemirror with primefaces extensions, it is not working. Primefaces picks up the default vb mode instead of my edited vb mode. What can I do to override it?

I don’t know anything about primefaces, so I don’t think I can help with this.

Please specify which module of primefaces are you using, screenshots may be of great aid. :face_with_monocle: