-
-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodeMirror support #8
Comments
This is awesome news, I cannot wait for the plugin to be released! |
any updates yet? |
I would really like to see this in wordpress theme editor - code mirror already has a wordpress plugin for back end theme editing - and with zen coding as a tag expander and snippet manager - it would finally be almost worth using instead of editing theme files locally. |
I'll try to create CodeMirror plugin on this weekend, so stay tuned for commit updates |
looking forward to updates |
I've pushed beta version of ZC for CodeMirror plugin, see Downloads section. How to use:
CodeMirror.fromTextArea('code', {
}); Available syntax: 'html', 'xml', 'css', 'xsl', 'haml' Now you're ready to go. Type some abbreviation and hit Tab. You can also call Let me know if it works for you |
Not working by initializing with editor - but works a bit by executing: Tab expands 'html' correctly on mac firefox, but win IE6 expands as 'html'. Same for other tags. All semicolon extensions are ignored - I assume because the 'syntax' property is not set int the correct place the way I am doing it. So, 'html:5' expands to 'html:5/html:5'. I have latest version of code mirror installed. |
Sorry, my code was not formatted correctly - so cut previous post - here it is again: Not working by initializing with editor - but works a bit by executing:
Tab expands 'html' correctly on mac firefox, but win IE6 expands as:
Same for other tags. All semicolon extensions are ignored - I assume because the syntax is not set int the correct place the way I am doing it. So 'html:5' expands into:
|
There were a few bugs in CodeMirror package, including broken minified version and empty abbreviations vocabulary. You may re-download CodeMirror bundle. Also I've created online demo: http://zen-coding.ru/codemirror/ About IE6: I'll investigate this problem but it looks like a CM problem because I'm using provided API only. |
I've tested in IE and confirm that CodeMirror incorrectly performs selected text replacement in this browser. I'll contact Marijn on this issue |
Everything works great on mac by Firefox, and Safari. Thanks for your through efforts. IE6 on WinXP now has error as follows: Line: 168 I set as trusted site, and lowed privacy levels etc... Not the most important issue - as IE6 is a poor quality browser, that is losing popularity - but the best feature of codemirror is that you can use it on any computer where sometimes you don't have a better alternative. Cheers |
I have gone through and tested all the features using zen_editor.showInfo() I had to change the zen_codemirror.js encoding from 'UTF-8 without BOM' to 'UTF-8' to get a correct list of keys to use. There were a few small bugs as follows
All the problems seem to be executing a function twice, I have only bound zen-coding once. |
I can't see any double execution on demo page: http://zen-coding.ru/codemirror/ |
Functions well on Firefox 3.6 & 4 Beta under Windows 7 Enterprise. I've seen one or two errors but couldn't find a reliable way of recreating them. I'll post further updates. |
For me there is double execution happens on demo page too - the same. I am using Firefox 3.6.12 on Mac OS X 10.6.5. I tried from Safari, and there is no problem with double execution. |
Fixed double-execution bug in Firefox and Opera, see demo page |
Heavily tested with various examples found over the net. Not a single problem or quirk, yet. Thank you, thank you, thank you. |
It all works great for me - thanks for your sterling work! |
There are still issues with IE that requires patching CodeMirror and minor issues with expanded abbreviations (sometimes caret placed in wrong position) so I can't officially release it. The latest CM plugin is available on demo page only. |
Fixed IE issue with non-replaceable selection and some minor bugs. It still doesn't work in IE6 because of CM issues. The plugin is officially released (please re-download plugin again). |
Create plugin for CodeMirror: https://github.com/marijnh/CodeMirror/
The text was updated successfully, but these errors were encountered: