maglev-database-explorer 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/MIT-LICENSE +21 -0
- data/README.rdoc +3 -0
- data/Rakefile +40 -0
- data/app/assets/javascripts/maglev-database-explorer/application.js +17 -0
- data/app/assets/javascripts/maglev_database_explorer/def.js +2 -0
- data/app/assets/stylesheets/maglev-database-explorer/application.css +13 -0
- data/app/assets/stylesheets/maglev_database_explorer/def.css +4 -0
- data/app/controllers/maglev_database_explorer/application_controller.rb +4 -0
- data/app/controllers/maglev_database_explorer/code_controller.rb +101 -0
- data/app/controllers/maglev_database_explorer/object_controller.rb +60 -0
- data/app/controllers/maglev_database_explorer/object_explorer_controller.rb +9 -0
- data/app/helpers/maglev_database_explorer/application_helper.rb +4 -0
- data/app/views/layouts/maglev-database-explorer/application.html.erb +14 -0
- data/app/views/maglev_database_explorer/object_explorer/_workspace.html.erb +28 -0
- data/app/views/maglev_database_explorer/object_explorer/index.html.erb +92 -0
- data/config/routes.rb +15 -0
- data/lib/maglev-database-explorer.rb +17 -0
- data/lib/maglev-database-explorer/code_evaluation.rb +36 -0
- data/lib/maglev-database-explorer/database_views.rb +29 -0
- data/lib/maglev-database-explorer/database_views/abstract_dictionary.rb +69 -0
- data/lib/maglev-database-explorer/database_views/abstract_exception.rb +25 -0
- data/lib/maglev-database-explorer/database_views/array.rb +28 -0
- data/lib/maglev-database-explorer/database_views/boolean.rb +12 -0
- data/lib/maglev-database-explorer/database_views/class.rb +46 -0
- data/lib/maglev-database-explorer/database_views/exception.rb +3 -0
- data/lib/maglev-database-explorer/database_views/execblock.rb +5 -0
- data/lib/maglev-database-explorer/database_views/fixnum.rb +5 -0
- data/lib/maglev-database-explorer/database_views/float.rb +6 -0
- data/lib/maglev-database-explorer/database_views/globals.rb +2 -0
- data/lib/maglev-database-explorer/database_views/gsnmethod.rb +29 -0
- data/lib/maglev-database-explorer/database_views/hash.rb +5 -0
- data/lib/maglev-database-explorer/database_views/maglev_record.rb +43 -0
- data/lib/maglev-database-explorer/database_views/module.rb +104 -0
- data/lib/maglev-database-explorer/database_views/nilclass.rb +6 -0
- data/lib/maglev-database-explorer/database_views/object.rb +77 -0
- data/lib/maglev-database-explorer/database_views/proc.rb +4 -0
- data/lib/maglev-database-explorer/database_views/repository.rb +4 -0
- data/lib/maglev-database-explorer/database_views/ruby_workspace.rb +6 -0
- data/lib/maglev-database-explorer/database_views/smalltalk_classes.rb +35 -0
- data/lib/maglev-database-explorer/database_views/smalltalk_classes.st +60 -0
- data/lib/maglev-database-explorer/database_views/string.rb +27 -0
- data/lib/maglev-database-explorer/database_views/symbol.rb +33 -0
- data/lib/maglev-database-explorer/database_views/system.rb +48 -0
- data/lib/maglev-database-explorer/database_views/thread.rb +101 -0
- data/lib/maglev-database-explorer/debug_server.rb +22 -0
- data/lib/maglev-database-explorer/engine.rb +23 -0
- data/lib/maglev-database-explorer/engine_symlinks.rb +19 -0
- data/lib/maglev-database-explorer/halt.rb +33 -0
- data/lib/maglev-database-explorer/ruby_workspace.rb +31 -0
- data/lib/maglev-database-explorer/version.rb +3 -0
- data/lib/tasks/maglev-database-explorer_tasks.rake +4 -0
- data/public/LICENSE +35 -0
- data/public/amber/CHANGELOG +65 -0
- data/public/amber/LICENSE +22 -0
- data/public/amber/Makefile +53 -0
- data/public/amber/README.md +30 -0
- data/public/amber/bin/amber +3 -0
- data/public/amber/bin/amberc +352 -0
- data/public/amber/bin/nodecompile.js +33 -0
- data/public/amber/bin/server +3 -0
- data/public/amber/bin/server.bat +3 -0
- data/public/amber/css/amber-normalize.css +468 -0
- data/public/amber/css/amber-normalize.less +501 -0
- data/public/amber/css/amber.css +539 -0
- data/public/amber/css/documentation.css +84 -0
- data/public/amber/css/profstef.css +75 -0
- data/public/amber/css/style.css +313 -0
- data/public/amber/documentation.html +37 -0
- data/public/amber/examples/Makefile +23 -0
- data/public/amber/examples/README +4 -0
- data/public/amber/examples/android/helloamber/AndroidManifest.xml +19 -0
- data/public/amber/examples/android/helloamber/HelloAmber.st +13 -0
- data/public/amber/examples/android/helloamber/Makefile +56 -0
- data/public/amber/examples/android/helloamber/README.md +80 -0
- data/public/amber/examples/android/helloamber/ant.properties +17 -0
- data/public/amber/examples/android/helloamber/assets/index.html +15 -0
- data/public/amber/examples/android/helloamber/assets/jquery-1.7.2.min.js +4 -0
- data/public/amber/examples/android/helloamber/build.xml +83 -0
- data/public/amber/examples/android/helloamber/local.properties +10 -0
- data/public/amber/examples/android/helloamber/proguard-project.txt +20 -0
- data/public/amber/examples/android/helloamber/project.properties +14 -0
- data/public/amber/examples/android/helloamber/res/layout/main.xml +6 -0
- data/public/amber/examples/android/helloamber/res/values/strings.xml +4 -0
- data/public/amber/examples/android/helloamber/src/org/amberlang/android/helloamber/HelloAmber.java +59 -0
- data/public/amber/examples/myproject/index.html +16 -0
- data/public/amber/examples/nodejs/README +9 -0
- data/public/amber/examples/nodejs/benchfib/Benchfib.st +124 -0
- data/public/amber/examples/nodejs/benchfib/Makefile +8 -0
- data/public/amber/examples/nodejs/benchfib/benchfib +1 -0
- data/public/amber/examples/nodejs/hello/Hello.st +9 -0
- data/public/amber/examples/nodejs/hello/Makefile +8 -0
- data/public/amber/examples/nodejs/hello/README +13 -0
- data/public/amber/examples/nodejs/hello/hello +1 -0
- data/public/amber/examples/nodejs/meta/Makefile +8 -0
- data/public/amber/examples/nodejs/meta/MyScript.st +27 -0
- data/public/amber/examples/nodejs/meta/meta +1 -0
- data/public/amber/examples/nodejs/pystone/Makefile +8 -0
- data/public/amber/examples/nodejs/pystone/Pystone.st +306 -0
- data/public/amber/examples/nodejs/pystone/pystone +1 -0
- data/public/amber/examples/nodejs/trivialserver/Makefile +8 -0
- data/public/amber/examples/nodejs/trivialserver/TrivialServer.st +51 -0
- data/public/amber/examples/nodejs/trivialserver/trivial +1 -0
- data/public/amber/examples/presentation/esug2011/images/asterix.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/background_box.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/background_header.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/balloon.jpg +0 -0
- data/public/amber/examples/presentation/esug2011/images/balloon_header.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/devices.jpg +0 -0
- data/public/amber/examples/presentation/esug2011/images/enyo.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/ide_star_wars.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/nodejs.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/terminal.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/webos.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/images/amber.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/images/ambrhino.jpg +0 -0
- data/public/amber/examples/presentation/fosdem2012/images/nodejs.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/images/pharo.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/images/php.gif +0 -0
- data/public/amber/examples/presentation/fosdem2012/images/rails.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/arrow-next.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/arrow-prev.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/closedhand.cur +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/openhand.cur +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/shadow-top-back.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/shadow-top-forward.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/shadow.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.booklet.1.2.0.css +100 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.booklet.1.2.0.js +1232 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.booklet.1.2.0.min.js +13 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.easing.1.3.js +38 -0
- data/public/amber/examples/presentation/index.html +17 -0
- data/public/amber/examples/presentation/js/Presentation.deploy.js +1922 -0
- data/public/amber/examples/presentation/js/Presentation.js +2712 -0
- data/public/amber/examples/presentation/st/Presentation.st +1996 -0
- data/public/amber/examples/trysmalltalk/index.html +18 -0
- data/public/amber/examples/trysmalltalk/js/TrySmalltalk.deploy.js +837 -0
- data/public/amber/examples/trysmalltalk/js/TrySmalltalk.js +1206 -0
- data/public/amber/examples/trysmalltalk/st/TrySmalltalk.st +964 -0
- data/public/amber/examples/twitterwall/css/twitterwall.css +19 -0
- data/public/amber/examples/twitterwall/index.html +35 -0
- data/public/amber/examples/twitterwall/js/TwitterWall.deploy.js +116 -0
- data/public/amber/examples/twitterwall/js/TwitterWall.js +146 -0
- data/public/amber/examples/twitterwall/st/TwitterWall.st +91 -0
- data/public/amber/examples/webos/README +11 -0
- data/public/amber/examples/webos/eris/DuckQwaq.wav +0 -0
- data/public/amber/examples/webos/eris/EnyoAmber.st +36 -0
- data/public/amber/examples/webos/eris/Eris.css +0 -0
- data/public/amber/examples/webos/eris/Eris.st +86 -0
- data/public/amber/examples/webos/eris/Makefile +37 -0
- data/public/amber/examples/webos/eris/README +3 -0
- data/public/amber/examples/webos/eris/appinfo.json +10 -0
- data/public/amber/examples/webos/eris/depends.js +4 -0
- data/public/amber/examples/webos/eris/index.html +12 -0
- data/public/amber/examples/webos/helloamber/EnyoAmber.st +36 -0
- data/public/amber/examples/webos/helloamber/HelloAmber.st +86 -0
- data/public/amber/examples/webos/helloamber/Makefile +38 -0
- data/public/amber/examples/webos/helloamber/README +5 -0
- data/public/amber/examples/webos/helloamber/appinfo.json +10 -0
- data/public/amber/examples/webos/helloamber/depends.js +3 -0
- data/public/amber/examples/webos/helloamber/index.html +12 -0
- data/public/amber/favicon.ico +0 -0
- data/public/amber/images/amber.png +0 -0
- data/public/amber/images/amber.svg +706 -0
- data/public/amber/images/amber_small.png +0 -0
- data/public/amber/images/off.amber.png +0 -0
- data/public/amber/images/off.png +0 -0
- data/public/amber/images/offHover.amber.png +0 -0
- data/public/amber/images/offHover.png +0 -0
- data/public/amber/images/presentation.png +0 -0
- data/public/amber/images/profstef.png +0 -0
- data/public/amber/images/sprite.amber.png +0 -0
- data/public/amber/images/sprite.png +0 -0
- data/public/amber/images/tinylogo.amber.png +0 -0
- data/public/amber/images/tinylogo.png +0 -0
- data/public/amber/images/twitterwall.png +0 -0
- data/public/amber/index.html +55 -0
- data/public/amber/js/Additional-Examples.deploy.js +15 -0
- data/public/amber/js/Additional-Examples.js +21 -0
- data/public/amber/js/Benchfib.deploy.js +132 -0
- data/public/amber/js/Benchfib.js +167 -0
- data/public/amber/js/Canvas.deploy.js +2446 -0
- data/public/amber/js/Canvas.js +3547 -0
- data/public/amber/js/Compiler-Tests.deploy.js +97 -0
- data/public/amber/js/Compiler-Tests.js +137 -0
- data/public/amber/js/Compiler.deploy.js +1877 -0
- data/public/amber/js/Compiler.js +2622 -0
- data/public/amber/js/Documentation.deploy.js +961 -0
- data/public/amber/js/Documentation.js +1376 -0
- data/public/amber/js/Examples.deploy.js +53 -0
- data/public/amber/js/Examples.js +73 -0
- data/public/amber/js/IDE.deploy.js +3557 -0
- data/public/amber/js/IDE.js +5002 -0
- data/public/amber/js/Kernel-Announcements.deploy.js +107 -0
- data/public/amber/js/Kernel-Announcements.js +152 -0
- data/public/amber/js/Kernel-Classes.deploy.js +774 -0
- data/public/amber/js/Kernel-Classes.js +1095 -0
- data/public/amber/js/Kernel-Collections.deploy.js +3121 -0
- data/public/amber/js/Kernel-Collections.js +4427 -0
- data/public/amber/js/Kernel-Exceptions.deploy.js +244 -0
- data/public/amber/js/Kernel-Exceptions.js +349 -0
- data/public/amber/js/Kernel-Methods.deploy.js +573 -0
- data/public/amber/js/Kernel-Methods.js +807 -0
- data/public/amber/js/Kernel-Objects.deploy.js +2877 -0
- data/public/amber/js/Kernel-Objects.js +4107 -0
- data/public/amber/js/Kernel-Tests.deploy.js +1513 -0
- data/public/amber/js/Kernel-Tests.js +2053 -0
- data/public/amber/js/Kernel-Transcript.deploy.js +142 -0
- data/public/amber/js/Kernel-Transcript.js +202 -0
- data/public/amber/js/Maglev-Core.deploy.js +2967 -0
- data/public/amber/js/Maglev-Core.js +4202 -0
- data/public/amber/js/Maglev-Database-Explorer.deploy.js +4426 -0
- data/public/amber/js/Maglev-Database-Explorer.js +6162 -0
- data/public/amber/js/Maglev-Vendor.deploy.js +350 -0
- data/public/amber/js/Maglev-Vendor.js +465 -0
- data/public/amber/js/README.md +5 -0
- data/public/amber/js/SUnit.deploy.js +351 -0
- data/public/amber/js/SUnit.js +501 -0
- data/public/amber/js/amber.js +273 -0
- data/public/amber/js/boot.js +602 -0
- data/public/amber/js/compat.js +22 -0
- data/public/amber/js/init.js +9 -0
- data/public/amber/js/lib/CodeMirror/LICENSE +19 -0
- data/public/amber/js/lib/CodeMirror/active-line.js +39 -0
- data/public/amber/js/lib/CodeMirror/amber.css +21 -0
- data/public/amber/js/lib/CodeMirror/codemirror.css +67 -0
- data/public/amber/js/lib/CodeMirror/codemirror.js +2144 -0
- data/public/amber/js/lib/CodeMirror/smalltalk.js +134 -0
- data/public/amber/js/lib/jQuery/jquery-1.4.4.min.js +167 -0
- data/public/amber/js/lib/jQuery/jquery-1.6.4.min.js +4 -0
- data/public/amber/js/lib/jQuery/jquery-ui-1.8.16.custom.min.js +791 -0
- data/public/amber/js/lib/jQuery/jquery.textarea.js +267 -0
- data/public/amber/js/lib/peg-0.6.2.min.js +2 -0
- data/public/amber/js/lib/showdown.js +419 -0
- data/public/amber/js/parser.js +4222 -0
- data/public/amber/js/parser.pegjs +223 -0
- data/public/amber/learn.html +40 -0
- data/public/amber/repl/Makefile +8 -0
- data/public/amber/repl/REPL.js +124 -0
- data/public/amber/repl/REPL.st +56 -0
- data/public/amber/repl/amber.js +18085 -0
- data/public/amber/server/FileServer.st +576 -0
- data/public/amber/server/Makefile +8 -0
- data/public/amber/server/server.js +13049 -0
- data/public/amber/st/Benchfib.st +124 -0
- data/public/amber/st/Canvas.st +968 -0
- data/public/amber/st/Compiler-Tests.st +471 -0
- data/public/amber/st/Compiler.st +1445 -0
- data/public/amber/st/Documentation.st +758 -0
- data/public/amber/st/Examples.st +38 -0
- data/public/amber/st/IDE.st +2404 -0
- data/public/amber/st/Kernel-Announcements.st +61 -0
- data/public/amber/st/Kernel-Classes.st +462 -0
- data/public/amber/st/Kernel-Collections.st +1611 -0
- data/public/amber/st/Kernel-Exceptions.st +124 -0
- data/public/amber/st/Kernel-Methods.st +291 -0
- data/public/amber/st/Kernel-Objects.st +1587 -0
- data/public/amber/st/Kernel-Tests.st +953 -0
- data/public/amber/st/Kernel-Transcript.st +70 -0
- data/public/amber/st/Maglev-Core.st +1659 -0
- data/public/amber/st/Maglev-Database-Explorer.st +3085 -0
- data/public/amber/st/Maglev-Vendor.st +213 -0
- data/public/amber/st/Makefile +104 -0
- data/public/amber/st/README.md +4 -0
- data/public/amber/st/SUnit.st +172 -0
- data/public/css/bootstrap-combined.no-icons.min.css +731 -0
- data/public/css/bootstrap.css +6811 -0
- data/public/css/jquery-ui.min.css +5 -0
- data/public/css/smalltalk_code.css +42 -0
- data/public/css/style.css +209 -0
- data/public/images/maglev-logo.gif +0 -0
- data/public/images/rails_tiny.png +0 -0
- data/public/images/ruby.png +0 -0
- data/public/images/ruby_smalltalk_bridge.png +0 -0
- data/public/images/smalltalk.png +0 -0
- data/public/libs/bootstrap.min.js +7 -0
- data/public/libs/codemirror/CONTRIBUTING.md +72 -0
- data/public/libs/codemirror/LICENSE +23 -0
- data/public/libs/codemirror/README.md +11 -0
- data/public/libs/codemirror/addon/dialog/dialog.css +32 -0
- data/public/libs/codemirror/addon/dialog/dialog.js +80 -0
- data/public/libs/codemirror/addon/display/placeholder.js +54 -0
- data/public/libs/codemirror/addon/edit/closebrackets.js +54 -0
- data/public/libs/codemirror/addon/edit/closetag.js +86 -0
- data/public/libs/codemirror/addon/edit/continuecomment.js +44 -0
- data/public/libs/codemirror/addon/edit/continuelist.js +25 -0
- data/public/libs/codemirror/addon/edit/matchbrackets.js +82 -0
- data/public/libs/codemirror/addon/fold/brace-fold.js +31 -0
- data/public/libs/codemirror/addon/fold/foldcode.js +32 -0
- data/public/libs/codemirror/addon/fold/indent-fold.js +11 -0
- data/public/libs/codemirror/addon/fold/xml-fold.js +64 -0
- data/public/libs/codemirror/addon/hint/html-hint.js +582 -0
- data/public/libs/codemirror/addon/hint/javascript-hint.js +142 -0
- data/public/libs/codemirror/addon/hint/pig-hint.js +117 -0
- data/public/libs/codemirror/addon/hint/python-hint.js +93 -0
- data/public/libs/codemirror/addon/hint/show-hint.css +38 -0
- data/public/libs/codemirror/addon/hint/show-hint.js +180 -0
- data/public/libs/codemirror/addon/hint/xml-hint.js +118 -0
- data/public/libs/codemirror/addon/lint/javascript-lint.js +127 -0
- data/public/libs/codemirror/addon/lint/json-lint.js +14 -0
- data/public/libs/codemirror/addon/lint/lint.css +96 -0
- data/public/libs/codemirror/addon/lint/lint.js +197 -0
- data/public/libs/codemirror/addon/mode/loadmode.js +51 -0
- data/public/libs/codemirror/addon/mode/multiplex.js +95 -0
- data/public/libs/codemirror/addon/mode/overlay.js +59 -0
- data/public/libs/codemirror/addon/runmode/colorize.js +29 -0
- data/public/libs/codemirror/addon/runmode/runmode-standalone.js +130 -0
- data/public/libs/codemirror/addon/runmode/runmode.js +52 -0
- data/public/libs/codemirror/addon/runmode/runmode.node.js +89 -0
- data/public/libs/codemirror/addon/search/match-highlighter.js +60 -0
- data/public/libs/codemirror/addon/search/search.js +131 -0
- data/public/libs/codemirror/addon/search/searchcursor.js +133 -0
- data/public/libs/codemirror/addon/selection/active-line.js +39 -0
- data/public/libs/codemirror/addon/selection/mark-selection.js +34 -0
- data/public/libs/codemirror/bin/compress +91 -0
- data/public/libs/codemirror/bin/lint +11 -0
- data/public/libs/codemirror/demo/activeline.html +70 -0
- data/public/libs/codemirror/demo/bidi.html +61 -0
- data/public/libs/codemirror/demo/btree.html +87 -0
- data/public/libs/codemirror/demo/buffers.html +98 -0
- data/public/libs/codemirror/demo/changemode.html +50 -0
- data/public/libs/codemirror/demo/closebrackets.html +63 -0
- data/public/libs/codemirror/demo/closetag.html +37 -0
- data/public/libs/codemirror/demo/complete.html +70 -0
- data/public/libs/codemirror/demo/emacs.html +60 -0
- data/public/libs/codemirror/demo/folding.html +69 -0
- data/public/libs/codemirror/demo/fullscreen.html +147 -0
- data/public/libs/codemirror/demo/html5complete.html +92 -0
- data/public/libs/codemirror/demo/indentwrap.html +49 -0
- data/public/libs/codemirror/demo/lint.html +90 -0
- data/public/libs/codemirror/demo/loadmode.html +40 -0
- data/public/libs/codemirror/demo/marker.html +59 -0
- data/public/libs/codemirror/demo/markselection.html +36 -0
- data/public/libs/codemirror/demo/matchhighlighter.html +38 -0
- data/public/libs/codemirror/demo/multiplex.html +60 -0
- data/public/libs/codemirror/demo/mustache.html +59 -0
- data/public/libs/codemirror/demo/placeholder.html +36 -0
- data/public/libs/codemirror/demo/preview.html +76 -0
- data/public/libs/codemirror/demo/resize.html +49 -0
- data/public/libs/codemirror/demo/runmode.html +50 -0
- data/public/libs/codemirror/demo/search.html +85 -0
- data/public/libs/codemirror/demo/spanaffectswrapping_shim.html +73 -0
- data/public/libs/codemirror/demo/theme.html +89 -0
- data/public/libs/codemirror/demo/variableheight.html +52 -0
- data/public/libs/codemirror/demo/vim.html +65 -0
- data/public/libs/codemirror/demo/visibletabs.html +53 -0
- data/public/libs/codemirror/demo/widget.html +74 -0
- data/public/libs/codemirror/demo/xmlcomplete.html +81 -0
- data/public/libs/codemirror/doc/baboon.png +0 -0
- data/public/libs/codemirror/doc/baboon_vector.svg +153 -0
- data/public/libs/codemirror/doc/compress.html +200 -0
- data/public/libs/codemirror/doc/docs.css +167 -0
- data/public/libs/codemirror/doc/internals.html +505 -0
- data/public/libs/codemirror/doc/manual.html +1897 -0
- data/public/libs/codemirror/doc/modes.html +94 -0
- data/public/libs/codemirror/doc/oldrelease.html +492 -0
- data/public/libs/codemirror/doc/realworld.html +100 -0
- data/public/libs/codemirror/doc/reporting.html +60 -0
- data/public/libs/codemirror/doc/upgrade_v2.2.html +98 -0
- data/public/libs/codemirror/doc/upgrade_v3.html +227 -0
- data/public/libs/codemirror/index.html +487 -0
- data/public/libs/codemirror/keymap/emacs.js +30 -0
- data/public/libs/codemirror/keymap/vim.js +3044 -0
- data/public/libs/codemirror/lib/codemirror.css +253 -0
- data/public/libs/codemirror/lib/codemirror.js +5585 -0
- data/public/libs/codemirror/mode/apl/apl.js +160 -0
- data/public/libs/codemirror/mode/apl/index.html +61 -0
- data/public/libs/codemirror/mode/asterisk/asterisk.js +183 -0
- data/public/libs/codemirror/mode/asterisk/index.html +142 -0
- data/public/libs/codemirror/mode/clike/clike.js +302 -0
- data/public/libs/codemirror/mode/clike/index.html +103 -0
- data/public/libs/codemirror/mode/clike/scala.html +767 -0
- data/public/libs/codemirror/mode/clojure/clojure.js +222 -0
- data/public/libs/codemirror/mode/clojure/index.html +76 -0
- data/public/libs/codemirror/mode/coffeescript/LICENSE +22 -0
- data/public/libs/codemirror/mode/coffeescript/coffeescript.js +346 -0
- data/public/libs/codemirror/mode/coffeescript/index.html +728 -0
- data/public/libs/codemirror/mode/commonlisp/commonlisp.js +101 -0
- data/public/libs/codemirror/mode/commonlisp/index.html +165 -0
- data/public/libs/codemirror/mode/css/css.js +567 -0
- data/public/libs/codemirror/mode/css/index.html +58 -0
- data/public/libs/codemirror/mode/css/scss.html +145 -0
- data/public/libs/codemirror/mode/css/scss_test.js +80 -0
- data/public/libs/codemirror/mode/css/test.js +113 -0
- data/public/libs/codemirror/mode/d/d.js +205 -0
- data/public/libs/codemirror/mode/d/index.html +262 -0
- data/public/libs/codemirror/mode/diff/diff.js +32 -0
- data/public/libs/codemirror/mode/diff/index.html +105 -0
- data/public/libs/codemirror/mode/ecl/ecl.js +192 -0
- data/public/libs/codemirror/mode/ecl/index.html +39 -0
- data/public/libs/codemirror/mode/erlang/erlang.js +463 -0
- data/public/libs/codemirror/mode/erlang/index.html +64 -0
- data/public/libs/codemirror/mode/gas/gas.js +326 -0
- data/public/libs/codemirror/mode/gas/index.html +57 -0
- data/public/libs/codemirror/mode/gfm/gfm.js +96 -0
- data/public/libs/codemirror/mode/gfm/index.html +74 -0
- data/public/libs/codemirror/mode/gfm/test.js +112 -0
- data/public/libs/codemirror/mode/go/go.js +165 -0
- data/public/libs/codemirror/mode/go/index.html +74 -0
- data/public/libs/codemirror/mode/groovy/groovy.js +210 -0
- data/public/libs/codemirror/mode/groovy/index.html +73 -0
- data/public/libs/codemirror/mode/haskell/haskell.js +242 -0
- data/public/libs/codemirror/mode/haskell/index.html +62 -0
- data/public/libs/codemirror/mode/haxe/haxe.js +429 -0
- data/public/libs/codemirror/mode/haxe/index.html +90 -0
- data/public/libs/codemirror/mode/htmlembedded/htmlembedded.js +73 -0
- data/public/libs/codemirror/mode/htmlembedded/index.html +49 -0
- data/public/libs/codemirror/mode/htmlmixed/htmlmixed.js +104 -0
- data/public/libs/codemirror/mode/htmlmixed/index.html +73 -0
- data/public/libs/codemirror/mode/http/http.js +98 -0
- data/public/libs/codemirror/mode/http/index.html +32 -0
- data/public/libs/codemirror/mode/javascript/index.html +92 -0
- data/public/libs/codemirror/mode/javascript/javascript.js +467 -0
- data/public/libs/codemirror/mode/javascript/typescript.html +48 -0
- data/public/libs/codemirror/mode/jinja2/index.html +38 -0
- data/public/libs/codemirror/mode/jinja2/jinja2.js +42 -0
- data/public/libs/codemirror/mode/less/index.html +741 -0
- data/public/libs/codemirror/mode/less/less.js +266 -0
- data/public/libs/codemirror/mode/livescript/LICENSE +23 -0
- data/public/libs/codemirror/mode/livescript/index.html +446 -0
- data/public/libs/codemirror/mode/livescript/livescript.js +267 -0
- data/public/libs/codemirror/mode/livescript/livescript.ls +266 -0
- data/public/libs/codemirror/mode/lua/index.html +74 -0
- data/public/libs/codemirror/mode/lua/lua.js +140 -0
- data/public/libs/codemirror/mode/markdown/index.html +344 -0
- data/public/libs/codemirror/mode/markdown/markdown.js +526 -0
- data/public/libs/codemirror/mode/markdown/test.js +636 -0
- data/public/libs/codemirror/mode/meta.js +75 -0
- data/public/libs/codemirror/mode/mirc/index.html +149 -0
- data/public/libs/codemirror/mode/mirc/mirc.js +177 -0
- data/public/libs/codemirror/mode/ntriples/index.html +33 -0
- data/public/libs/codemirror/mode/ntriples/ntriples.js +170 -0
- data/public/libs/codemirror/mode/ocaml/index.html +131 -0
- data/public/libs/codemirror/mode/ocaml/ocaml.js +113 -0
- data/public/libs/codemirror/mode/pascal/LICENSE +7 -0
- data/public/libs/codemirror/mode/pascal/index.html +48 -0
- data/public/libs/codemirror/mode/pascal/pascal.js +94 -0
- data/public/libs/codemirror/mode/perl/LICENSE +19 -0
- data/public/libs/codemirror/mode/perl/index.html +62 -0
- data/public/libs/codemirror/mode/perl/perl.js +816 -0
- data/public/libs/codemirror/mode/php/index.html +51 -0
- data/public/libs/codemirror/mode/php/php.js +129 -0
- data/public/libs/codemirror/mode/pig/index.html +42 -0
- data/public/libs/codemirror/mode/pig/pig.js +171 -0
- data/public/libs/codemirror/mode/properties/index.html +41 -0
- data/public/libs/codemirror/mode/properties/properties.js +63 -0
- data/public/libs/codemirror/mode/python/LICENSE.txt +21 -0
- data/public/libs/codemirror/mode/python/index.html +135 -0
- data/public/libs/codemirror/mode/python/python.js +340 -0
- data/public/libs/codemirror/mode/q/index.html +131 -0
- data/public/libs/codemirror/mode/q/q.js +124 -0
- data/public/libs/codemirror/mode/r/LICENSE +24 -0
- data/public/libs/codemirror/mode/r/index.html +74 -0
- data/public/libs/codemirror/mode/r/r.js +141 -0
- data/public/libs/codemirror/mode/rpm/changes/changes.js +19 -0
- data/public/libs/codemirror/mode/rpm/changes/index.html +53 -0
- data/public/libs/codemirror/mode/rpm/spec/index.html +99 -0
- data/public/libs/codemirror/mode/rpm/spec/spec.css +5 -0
- data/public/libs/codemirror/mode/rpm/spec/spec.js +66 -0
- data/public/libs/codemirror/mode/rst/LICENSE.txt +21 -0
- data/public/libs/codemirror/mode/rst/index.html +524 -0
- data/public/libs/codemirror/mode/rst/rst.js +550 -0
- data/public/libs/codemirror/mode/ruby/LICENSE +24 -0
- data/public/libs/codemirror/mode/ruby/index.html +173 -0
- data/public/libs/codemirror/mode/ruby/ruby.js +197 -0
- data/public/libs/codemirror/mode/rust/index.html +48 -0
- data/public/libs/codemirror/mode/rust/rust.js +432 -0
- data/public/libs/codemirror/mode/sass/index.html +54 -0
- data/public/libs/codemirror/mode/sass/sass.js +349 -0
- data/public/libs/codemirror/mode/scheme/index.html +65 -0
- data/public/libs/codemirror/mode/scheme/scheme.js +230 -0
- data/public/libs/codemirror/mode/shell/index.html +51 -0
- data/public/libs/codemirror/mode/shell/shell.js +118 -0
- data/public/libs/codemirror/mode/sieve/LICENSE +19 -0
- data/public/libs/codemirror/mode/sieve/index.html +81 -0
- data/public/libs/codemirror/mode/sieve/sieve.js +183 -0
- data/public/libs/codemirror/mode/smalltalk/index.html +57 -0
- data/public/libs/codemirror/mode/smalltalk/smalltalk.js +141 -0
- data/public/libs/codemirror/mode/smarty/index.html +83 -0
- data/public/libs/codemirror/mode/smarty/smarty.js +148 -0
- data/public/libs/codemirror/mode/sparql/index.html +42 -0
- data/public/libs/codemirror/mode/sparql/sparql.js +143 -0
- data/public/libs/codemirror/mode/sql/index.html +68 -0
- data/public/libs/codemirror/mode/sql/sql.js +268 -0
- data/public/libs/codemirror/mode/stex/index.html +98 -0
- data/public/libs/codemirror/mode/stex/stex.js +246 -0
- data/public/libs/codemirror/mode/stex/test.js +117 -0
- data/public/libs/codemirror/mode/tcl/index.html +129 -0
- data/public/libs/codemirror/mode/tcl/tcl.js +131 -0
- data/public/libs/codemirror/mode/tiddlywiki/index.html +142 -0
- data/public/libs/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
- data/public/libs/codemirror/mode/tiddlywiki/tiddlywiki.js +353 -0
- data/public/libs/codemirror/mode/tiki/index.html +81 -0
- data/public/libs/codemirror/mode/tiki/tiki.css +26 -0
- data/public/libs/codemirror/mode/tiki/tiki.js +308 -0
- data/public/libs/codemirror/mode/turtle/index.html +39 -0
- data/public/libs/codemirror/mode/turtle/turtle.js +145 -0
- data/public/libs/codemirror/mode/vb/LICENSE.txt +21 -0
- data/public/libs/codemirror/mode/vb/index.html +88 -0
- data/public/libs/codemirror/mode/vb/vb.js +259 -0
- data/public/libs/codemirror/mode/vbscript/index.html +42 -0
- data/public/libs/codemirror/mode/vbscript/vbscript.js +26 -0
- data/public/libs/codemirror/mode/velocity/index.html +103 -0
- data/public/libs/codemirror/mode/velocity/velocity.js +144 -0
- data/public/libs/codemirror/mode/verilog/index.html +121 -0
- data/public/libs/codemirror/mode/verilog/verilog.js +182 -0
- data/public/libs/codemirror/mode/xml/index.html +45 -0
- data/public/libs/codemirror/mode/xml/xml.js +328 -0
- data/public/libs/codemirror/mode/xquery/LICENSE +20 -0
- data/public/libs/codemirror/mode/xquery/index.html +221 -0
- data/public/libs/codemirror/mode/xquery/test.js +64 -0
- data/public/libs/codemirror/mode/xquery/xquery.js +450 -0
- data/public/libs/codemirror/mode/yaml/index.html +68 -0
- data/public/libs/codemirror/mode/yaml/yaml.js +95 -0
- data/public/libs/codemirror/mode/z80/index.html +39 -0
- data/public/libs/codemirror/mode/z80/z80.js +85 -0
- data/public/libs/codemirror/package.json +21 -0
- data/public/libs/codemirror/test/doc_test.js +329 -0
- data/public/libs/codemirror/test/driver.js +138 -0
- data/public/libs/codemirror/test/index.html +182 -0
- data/public/libs/codemirror/test/lint/acorn.js +1593 -0
- data/public/libs/codemirror/test/lint/lint.js +112 -0
- data/public/libs/codemirror/test/lint/parse-js.js +1372 -0
- data/public/libs/codemirror/test/lint/walk.js +216 -0
- data/public/libs/codemirror/test/mode_test.css +10 -0
- data/public/libs/codemirror/test/mode_test.js +192 -0
- data/public/libs/codemirror/test/phantom_driver.js +31 -0
- data/public/libs/codemirror/test/run.js +33 -0
- data/public/libs/codemirror/test/test.js +1400 -0
- data/public/libs/codemirror/test/vim_test.js +1688 -0
- data/public/libs/codemirror/theme/ambiance-mobile.css +5 -0
- data/public/libs/codemirror/theme/ambiance.css +75 -0
- data/public/libs/codemirror/theme/blackboard.css +25 -0
- data/public/libs/codemirror/theme/cobalt.css +18 -0
- data/public/libs/codemirror/theme/eclipse.css +25 -0
- data/public/libs/codemirror/theme/elegant.css +10 -0
- data/public/libs/codemirror/theme/erlang-dark.css +21 -0
- data/public/libs/codemirror/theme/lesser-dark.css +44 -0
- data/public/libs/codemirror/theme/midnight.css +52 -0
- data/public/libs/codemirror/theme/monokai.css +28 -0
- data/public/libs/codemirror/theme/neat.css +9 -0
- data/public/libs/codemirror/theme/night.css +21 -0
- data/public/libs/codemirror/theme/rubyblue.css +21 -0
- data/public/libs/codemirror/theme/solarized.css +207 -0
- data/public/libs/codemirror/theme/twilight.css +26 -0
- data/public/libs/codemirror/theme/vibrant-ink.css +27 -0
- data/public/libs/codemirror/theme/xq-dark.css +46 -0
- data/public/libs/codemirror/theme/xq-light.css +43 -0
- data/public/libs/font-awesome/css/font-awesome-ie7.css +983 -0
- data/public/libs/font-awesome/css/font-awesome-ie7.min.css +24 -0
- data/public/libs/font-awesome/css/font-awesome.css +1268 -0
- data/public/libs/font-awesome/css/font-awesome.min.css +24 -0
- data/public/libs/font-awesome/font/FontAwesome.otf +0 -0
- data/public/libs/font-awesome/font/fontawesome-webfont.eot +0 -0
- data/public/libs/font-awesome/font/fontawesome-webfont.svg +339 -0
- data/public/libs/font-awesome/font/fontawesome-webfont.ttf +0 -0
- data/public/libs/font-awesome/font/fontawesome-webfont.woff +0 -0
- data/public/libs/font-awesome/less/bootstrap.less +78 -0
- data/public/libs/font-awesome/less/core.less +132 -0
- data/public/libs/font-awesome/less/extras.less +79 -0
- data/public/libs/font-awesome/less/font-awesome-ie7.less +413 -0
- data/public/libs/font-awesome/less/font-awesome.less +32 -0
- data/public/libs/font-awesome/less/icons.less +330 -0
- data/public/libs/font-awesome/less/mixins.less +34 -0
- data/public/libs/font-awesome/less/path.less +15 -0
- data/public/libs/font-awesome/less/variables.less +9 -0
- data/public/libs/jquery-1.10.0.min.js +6 -0
- data/public/libs/jquery-ui.min.js +12 -0
- data/public/libs/jquery.jsPlumb-1.4.0-all.js +9571 -0
- data/public/libs/jquery.livequery.js +226 -0
- data/public/libs/jsPlumbInitializer.js +72 -0
- data/public/libs/jstree/README.txt +10 -0
- data/public/libs/jstree/_demo/_dump.sql +20 -0
- data/public/libs/jstree/_demo/_inc/__mysql_errors.log +0 -0
- data/public/libs/jstree/_demo/_inc/class._database.php +146 -0
- data/public/libs/jstree/_demo/_inc/class._database_i.php +152 -0
- data/public/libs/jstree/_demo/_inc/class.tree.php +602 -0
- data/public/libs/jstree/_demo/_install.txt +6 -0
- data/public/libs/jstree/_demo/config.php +14 -0
- data/public/libs/jstree/_demo/file.png +0 -0
- data/public/libs/jstree/_demo/folder.png +0 -0
- data/public/libs/jstree/_demo/index.html +461 -0
- data/public/libs/jstree/_demo/root.png +0 -0
- data/public/libs/jstree/_demo/server.php +69 -0
- data/public/libs/jstree/_docs/!style.css +48 -0
- data/public/libs/jstree/_docs/_drive.png +0 -0
- data/public/libs/jstree/_docs/_html_data.html +2 -0
- data/public/libs/jstree/_docs/_json_data.json +4 -0
- data/public/libs/jstree/_docs/_search_data.json +6 -0
- data/public/libs/jstree/_docs/_search_result.json +1 -0
- data/public/libs/jstree/_docs/_xml_flat.xml +12 -0
- data/public/libs/jstree/_docs/_xml_nest.xml +18 -0
- data/public/libs/jstree/_docs/checkbox.html +171 -0
- data/public/libs/jstree/_docs/contextmenu.html +121 -0
- data/public/libs/jstree/_docs/cookies.html +97 -0
- data/public/libs/jstree/_docs/core.html +689 -0
- data/public/libs/jstree/_docs/crrm.html +316 -0
- data/public/libs/jstree/_docs/dnd.html +199 -0
- data/public/libs/jstree/_docs/hotkeys.html +82 -0
- data/public/libs/jstree/_docs/html_data.html +175 -0
- data/public/libs/jstree/_docs/index.html +86 -0
- data/public/libs/jstree/_docs/json_data.html +249 -0
- data/public/libs/jstree/_docs/languages.html +152 -0
- data/public/libs/jstree/_docs/logo.png +0 -0
- data/public/libs/jstree/_docs/search.html +153 -0
- data/public/libs/jstree/_docs/sort.html +85 -0
- data/public/libs/jstree/_docs/syntax/!script.js +2232 -0
- data/public/libs/jstree/_docs/syntax/!style.css +511 -0
- data/public/libs/jstree/_docs/syntax/clipboard.swf +0 -0
- data/public/libs/jstree/_docs/syntax/help.png +0 -0
- data/public/libs/jstree/_docs/syntax/magnifier.png +0 -0
- data/public/libs/jstree/_docs/syntax/page_white_code.png +0 -0
- data/public/libs/jstree/_docs/syntax/page_white_copy.png +0 -0
- data/public/libs/jstree/_docs/syntax/printer.png +0 -0
- data/public/libs/jstree/_docs/syntax/wrapping.png +0 -0
- data/public/libs/jstree/_docs/themeroller.html +107 -0
- data/public/libs/jstree/_docs/themes.html +127 -0
- data/public/libs/jstree/_docs/types.html +178 -0
- data/public/libs/jstree/_docs/ui.html +197 -0
- data/public/libs/jstree/_docs/unique.html +85 -0
- data/public/libs/jstree/_docs/xml_data.html +218 -0
- data/public/libs/jstree/_lib/jquery.cookie.js +96 -0
- data/public/libs/jstree/_lib/jquery.hotkeys.js +99 -0
- data/public/libs/jstree/_lib/jquery.js +5 -0
- data/public/libs/jstree/jquery.jstree.js +4564 -0
- data/public/libs/jstree/themes/apple/bg.jpg +0 -0
- data/public/libs/jstree/themes/apple/d.png +0 -0
- data/public/libs/jstree/themes/apple/dot_for_ie.gif +0 -0
- data/public/libs/jstree/themes/apple/style.css +61 -0
- data/public/libs/jstree/themes/apple/throbber.gif +0 -0
- data/public/libs/jstree/themes/classic/d.gif +0 -0
- data/public/libs/jstree/themes/classic/d.png +0 -0
- data/public/libs/jstree/themes/classic/dot_for_ie.gif +0 -0
- data/public/libs/jstree/themes/classic/style.css +77 -0
- data/public/libs/jstree/themes/classic/throbber.gif +0 -0
- data/public/libs/jstree/themes/default-rtl/d.gif +0 -0
- data/public/libs/jstree/themes/default-rtl/d.png +0 -0
- data/public/libs/jstree/themes/default-rtl/dots.gif +0 -0
- data/public/libs/jstree/themes/default-rtl/style.css +84 -0
- data/public/libs/jstree/themes/default-rtl/throbber.gif +0 -0
- data/public/libs/jstree/themes/default/d.gif +0 -0
- data/public/libs/jstree/themes/default/d.png +0 -0
- data/public/libs/jstree/themes/default/style.css +74 -0
- data/public/libs/jstree/themes/default/throbber.gif +0 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/demo_app.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/demo_app.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/demo_app_controller.rb +6 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/demo_app_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +6 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +17606 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/functional/demo_app_controller_test.rb +7 -0
- data/test/dummy/test/unit/helpers/demo_app_helper_test.rb +4 -0
- data/test/dummy/tmp/cache/assets/D26/980/sprockets%2Fe04a37a0fa7f26c1183a1a4436e2a9c1 +0 -0
- data/test/dummy/tmp/cache/assets/D32/4F0/sprockets%2Fbd5441f3593e4ea157222202f3fddad6 +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/functional/maglev_database_explorer/def_controller_test.rb +9 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/maglev-database-explorer_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- data/test/unit/helpers/maglev_database_explorer/def_helper_test.rb +6 -0
- metadata +813 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<title>CodeMirror: Real-world uses</title>
|
|
6
|
+
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold"/>
|
|
7
|
+
<link rel="stylesheet" type="text/css" href="docs.css"/>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
|
|
11
|
+
<h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMirror</a></h1>
|
|
12
|
+
|
|
13
|
+
<div class="grey">
|
|
14
|
+
<img src="baboon.png" class="logo" alt="logo"/>
|
|
15
|
+
<pre>
|
|
16
|
+
/* Real world uses,
|
|
17
|
+
full list */
|
|
18
|
+
</pre>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<p><a href="mailto:marijnh@gmail.com">Contact me</a> if you'd like
|
|
22
|
+
your project to be added to this list.</p>
|
|
23
|
+
|
|
24
|
+
<ul>
|
|
25
|
+
<li><a href="http://brackets.io">Adobe Brackets</a> (code editor)</li>
|
|
26
|
+
<li><a href="http://amber-lang.net/">Amber</a> (JavaScript-based Smalltalk system)</li>
|
|
27
|
+
<li><a href="http://apeye.org/">APEye</a> (tool for testing & documenting APIs)</li>
|
|
28
|
+
<li><a href="http://buzz.blogger.com/2013/04/improvements-to-blogger-template-html.html">Blogger's template editor</a></li>
|
|
29
|
+
<li><a href="http://bluegriffon.org/">BlueGriffon</a> (HTML editor)</li>
|
|
30
|
+
<li><a href="http://cargocollective.com/">Cargo Collective</a> (creative publishing platform)</li>
|
|
31
|
+
<li><a href="http://drupal.org/project/cpn">Code per Node</a> (Drupal module)</li>
|
|
32
|
+
<li><a href="http://www.codebugapp.com/">Codebug</a> (PHP Xdebug front-end)</li>
|
|
33
|
+
<li><a href="http://emmet.io/blog/codemirror-movie/">CodeMirror movie</a> (scripted editing demos)</li>
|
|
34
|
+
<li><a href="http://code.google.com/p/codemirror2-gwt/">CodeMirror2-GWT</a> (Google Web Toolkit wrapper)</li>
|
|
35
|
+
<li><a href="http://www.crunchzilla.com/code-monster">Code Monster</a> & <a href="http://www.crunchzilla.com/code-maven">Code Maven</a> (learning environment)</li>
|
|
36
|
+
<li><a href="http://codepen.io">Codepen</a> (gallery of animations)</li>
|
|
37
|
+
<li><a href="http://sasstwo.codeschool.com/levels/1/challenges/1">Code School</a> (online tech learning environment)</li>
|
|
38
|
+
<li><a href="http://code-snippets.bungeshea.com/">Code Snippets</a> (WordPress snippet management plugin)</li>
|
|
39
|
+
<li><a href="http://codev.it/">Codev</a> (collaborative IDE)</li>
|
|
40
|
+
<li><a href="http://ot.substance.io/demo/">Collaborative CodeMirror demo</a> (CodeMirror + operational transforms)</li>
|
|
41
|
+
<li><a href="http://www.communitycodecamp.com/">Community Code Camp</a> (code snippet sharing)</li>
|
|
42
|
+
<li><a href="http://www.ckwnc.com/">CKWNC</a> (UML editor)</li>
|
|
43
|
+
<li><a href="http://cssdeck.com/">CSSDeck</a> (CSS showcase)</li>
|
|
44
|
+
<li><a href="http://ireneros.com/deck/deck.js-codemirror/introduction/#textarea-code">Deck.js integration</a> (slides with editors)</li>
|
|
45
|
+
<li><a href="http://www.dbninja.com">DbNinja</a> (MySQL access interface)</li>
|
|
46
|
+
<li><a href="http://elm-lang.org/Examples.elm">Elm language examples</a></li>
|
|
47
|
+
<li><a href="http://eloquentjavascript.net/chapter1.html">Eloquent JavaScript</a> (book)</li>
|
|
48
|
+
<li><a href="http://emmet.io">Emmet</a> (fast XML editing)</li>
|
|
49
|
+
<li><a href="http://www.fastfig.com/">Fastfig</a> (online computation/math tool)</li>
|
|
50
|
+
<li><a href="https://metacpan.org/module/Farabi">Farabi</a> (modern Perl IDE)</li>
|
|
51
|
+
<li><a href="http://blog.pamelafox.org/2012/02/interactive-html5-slides-with-fathomjs.html">FathomJS integration</a> (slides with editors, again)</li>
|
|
52
|
+
<li><a href="http://www.firepad.io">Firepad</a> (collaborative text editor)</li>
|
|
53
|
+
<li><a href="http://tour.golang.org">Go language tour</a></li>
|
|
54
|
+
<li><a href="https://github.com/github/android">GitHub's Android app</a></li>
|
|
55
|
+
<li><a href="https://script.google.com/">Google Apps Script</a></li>
|
|
56
|
+
<li><a href="http://web.uvic.ca/~siefkenj/graphit/graphit.html">Graphit</a> (function graphing)</li>
|
|
57
|
+
<li><a href="http://try.haxe.org">Haxe</a> (Haxe Playground) </li>
|
|
58
|
+
<li><a href="http://haxpad.com/">HaxPad</a> (editor for Win RT)</li>
|
|
59
|
+
<li><a href="http://megafonweblab.github.com/histone-javascript/">Histone template engine playground</a></li>
|
|
60
|
+
<li><a href="http://icecoder.net">ICEcoder</a> (web IDE)</li>
|
|
61
|
+
<li><a href="http://extensions.joomla.org/extensions/edition/editors/8723">Joomla plugin</a></li>
|
|
62
|
+
<li><a href="http://jqfundamentals.com/">jQuery fundamentals</a> (interactive tutorial)</li>
|
|
63
|
+
<li><a href="http://jsbin.com">jsbin.com</a> (JS playground)</li>
|
|
64
|
+
<li><a href="http://www.jshint.com/">JSHint</a> (JS linter)</li>
|
|
65
|
+
<li><a href="http://jumpseller.com/">Jumpseller</a> (online store builder)</li>
|
|
66
|
+
<li><a href="http://kl1p.com/cmtest/1">kl1p</a> (paste service)</li>
|
|
67
|
+
<li><a href="http://www.chris-granger.com/2012/04/12/light-table---a-new-ide-concept/">Light Table</a> (experimental IDE)</li>
|
|
68
|
+
<li><a href="http://www.mergely.com/">Mergely</a> (interactive diffing)</li>
|
|
69
|
+
<li><a href="http://www.iunbug.com/mihtool">MIHTool</a> (iOS web-app debugging tool)</li>
|
|
70
|
+
<li><a href="http://mongo-mapreduce-webbrowser.opensagres.cloudbees.net/">Mongo MapReduce WebBrowser</a></li>
|
|
71
|
+
<li><a href="https://www.my2ndgeneration.com/">My2ndGeneration</a> (social coding)</li>
|
|
72
|
+
<li><a href="https://notex.ch">NoTex</a> (rST authoring)</li>
|
|
73
|
+
<li><a href="http://clrhome.org/asm/">ORG</a> (z80 assembly IDE)</li>
|
|
74
|
+
<li><a href="https://github.com/mamacdon/orion-codemirror">Orion-CodeMirror integration</a> (running CodeMirror modes in Orion)</li>
|
|
75
|
+
<li><a href="http://paperjs.org/">Paper.js</a> (graphics scripting)</li>
|
|
76
|
+
<li><a href="http://prose.io/">Prose.io</a> (github content editor)</li>
|
|
77
|
+
<li><a href="http://ql.io/">ql.io</a> (http API query helper)</li>
|
|
78
|
+
<li><a href="http://qyapp.com">QiYun web app platform</a></li>
|
|
79
|
+
<li><a href="http://ariya.ofilabs.com/2011/09/hybrid-webnative-desktop-codemirror.html">Qt+Webkit integration</a> (building a desktop CodeMirror app)</li>
|
|
80
|
+
<li><a href="http://rascalmicro.com/docs/basic-tutorial-getting-started.html">Rascal</a> (tiny computer)</li>
|
|
81
|
+
<li><a href="https://www.realtime.io/">RealTime.io</a> (Internet-of-Things infrastructure)</li>
|
|
82
|
+
<li><a href="http://www.sketchpatch.net/labs/livecodelabIntro.html">sketchPatch Livecodelab</a></li>
|
|
83
|
+
<li><a href="http://www.skulpt.org/">Skulpt</a> (in-browser Python environment)</li>
|
|
84
|
+
<li><a href="http://www.solidshops.com/">SolidShops</a> (hosted e-commerce platform)</li>
|
|
85
|
+
<li><a href="http://sqlfiddle.com">SQLFiddle</a> (SQL playground)</li>
|
|
86
|
+
<li><a href="https://thefiletree.com">The File Tree</a> (collab editor)</li>
|
|
87
|
+
<li><a href="http://www.toolsverse.com/products/data-explorer/">Toolsverse Data Explorer</a> (database management)</li>
|
|
88
|
+
<li><a href="http://enjalot.com/tributary/2636296/sinwaves.js">Tributary</a> (augmented editing)</li>
|
|
89
|
+
<li><a href="http://blog.englard.net/post/39608000629/codeintumblr">Tumblr code highlighting shim</a></li>
|
|
90
|
+
<li><a href="http://turbopy.com/">TurboPY</a> (web publishing framework)</li>
|
|
91
|
+
<li><a href="http://cruise.eecs.uottawa.ca/umpleonline/">UmpleOnline</a> (model-oriented programming tool)</li>
|
|
92
|
+
<li><a href="http://webglplayground.net/">WebGL playground</a></li>
|
|
93
|
+
<li><a href="http://www.wescheme.org/">WeScheme</a> (learning tool)</li>
|
|
94
|
+
<li><a href="http://wordpress.org/extend/plugins/codemirror-for-codeeditor/">WordPress plugin</a></li>
|
|
95
|
+
<li><a href="http://www.xosystem.org/home/applications_websites/xosystem_website/xoside_EN.php">XOSide</a> (online editor)</li>
|
|
96
|
+
<li><a href="http://videlibri.sourceforge.net/cgi-bin/xidelcgi">XQuery tester</a></li>
|
|
97
|
+
</ul>
|
|
98
|
+
|
|
99
|
+
</body>
|
|
100
|
+
</html>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<title>CodeMirror: Reporting Bugs</title>
|
|
6
|
+
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold"/>
|
|
7
|
+
<link rel="stylesheet" type="text/css" href="docs.css"/>
|
|
8
|
+
<style>li { margin-top: 1em; }</style>
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
|
|
12
|
+
<h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMirror</a></h1>
|
|
13
|
+
|
|
14
|
+
<div class="grey">
|
|
15
|
+
<img src="baboon.png" class="logo" alt="logo"/>
|
|
16
|
+
<pre>
|
|
17
|
+
/* Reporting bugs
|
|
18
|
+
effectively */
|
|
19
|
+
</pre>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div class="left">
|
|
23
|
+
|
|
24
|
+
<p>So you found a problem in CodeMirror. By all means, report it! Bug
|
|
25
|
+
reports from users are the main drive behind improvements to
|
|
26
|
+
CodeMirror. But first, please read over these points:</p>
|
|
27
|
+
|
|
28
|
+
<ol>
|
|
29
|
+
<li>CodeMirror is maintained by volunteers. They don't owe you
|
|
30
|
+
anything, so be polite. Reports with an indignant or belligerent
|
|
31
|
+
tone tend to be moved to the bottom of the pile.</li>
|
|
32
|
+
|
|
33
|
+
<li>Include information about <strong>the browser in which the
|
|
34
|
+
problem occurred</strong>. Even if you tested several browsers, and
|
|
35
|
+
the problem occurred in all of them, mention this fact in the bug
|
|
36
|
+
report. Also include browser version numbers and the operating
|
|
37
|
+
system that you're on.</li>
|
|
38
|
+
|
|
39
|
+
<li>Mention which release of CodeMirror you're using. Preferably,
|
|
40
|
+
try also with the current development snapshot, to ensure the
|
|
41
|
+
problem has not already been fixed.</li>
|
|
42
|
+
|
|
43
|
+
<li>Mention very precisely what went wrong. "X is broken" is not a
|
|
44
|
+
good bug report. What did you expect to happen? What happened
|
|
45
|
+
instead? Describe the exact steps a maintainer has to take to make
|
|
46
|
+
the problem occur. We can not fix something that we can not
|
|
47
|
+
observe.</li>
|
|
48
|
+
|
|
49
|
+
<li>If the problem can not be reproduced in any of the demos
|
|
50
|
+
included in the CodeMirror distribution, please provide an HTML
|
|
51
|
+
document that demonstrates the problem. The best way to do this is
|
|
52
|
+
to go to <a href="http://jsbin.com/ihunin/edit">jsbin.com</a>, enter
|
|
53
|
+
it there, press save, and include the resulting link in your bug
|
|
54
|
+
report.</li>
|
|
55
|
+
</ol>
|
|
56
|
+
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
</body>
|
|
60
|
+
</html>
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<title>CodeMirror: Upgrading to v2.2</title>
|
|
6
|
+
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold"/>
|
|
7
|
+
<link rel="stylesheet" type="text/css" href="docs.css"/>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
|
|
11
|
+
<h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMirror</a></h1>
|
|
12
|
+
|
|
13
|
+
<div class="grey">
|
|
14
|
+
<img src="baboon.png" class="logo" alt="logo"/>
|
|
15
|
+
<pre>
|
|
16
|
+
/* Upgrading to
|
|
17
|
+
v2.2 */
|
|
18
|
+
</pre>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div class="left">
|
|
22
|
+
|
|
23
|
+
<p>There are a few things in the 2.2 release that require some care
|
|
24
|
+
when upgrading.</p>
|
|
25
|
+
|
|
26
|
+
<h2>No more default.css</h2>
|
|
27
|
+
|
|
28
|
+
<p>The default theme is now included
|
|
29
|
+
in <a href="../lib/codemirror.css"><code>codemirror.css</code></a>, so
|
|
30
|
+
you do not have to included it separately anymore. (It was tiny, so
|
|
31
|
+
even if you're not using it, the extra data overhead is negligible.)
|
|
32
|
+
|
|
33
|
+
<h2>Different key customization</h2>
|
|
34
|
+
|
|
35
|
+
<p>CodeMirror has moved to a system
|
|
36
|
+
where <a href="manual.html#option_keyMap">keymaps</a> are used to
|
|
37
|
+
bind behavior to keys. This means <a href="../demo/emacs.html">custom
|
|
38
|
+
bindings</a> are now possible.</p>
|
|
39
|
+
|
|
40
|
+
<p>Three options that influenced key
|
|
41
|
+
behavior, <code>tabMode</code>, <code>enterMode</code>,
|
|
42
|
+
and <code>smartHome</code>, are no longer supported. Instead, you can
|
|
43
|
+
provide custom bindings to influence the way these keys act. This is
|
|
44
|
+
done through the
|
|
45
|
+
new <a href="manual.html#option_extraKeys"><code>extraKeys</code></a>
|
|
46
|
+
option, which can hold an object mapping key names to functionality. A
|
|
47
|
+
simple example would be:</p>
|
|
48
|
+
|
|
49
|
+
<pre> extraKeys: {
|
|
50
|
+
"Ctrl-S": function(instance) { saveText(instance.getValue()); },
|
|
51
|
+
"Ctrl-/": "undo"
|
|
52
|
+
}</pre>
|
|
53
|
+
|
|
54
|
+
<p>Keys can be mapped either to functions, which will be given the
|
|
55
|
+
editor instance as argument, or to strings, which are mapped through
|
|
56
|
+
functions through the <code>CodeMirror.commands</code> table, which
|
|
57
|
+
contains all the built-in editing commands, and can be inspected and
|
|
58
|
+
extended by external code.</p>
|
|
59
|
+
|
|
60
|
+
<p>By default, the <code>Home</code> key is bound to
|
|
61
|
+
the <code>"goLineStartSmart"</code> command, which moves the cursor to
|
|
62
|
+
the first non-whitespace character on the line. You can set do this to
|
|
63
|
+
make it always go to the very start instead:</p>
|
|
64
|
+
|
|
65
|
+
<pre> extraKeys: {"Home": "goLineStart"}</pre>
|
|
66
|
+
|
|
67
|
+
<p>Similarly, <code>Enter</code> is bound
|
|
68
|
+
to <code>"newlineAndIndent"</code> by default. You can bind it to
|
|
69
|
+
something else to get different behavior. To disable special handling
|
|
70
|
+
completely and only get a newline character inserted, you can bind it
|
|
71
|
+
to <code>false</code>:</p>
|
|
72
|
+
|
|
73
|
+
<pre> extraKeys: {"Enter": false}</pre>
|
|
74
|
+
|
|
75
|
+
<p>The same works for <code>Tab</code>. If you don't want CodeMirror
|
|
76
|
+
to handle it, bind it to <code>false</code>. The default behaviour is
|
|
77
|
+
to indent the current line more (<code>"indentMore"</code> command),
|
|
78
|
+
and indent it less when shift is held (<code>"indentLess"</code>).
|
|
79
|
+
There are also <code>"indentAuto"</code> (smart indent)
|
|
80
|
+
and <code>"insertTab"</code> commands provided for alternate
|
|
81
|
+
behaviors. Or you can write your own handler function to do something
|
|
82
|
+
different altogether.</p>
|
|
83
|
+
|
|
84
|
+
<h2>Tabs</h2>
|
|
85
|
+
|
|
86
|
+
<p>Handling of tabs changed completely. The display width of tabs can
|
|
87
|
+
now be set with the <code>tabSize</code> option, and tabs can
|
|
88
|
+
be <a href="../demo/visibletabs.html">styled</a> by setting CSS rules
|
|
89
|
+
for the <code>cm-tab</code> class.</p>
|
|
90
|
+
|
|
91
|
+
<p>The default width for tabs is now 4, as opposed to the 8 that is
|
|
92
|
+
hard-wired into browsers. If you are relying on 8-space tabs, make
|
|
93
|
+
sure you explicitly set <code>tabSize: 8</code> in your options.</p>
|
|
94
|
+
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
</body>
|
|
98
|
+
</html>
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<title>CodeMirror: Upgrading to v3</title>
|
|
6
|
+
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold"/>
|
|
7
|
+
<link rel="stylesheet" type="text/css" href="docs.css"/>
|
|
8
|
+
<script src="../lib/codemirror.js"></script>
|
|
9
|
+
<link rel="stylesheet" href="../lib/codemirror.css">
|
|
10
|
+
<script src="../addon/runmode/runmode.js"></script>
|
|
11
|
+
<script src="../addon/runmode/colorize.js"></script>
|
|
12
|
+
<script src="../mode/javascript/javascript.js"></script>
|
|
13
|
+
<script src="../mode/xml/xml.js"></script>
|
|
14
|
+
<script src="../mode/css/css.js"></script>
|
|
15
|
+
<script src="../mode/htmlmixed/htmlmixed.js"></script>
|
|
16
|
+
</head>
|
|
17
|
+
<body>
|
|
18
|
+
|
|
19
|
+
<h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMirror</a></h1>
|
|
20
|
+
|
|
21
|
+
<div class="grey">
|
|
22
|
+
<img src="baboon.png" class="logo" alt="logo"/>
|
|
23
|
+
<pre>
|
|
24
|
+
/* Upgrading to
|
|
25
|
+
version 3 */
|
|
26
|
+
</pre>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div class="clear"><div class="leftbig blk">
|
|
30
|
+
|
|
31
|
+
<p>Version 3 does not depart too much from 2.x API, and sites that use
|
|
32
|
+
CodeMirror in a very simple way might be able to upgrade without
|
|
33
|
+
trouble. But it does introduce a number of incompatibilities. Please
|
|
34
|
+
at least skim this text before upgrading.</p>
|
|
35
|
+
|
|
36
|
+
<p>Note that <strong>version 3 drops full support for Internet
|
|
37
|
+
Explorer 7</strong>. The editor will mostly work on that browser, but
|
|
38
|
+
it'll be significantly glitchy.</p>
|
|
39
|
+
|
|
40
|
+
<h2 id=dom>DOM structure</h2>
|
|
41
|
+
|
|
42
|
+
<p>This one is the most likely to cause problems. The internal
|
|
43
|
+
structure of the editor has changed quite a lot, mostly to implement a
|
|
44
|
+
new scrolling model.</p>
|
|
45
|
+
|
|
46
|
+
<p>Editor height is now set on the outer wrapper element (CSS
|
|
47
|
+
class <code>CodeMirror</code>), not on the scroller element
|
|
48
|
+
(<code>CodeMirror-scroll</code>).</p>
|
|
49
|
+
|
|
50
|
+
<p>Other nodes were moved, dropped, and added. If you have any code
|
|
51
|
+
that makes assumptions about the internal DOM structure of the editor,
|
|
52
|
+
you'll have to re-test it and probably update it to work with v3.</p>
|
|
53
|
+
|
|
54
|
+
<p>See the <a href="manual.html#styling">styling section</a> of the
|
|
55
|
+
manual for more information.</p>
|
|
56
|
+
|
|
57
|
+
<h2 id=gutters>Gutter model</h2>
|
|
58
|
+
|
|
59
|
+
<p>In CodeMirror 2.x, there was a single gutter, and line markers
|
|
60
|
+
created with <code>setMarker</code> would have to somehow coexist with
|
|
61
|
+
the line numbers (if present). Version 3 allows you to specify an
|
|
62
|
+
array of gutters, <a href="manual.html#option_gutters">by class
|
|
63
|
+
name</a>,
|
|
64
|
+
use <a href="manual.html#setGutterMarker"><code>setGutterMarker</code></a>
|
|
65
|
+
to add or remove markers in individual gutters, and clear whole
|
|
66
|
+
gutters
|
|
67
|
+
with <a href="manual.html#clearGutter"><code>clearGutter</code></a>.
|
|
68
|
+
Gutter markers are now specified as DOM nodes, rather than HTML
|
|
69
|
+
snippets.</p>
|
|
70
|
+
|
|
71
|
+
<p>The gutters no longer horizontally scrolls along with the content.
|
|
72
|
+
The <code>fixedGutter</code> option was removed (since it is now the
|
|
73
|
+
only behavior).</p>
|
|
74
|
+
|
|
75
|
+
<pre data-lang="text/html">
|
|
76
|
+
<style>
|
|
77
|
+
/* Define a gutter style */
|
|
78
|
+
.note-gutter { width: 3em; background: cyan; }
|
|
79
|
+
</style>
|
|
80
|
+
<script>
|
|
81
|
+
// Create an instance with two gutters -- line numbers and notes
|
|
82
|
+
var cm = new CodeMirror(document.body, {
|
|
83
|
+
gutters: ["note-gutter", "CodeMirror-linenumbers"],
|
|
84
|
+
lineNumbers: true
|
|
85
|
+
});
|
|
86
|
+
// Add a note to line 0
|
|
87
|
+
cm.setGutterMarker(0, "note-gutter", document.createTextNode("hi"));
|
|
88
|
+
</script>
|
|
89
|
+
</pre>
|
|
90
|
+
|
|
91
|
+
<h2 id=events>Event handling</h2>
|
|
92
|
+
|
|
93
|
+
<p>Most of the <code>onXYZ</code> options have been removed. The same
|
|
94
|
+
effect is now obtained by calling
|
|
95
|
+
the <a href="manual.html#on"><code>on</code></a> method with a string
|
|
96
|
+
identifying the event type. Multiple handlers can now be registered
|
|
97
|
+
(and individually unregistered) for an event, and objects such as line
|
|
98
|
+
handlers now also expose events. See <a href="manual.html#events">the
|
|
99
|
+
full list here</a>.</p>
|
|
100
|
+
|
|
101
|
+
<p>(The <code>onKeyEvent</code> and <code>onDragEvent</code> options,
|
|
102
|
+
which act more as hooks than as event handlers, are still there in
|
|
103
|
+
their old form.)</p>
|
|
104
|
+
|
|
105
|
+
<pre data-lang="javascript">
|
|
106
|
+
cm.on("change", function(cm, change) {
|
|
107
|
+
console.log("something changed! (" + change.origin + ")");
|
|
108
|
+
});
|
|
109
|
+
</pre>
|
|
110
|
+
|
|
111
|
+
<h2 id=marktext>markText method arguments</h2>
|
|
112
|
+
|
|
113
|
+
<p>The <a href="manual.html#markText"><code>markText</code></a> method
|
|
114
|
+
(which has gained some interesting new features, such as creating
|
|
115
|
+
atomic and read-only spans, or replacing spans with widgets) no longer
|
|
116
|
+
takes the CSS class name as a separate argument, but makes it an
|
|
117
|
+
optional field in the options object instead.</p>
|
|
118
|
+
|
|
119
|
+
<pre data-lang="javascript">
|
|
120
|
+
// Style first ten lines, and forbid the cursor from entering them
|
|
121
|
+
cm.markText({line: 0, ch: 0}, {line: 10, ch: 0}, {
|
|
122
|
+
className: "magic-text",
|
|
123
|
+
inclusiveLeft: true,
|
|
124
|
+
atomic: true
|
|
125
|
+
});
|
|
126
|
+
</pre>
|
|
127
|
+
|
|
128
|
+
<h2 id=folding>Line folding</h2>
|
|
129
|
+
|
|
130
|
+
<p>The interface for hiding lines has been
|
|
131
|
+
removed. <a href="manual.html#markText"><code>markText</code></a> can
|
|
132
|
+
now be used to do the same in a more flexible and powerful way.</p>
|
|
133
|
+
|
|
134
|
+
<p>The <a href="../demo/folding.html">folding script</a> has been
|
|
135
|
+
updated to use the new interface, and should now be more robust.</p>
|
|
136
|
+
|
|
137
|
+
<pre data-lang="javascript">
|
|
138
|
+
// Fold a range, replacing it with the text "??"
|
|
139
|
+
var range = cm.markText({line: 4, ch: 2}, {line: 8, ch: 1}, {
|
|
140
|
+
replacedWith: document.createTextNode("??"),
|
|
141
|
+
// Auto-unfold when cursor moves into the range
|
|
142
|
+
clearOnEnter: true
|
|
143
|
+
});
|
|
144
|
+
// Get notified when auto-unfolding
|
|
145
|
+
CodeMirror.on(range, "clear", function() {
|
|
146
|
+
console.log("boom");
|
|
147
|
+
});
|
|
148
|
+
</pre>
|
|
149
|
+
|
|
150
|
+
<h2 id=lineclass>Line CSS classes</h2>
|
|
151
|
+
|
|
152
|
+
<p>The <code>setLineClass</code> method has been replaced
|
|
153
|
+
by <a href="manual.html#addLineClass"><code>addLineClass</code></a>
|
|
154
|
+
and <a href="manual.html#removeLineClass"><code>removeLineClass</code></a>,
|
|
155
|
+
which allow more modular control over the classes attached to a line.</p>
|
|
156
|
+
|
|
157
|
+
<pre data-lang="javascript">
|
|
158
|
+
var marked = cm.addLineClass(10, "background", "highlighted-line");
|
|
159
|
+
setTimeout(function() {
|
|
160
|
+
cm.removeLineClass(marked, "background", "highlighted-line");
|
|
161
|
+
});
|
|
162
|
+
</pre>
|
|
163
|
+
|
|
164
|
+
<h2 id=positions>Position properties</h2>
|
|
165
|
+
|
|
166
|
+
<p>All methods that take or return objects that represent screen
|
|
167
|
+
positions now use <code>{left, top, bottom, right}</code> properties
|
|
168
|
+
(not always all of them) instead of the <code>{x, y, yBot}</code> used
|
|
169
|
+
by some methods in v2.x.</p>
|
|
170
|
+
|
|
171
|
+
<p>Affected methods
|
|
172
|
+
are <a href="manual.html#cursorCoords"><code>cursorCoords</code></a>, <a href="manual.html#charCoords"><code>charCoords</code></a>, <a href="manual.html#coordsChar"><code>coordsChar</code></a>,
|
|
173
|
+
and <a href="manual.html#getScrollInfo"><code>getScrollInfo</code></a>.</p>
|
|
174
|
+
|
|
175
|
+
<h2 id=matchbrackets>Bracket matching no longer in core</h2>
|
|
176
|
+
|
|
177
|
+
<p>The <a href="manual.html#addon_matchbrackets"><code>matchBrackets</code></a>
|
|
178
|
+
option is no longer defined in the core editor.
|
|
179
|
+
Load <code>addon/edit/matchbrackets.js</code> to enable it.</p>
|
|
180
|
+
|
|
181
|
+
<h2 id=modes>Mode management</h2>
|
|
182
|
+
|
|
183
|
+
<p>The <code>CodeMirror.listModes</code>
|
|
184
|
+
and <code>CodeMirror.listMIMEs</code> functions, used for listing
|
|
185
|
+
defined modes, are gone. You are now encouraged to simply
|
|
186
|
+
inspect <code>CodeMirror.modes</code> (mapping mode names to mode
|
|
187
|
+
constructors) and <code>CodeMirror.mimeModes</code> (mapping MIME
|
|
188
|
+
strings to mode specs).</p>
|
|
189
|
+
|
|
190
|
+
<h2 id=new>New features</h2>
|
|
191
|
+
|
|
192
|
+
<p>Some more reasons to upgrade to version 3.</p>
|
|
193
|
+
|
|
194
|
+
<ul>
|
|
195
|
+
<li>Bi-directional text support. CodeMirror will now mostly do the
|
|
196
|
+
right thing when editing Arabic or Hebrew text.</li>
|
|
197
|
+
<li>Arbitrary line heights. Using fonts with different heights
|
|
198
|
+
inside the editor (whether off by one pixel or fifty) is now
|
|
199
|
+
supported and handled gracefully.</li>
|
|
200
|
+
<li>In-line widgets. See <a href="../demo/widget.html">the demo</a>
|
|
201
|
+
and <a href="manual.html#addLineWidget">the docs</a>.</li>
|
|
202
|
+
<li>Defining custom options
|
|
203
|
+
with <a href="manual.html#defineOption"><code>CodeMirror.defineOption</code></a>.</li>
|
|
204
|
+
</ul>
|
|
205
|
+
|
|
206
|
+
</div><div class="rightsmall blk">
|
|
207
|
+
|
|
208
|
+
<h2>Contents</h2>
|
|
209
|
+
|
|
210
|
+
<ul>
|
|
211
|
+
<li><a href="#dom">DOM structure</a></li>
|
|
212
|
+
<li><a href="#gutters">Gutter model</a></li>
|
|
213
|
+
<li><a href="#events">Event handling</a></li>
|
|
214
|
+
<li><a href="#folding">Line folding</a></li>
|
|
215
|
+
<li><a href="#marktext">markText method arguments</a></li>
|
|
216
|
+
<li><a href="#lineclass">Line CSS classes</a></li>
|
|
217
|
+
<li><a href="#positions">Position properties</a></li>
|
|
218
|
+
<li><a href="#matchbrackets">Bracket matching</a></li>
|
|
219
|
+
<li><a href="#modes">Mode management</a></li>
|
|
220
|
+
<li><a href="#new">New features</a></li>
|
|
221
|
+
</ul>
|
|
222
|
+
|
|
223
|
+
</div></div>
|
|
224
|
+
|
|
225
|
+
<script>setTimeout(function(){CodeMirror.colorize();}, 20);</script>
|
|
226
|
+
</body>
|
|
227
|
+
</html>
|