How to add a new mode quickly? like emacs org-mode ...

I am try using tagspaces to organize my emacs org-mode documents.

it uses codemirror to highlight the scripts.

however, emacs org-mode is not supported… it is a pity…

I have little knowledgement of Java and javascript, but I think the mode can modified from the markdown mode. The two mode is very similar. Is any step by step suggestions or anyone can achieve it ?

Thanks very much…