This has been solved!
I wrote this code.

$(function (){
  # CodeMirror init
  $('a[href="#tab2"]').click(function (){
    setTimeout(function (){ 
      editor = CodeMirror.fromTextArea(document.getElementById("code"), {
        mode  : "text/x-csrc"
        theme : "solarized dark"
        indentUnit : 4
        tabSize    : 4
        indentWithTabs : false
        enterMode : "indent"
        lineNumbers   : true
        matchBrackets : true
        autofocus : true
      });
    , 100)
});

-- 
You received this message because you are subscribed to the Google Groups 
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to