linking codemirror with a web application

I want to create my own code editor for a new syntax created. I have modified an already existing mode for that syntax.
My question is, how can I link codemirror to my already created web application using java Managedbean or anything else?
There are a lot of textareas on a single page and I want to replace them with codemirror code editor.
please help me in this case. I have tried reading the user manual many times but could not find an answer.

It sounds like you’ll need to learn some web development basics (though I have no idea what a ManagedBean is or how it relates to browser technology). You could start with my book, maybe.