Permalink
Browse files

remove unused index files from codemirror dist

update readme with current priorities
  • Loading branch information...
1 parent 16de6a4 commit 642eb6794fa79a611d365c9106145601806d75eb @yuguang committed Apr 18, 2012
Showing with 22 additions and 5,117 deletions.
  1. +14 −2 README.md
  2. +0 −101 static/js/codemirror/mode/clike/index.html
  3. +0 −66 static/js/codemirror/mode/clojure/index.html
  4. +0 −721 static/js/codemirror/mode/coffeescript/index.html
  5. +0 −55 static/js/codemirror/mode/css/index.html
  6. +0 −99 static/js/codemirror/mode/diff/index.html
  7. +0 −42 static/js/codemirror/mode/ecl/index.html
  8. +0 −47 static/js/codemirror/mode/gfm/index.html
  9. +0 −72 static/js/codemirror/mode/go/index.html
  10. +0 −71 static/js/codemirror/mode/groovy/index.html
  11. +0 −46 static/js/codemirror/mode/haml/index.html
  12. +0 −60 static/js/codemirror/mode/haskell/index.html
  13. +0 −49 static/js/codemirror/mode/htmlembedded/index.html
  14. +0 −51 static/js/codemirror/mode/htmlmixed/index.html
  15. +0 −42 static/js/codemirror/mode/jade/index.html
  16. +0 −77 static/js/codemirror/mode/javascript/index.html
  17. +0 −37 static/js/codemirror/mode/jinja2/index.html
  18. +0 −602 static/js/codemirror/mode/less/index.html
  19. +0 −72 static/js/codemirror/mode/lua/index.html
  20. +0 −339 static/js/codemirror/mode/markdown/index.html
  21. +0 −41 static/js/codemirror/mode/mysql/index.html
  22. +0 −32 static/js/codemirror/mode/ntriples/index.html
  23. +0 −48 static/js/codemirror/mode/pascal/index.html
  24. +0 −62 static/js/codemirror/mode/perl/index.html
  25. +0 −48 static/js/codemirror/mode/php/index.html
  26. +0 −62 static/js/codemirror/mode/plsql/index.html
  27. +0 −40 static/js/codemirror/mode/properties/index.html
  28. +0 −122 static/js/codemirror/mode/python/index.html
  29. +0 −73 static/js/codemirror/mode/r/index.html
  30. +0 −53 static/js/codemirror/mode/rpm/changes/index.html
  31. +0 −99 static/js/codemirror/mode/rpm/spec/index.html
  32. +0 −525 static/js/codemirror/mode/rst/index.html
  33. +0 −171 static/js/codemirror/mode/ruby/index.html
  34. +0 −48 static/js/codemirror/mode/rust/index.html
  35. +0 −38 static/js/codemirror/mode/sass/index.html
  36. +0 −64 static/js/codemirror/mode/scheme/index.html
  37. +0 −33 static/js/codemirror/mode/scss/index.html
  38. +8 −1 static/js/codemirror/mode/scss/scss.js
  39. +0 −55 static/js/codemirror/mode/smalltalk/index.html
  40. +0 −40 static/js/codemirror/mode/sparql/index.html
  41. +0 −95 static/js/codemirror/mode/stex/index.html
  42. +0 −50 static/js/codemirror/mode/stylus/index.html
  43. +0 −183 static/js/codemirror/mode/tiddlywiki/index.html
  44. +0 −103 static/js/codemirror/mode/velocity/index.html
  45. +0 −210 static/js/codemirror/mode/verilog/index.html
  46. +0 −44 static/js/codemirror/mode/xml/index.html
  47. +0 −59 static/js/codemirror/mode/xmlpure/index.html
  48. +0 −67 static/js/codemirror/mode/yaml/index.html
