I am developing a code editor with syntax highlighting and detecting; I am following current architecture for it;
a) Have a text area with z index at 10
b) Have div’s above text area with z index 40 which mask contents typed with custom colors needed for syntax highlighting
Can some one suggest me better architectural approaches for building a custom code editor with syntax highlighting and detecting
Have you checked out AceEditor?
Not sure exactly why you would want to start working on a new editor, which will probably take a lot of time to develop and not use what’s already out there, functional, fully tested and with a big and vibrant community around it.