Click here to Skip to main content
14,659,317 members
Rate this:
Please Sign up or sign in to vote.
See more:
I need to disable the syntax highlighted text in the codemirror editor since the user may edit some syntax in the editor which will cause the program not to run. So, how to disable the syntax content from editing?

Any help would be greatly appreciated. Thanks in advance.
Pradip R 6-Jan-15 2:37am
There is API documentation already given for this. Take a look at it here. There is a property called readOnly, you just need set the value of it as true.
Vidhya Raju 6-Jan-15 7:53am
I need only some contents of the editor not to be editable.Rest of the content should be editable.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100