title: How to highlight a certain line in ACE editor?
body: <p>I am using ACE editor for my site. I need to select/highlight certain line in the editor. But when it is a large code, ACE editor shows some errors like, when it scrolled down line number changes and the highlighting line number differs from the one I want to highlight. I have searched and found this <a href="https://stackoverflow.com/questions/16024721/how-can-i-highlight-multiple-lines-with-ace">Problem.</a> But actually I can't understand it. Can anyone give some example for highlighting a line in ACE editor ?
  Here is my current code:</p>
  
  <pre><code>var aceLines = document.getElementsByClassName("ace_line");
  var gutters = document.getElementsByClassName("ace_gutter-cell");
  var gutLineNo = parseInt(gutters[0].innerHTML)-1;
  
  if(count1 != 0){
          aceLines[arNum[count]-gutLineNo].style.backgroundColor = "green";
          aceLines[arNum[count1]-gutLineNo].style.backgroundColor = "black";
  
      }else{
          aceLines[arNum[count]-gutLineNo].style.backgroundColor = "green";
      }
  </code></pre>