View
@@ -72,11 +72,23 @@ Contribution Guidelines
Features ready to be implemented:
* Save lint options with fiddle, as a part of the JSON
-* SCSS mode smart indent
* HTML class and id auto-complete
+* Auto-semicolon insertion for CSS style languages
+* Hide window title bar option
+* CDN search, suggest, and add as resource (http://www.cdnjs.com/#/search/)
+* Color picker
+* Scroll source to current cursor position in editor
+* Remember previously selected languages on home page
+* Better CoffeeCup documentation page with syntax highlighting
+ * Use CodeMirror's built-in run mode
+* More Languages
+ * Markdown
+ * Eco
+ * Move
+* Add HTML to Jade converter (http://roguesynaptics.com/post/6514756867/html-to-jade-converter-node-js-express)
###Syntax Highlighting
-Get started by reading the [CodeMirror manual](http://codemirror.net/doc/manual.html#modeapi). The modes are under _static/js/codemirror/mode/_. Each mode has an index.html page for testing the mode.
+Get started by reading the [CodeMirror manual](http://codemirror.net/doc/manual.html#modeapi). The modes are under _static/js/codemirror/mode/_.
Contributors
------------
@@ -1,101 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <title>CodeMirror: C-like mode</title>
- <link rel="stylesheet" href="../../lib/codemirror.css">
- <script src="../../lib/codemirror.js"></script>
- <script src="clike.js"></script>
- <link rel="stylesheet" href="../../doc/docs.css">
- <style>.CodeMirror {border: 2px inset #dee;}</style>
- </head>
- <body>
- <h1>CodeMirror: C-like mode</h1>
-
-<form><textarea id="code" name="code">
-/* C demo code */
-
-#include <zmq.h>
-#include <pthread.h>
-#include <semaphore.h>
-#include <time.h>
-#include <stdio.h>
-#include <fcntl.h>
-#include <malloc.h>
-
-typedef struct {
- void* arg_socket;
- zmq_msg_t* arg_msg;
- char* arg_string;
- unsigned long arg_len;
- int arg_int, arg_command;
-
- int signal_fd;
- int pad;
- void* context;
- sem_t sem;
-} acl_zmq_context;
-
-#define p(X) (context->arg_##X)
-
-void* zmq_thread(void* context_pointer) {
- acl_zmq_context* context = (acl_zmq_context*)context_pointer;
- char ok = 'K', err = 'X';
- int res;
-
- while (1) {
- while ((res = sem_wait(&amp;context->sem)) == EINTR);
- if (res) {write(context->signal_fd, &amp;err, 1); goto cleanup;}
- switch(p(command)) {
- case 0: goto cleanup;
- case 1: p(socket) = zmq_socket(context->context, p(int)); break;
- case 2: p(int) = zmq_close(p(socket)); break;
- case 3: p(int) = zmq_bind(p(socket), p(string)); break;
- case 4: p(int) = zmq_connect(p(socket), p(string)); break;
- case 5: p(int) = zmq_getsockopt(p(socket), p(int), (void*)p(string), &amp;p(len)); break;
- case 6: p(int) = zmq_setsockopt(p(socket), p(int), (void*)p(string), p(len)); break;
- case 7: p(int) = zmq_send(p(socket), p(msg), p(int)); break;
- case 8: p(int) = zmq_recv(p(socket), p(msg), p(int)); break;
- case 9: p(int) = zmq_poll(p(socket), p(int), p(len)); break;
- }
- p(command) = errno;
- write(context->signal_fd, &amp;ok, 1);
- }
- cleanup:
- close(context->signal_fd);
- free(context_pointer);
- return 0;
-}
-
-void* zmq_thread_init(void* zmq_context, int signal_fd) {
- acl_zmq_context* context = malloc(sizeof(acl_zmq_context));
- pthread_t thread;
-
- context->context = zmq_context;
- context->signal_fd = signal_fd;
- sem_init(&amp;context->sem, 1, 0);
- pthread_create(&amp;thread, 0, &amp;zmq_thread, context);
- pthread_detach(thread);
- return context;
-}
-</textarea></form>
-
- <script>
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
- lineNumbers: true,
- matchBrackets: true,
- mode: "text/x-csrc"
- });
- </script>
-
- <p>Simple mode that tries to handle C-like languages as well as it
- can. Takes two configuration parameters: <code>keywords</code>, an
- object whose property names are the keywords in the language,
- and <code>useCPP</code>, which determines whether C preprocessor
- directives are recognized.</p>
-
- <p><strong>MIME types defined:</strong> <code>text/x-csrc</code>
- (C code), <code>text/x-c++src</code> (C++
- code), <code>text/x-java</code> (Java
- code).</p>
- </body>
-</html>
@@ -1,66 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <title>CodeMirror: Clojure mode</title>
- <link rel="stylesheet" href="../../lib/codemirror.css">
- <script src="../../lib/codemirror.js"></script>
- <script src="clojure.js"></script>
- <style>.CodeMirror {background: #f8f8f8;}</style>
- <link rel="stylesheet" href="../../doc/docs.css">
- </head>
- <body>
- <h1>CodeMirror: Clojure mode</h1>
- <form><textarea id="code" name="code">
-; Conway's Game of Life, based on the work of:
-;; Laurent Petit https://gist.github.com/1200343
-;; Christophe Grand http://clj-me.cgrand.net/2011/08/19/conways-game-of-life
-
-(ns ^{:doc "Conway's Game of Life."}
- game-of-life)
-
-;; Core game of life's algorithm functions
-
-(defn neighbours
- "Given a cell's coordinates, returns the coordinates of its neighbours."
- [[x y]]
- (for [dx [-1 0 1] dy (if (zero? dx) [-1 1] [-1 0 1])]
- [(+ dx x) (+ dy y)]))
-
-(defn step
- "Given a set of living cells, computes the new set of living cells."
- [cells]
- (set (for [[cell n] (frequencies (mapcat neighbours cells))
- :when (or (= n 3) (and (= n 2) (cells cell)))]
- cell)))
-
-;; Utility methods for displaying game on a text terminal
-
-(defn print-board
- "Prints a board on *out*, representing a step in the game."
- [board w h]
- (doseq [x (range (inc w)) y (range (inc h))]
- (if (= y 0) (print "\n"))
- (print (if (board [x y]) "[X]" " . "))))
-
-(defn display-grids
- "Prints a squence of boards on *out*, representing several steps."
- [grids w h]
- (doseq [board grids]
- (print-board board w h)
- (print "\n")))
-
-;; Launches an example board
-
-(def
- ^{:doc "board represents the initial set of living cells"}
- board #{[2 1] [2 2] [2 3]})
-
-(display-grids (take 3 (iterate step board)) 5 5) </textarea></form>
- <script>
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
- </script>
-
- <p><strong>MIME types defined:</strong> <code>text/x-clojure</code>.</p>
-
- </body>
-</html>
Oops, something went wrong.

0 comments on commit 642eb67

Please sign in to comment.