draggingWithKey is new param, to indicate which key we have down while dragging, false if no key pasteURL is new function to paste a URL into the editor. If CTRL/Cmd is down, add the protocol and // as a prefix draggingWithKeyTest - another new function, this will work out a key that may be down whilst dragging, For now we set to CTRL (for CTRL/Cmd) or false but could take other keys in future dropFile is a final new function, when dropping a file, it will do something. If we're in the editor area, paste the URL, if we're in the files area, we'll move a file (a future update here). Finally, we set mouseDown to false as we may have crossed from one area to another and the event wouldn't trigger and flag not set otherwise Also setting top.ICEcoder.area on mouse move, very useful so we can work with that info (in the case of dropFile above)
#ICEcoder ##Web IDE / browser code editor awesomeness
ICEcoder is a web IDE / browser based code editor, which allows you to develop websites directly within the web browser. It uses the brilliant CodeMirror for code highlighting & editing, with a slick IDE wrapped around it to make the whole thing work.
###Requirements You can run ICEcoder either online or locally, on Linux, Windows or Mac based platforms. The only requirement is to have PHP 5 available (5.3 recommended). You can have this either as a vanilla installation or via a program such as WAMP or XAMPP (for Windows) or MAMP (for Mac).
###Installation
####Step 1: Clone the repo
$ git clone git@github:mattpass/ICEcoder
####Step 2: Place in your document root (online or local)
Put in a new sub-dir URL such as yourdomain.com/_coder or localhost/_coder
Set write permissions (757 or 775 depending on your system) on the 'backups', 'lib', 'test' and 'tmp' folders
(Note: A small number of hosts give internal server error here, if you get this, try 755 instead)
####Step 3: Start coding
Visit the sub-dir URL in your browser and enter a password
Now you're setup, auto-logged in and ready to code!
Suitable for commercial & non-commercial projects, just let me know if it's useful to you and any cool customisations you make to it. I take no responsibility for anything, your usage is all down to you.
It's fully open source and MIT licensed. I'm happy for you to take it, make it your own and customise to your hearts content and/or contribute to this main repo! :)
Plenty of comments included in the code to assist with understanding, customising etc.
Comments, improvements & feedback welcomed!