codemirror

codemirror fails when adding </textarea> tag inside it

I'm using codemirror http://marijn.haverbeke.nl/codemirror/ to let users create their own web templates inside a web application. Codemirror works great, except for the time that users have put a tag inside their source code. When I load that up inside code mirror, it breaks everything in the source code that follows after because it ...

Why does CodeMirror not work on Ipad ?

Greetings, http://marijn.haverbeke.nl/codemirror/jstest.html works on Safari on PC, but not on an Ipad. Which is a shame, since I wanted to use it for an app. My question is not only why does it not work, but how should I go about analyzing things that break on Ipad Safari ? T. ...

textArea and CodeMirror: How to fill text area and highlight?

Hello, I have a folloowing: textarea and button, I would like to fill it by predefined text and in meantime make a syntax highlighting with CodeMirror: $('#query1').button() .click(function() { $('#queryText').val(<?php echo $queryArray[0];?>); } Then: <form id="queryFrom" name="que...

Cannot paste text in CodeMirror in Google Chrome

There was no problem some months ago but suddenly "Paste" stop working in CodeMirror in Google Chrome. Both "Ctrl+V", "Shift+Insert" and right-click -> "Paste" do nothing. It's not a bug in my code because even at demo page at http://codemirror.net/jstest.html it doesn't work. ...

Colorizing a dynamically loaded file

Hi! I'm using JQuery to load a file into a textarea and CodeMirror to colorize it, but it seems that they don't play along well: I can get the file to load or the textarea (with existing text) to get colorized, using one or the other, but when I first load it and then colorize it, I end up with a blank textarea. Here is the relevant cod...