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.