CodeMirror 2 - (readonly and editable code)
        Posted  
        
            by 
                Happy Hacking
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Happy Hacking
        
        
        
        Published on 2014-06-10T03:19:27Z
        Indexed on 
            2014/06/10
            3:24 UTC
        
        
        Read the original article
        Hit count: 196
        
JavaScript
|codemirror
Can CodeMirror 2 be used to set part of the code to be uneditable?
I do not wish to do it like fully editable code.
Example:
Code inline: example
public static void main(String args[]){
    //content
}
I hope to be able to make Line 1 and 3 uneditable BUT able to edit lines in between them adding characters/spaces increasing the number of lines inside the method as we speak AND still unable to edit the starting and closing bracket lines.
© Stack Overflow or respective owner