Click here to Skip to main content
15,894,955 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Comments
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900