title: Best Way to Develop a text code editor with syntax highlighting
body: <p>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 </p>
  
  <p>Can some one suggest me better architectural approaches for building a custom code editor with syntax highlighting and detecting</p>