Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

code mirros apply to all textareas

var textareas = document.querySelectorAll(".textarea-class");
for (var i = 0; i < textareas.length; i++) {
    CodeMirror.fromTextArea(textareas[i], {
        lineWrapping: true,
        mode: "javascript",
        theme: "neat",
        lineNumbers: true
     });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #code #mirros #apply #textareas
ADD COMMENT
Topic
Name
5+5 =