title: dynamically changing syntax using highlightjs
body: <pre><code>var d;
  
  $("#ing").keyup(function(){
  
      d= $("#ing").val();
  
      $("#lipu").html(d);
  });
  </code></pre>
  
  <p>This is the code i am using to change the text inside the div dynamically:</p>
  
  <pre><code>hljs.initHighlightingOnLoad(); 
  </code></pre>
  
  <p>This line of code helps in syntax highlighting when the code is hardcoded in the tags and works perfectly when page loads.</p>
  
  <p>I want to do the exact same thing when I write the text inside the textbox and the highlighted text be displayed inside the div</p>
  
  <p>I have tried to use following functions </p>
  
  <pre><code>hljs.initHighlighting.called = false;
  
  hljs.initHighlighting();
  </code></pre>
  
  <p>But it did not work...</p>
  
  <p>Please help I know there is a very simple solution but I couldn't find it on internet....</p>