Permalink
Browse files

Organize add-on scripts into subdirectories

Closes #1133
  • Loading branch information...
1 parent 7858e25 commit eb2969fbc30ba58cbb81acdc9ca5fc0189c9d5e9 @marijnh marijnh committed Jan 8, 2013
Showing with 132 additions and 119 deletions.
  1. 0 {lib/util → addon/dialog}/dialog.css
  2. 0 {lib/util → addon/dialog}/dialog.js
  3. 0 {lib/util → addon/edit}/closetag.js
  4. 0 {lib/util → addon/edit}/continuecomment.js
  5. 0 {lib/util → addon/edit}/continuelist.js
  6. 0 {lib/util → addon/edit}/matchbrackets.js
  7. 0 {lib/util → addon/fold}/collapserange.js
  8. 0 {lib/util → addon/fold}/foldcode.js
  9. 0 {lib/util → addon/format}/formatting.js
  10. 0 {lib/util → addon/hint}/javascript-hint.js
  11. 0 {lib/util → addon/hint}/pig-hint.js
  12. 0 {lib/util → addon/hint}/python-hint.js
  13. 0 {lib/util → addon/hint}/simple-hint.css
  14. 0 {lib/util → addon/hint}/simple-hint.js
  15. 0 {lib/util → addon/hint}/xml-hint.js
  16. 0 {lib/util → addon/mode}/loadmode.js
  17. 0 {lib/util → addon/mode}/multiplex.js
  18. 0 {lib/util → addon/mode}/overlay.js
  19. 0 {lib/util → addon/runmode}/colorize.js
  20. 0 lib/util/runmodeonly.js → addon/runmode/runmode-standalone.js
  21. 0 {lib/util → addon/runmode}/runmode.js
  22. 0 lib/util/runmode-standalone.js → addon/runmode/runmode.node.js
  23. 0 {lib/util → addon/search}/match-highlighter.js
  24. 0 {lib/util → addon/search}/search.js
  25. 0 {lib/util → addon/search}/searchcursor.js
  26. +2 −1 bin/compress
  27. +1 −1 demo/closetag.html
  28. +1 −1 demo/collapserange.html
  29. +5 −5 demo/complete.html
  30. +2 −2 demo/folding.html
  31. +1 −1 demo/formatting.html
  32. +1 −1 demo/loadmode.html
  33. +2 −2 demo/matchhighlighter.html
  34. +3 −3 demo/multiplex.html
  35. +2 −2 demo/mustache.html
  36. +2 −2 demo/runmode.html
  37. +8 −8 demo/search.html
  38. +3 −3 demo/vim.html
  39. +6 −6 demo/xmlcomplete.html
  40. +24 −17 doc/compress.html
  41. +35 −31 doc/manual.html
  42. +3 −3 doc/oldrelease.html
  43. +4 −4 doc/upgrade_v3.html
  44. +1 −1 index.html
  45. +1 −1 mode/clike/index.html
  46. +1 −1 mode/clike/scala.html
  47. +1 −1 mode/d/index.html
  48. +1 −1 mode/erlang/index.html
  49. +1 −1 mode/gfm/index.html
  50. +1 −1 mode/go/index.html
  51. +1 −1 mode/groovy/index.html
  52. +1 −1 mode/haskell/index.html
  53. +2 −2 mode/javascript/index.html
  54. +1 −1 mode/less/index.html
  55. +1 −1 mode/lua/index.html
  56. +1 −1 mode/markdown/index.html
  57. +1 −1 mode/ocaml/index.html
  58. +1 −1 mode/php/index.html
  59. +1 −1 mode/python/index.html
  60. +1 −1 mode/ruby/index.html
  61. +1 −1 mode/sass/index.html
  62. +1 −1 mode/shell/index.html
  63. +1 −1 mode/smalltalk/index.html
  64. +1 −1 mode/sparql/index.html
  65. +1 −1 mode/tiddlywiki/index.html
  66. +1 −1 mode/vb/index.html
  67. +2 −2 test/index.html
  68. +1 −0 test/run.js
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -6,7 +6,7 @@
//
// bin/compress codemirror runmode javascript xml
//
-// Will take lib/codemirror.js, lib/util/runmode.js,
+// Will take lib/codemirror.js, addon/runmode/runmode.js,
// mode/javascript/javascript.js, and mode/xml/xml.js, run them though
// the online minifier at http://marijnhaverbeke.nl/uglifyjs, and spit
// out the result.
@@ -61,6 +61,7 @@ function walk(dir) {
}
walk("lib/");
+walk("addon/");
walk("mode/");
if (!blob) help(false);
View
@@ -5,7 +5,7 @@
<title>CodeMirror: Close-Tag Demo</title>
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
- <script src="../lib/util/closetag.js"></script>
+ <script src="../addon/edit/closetag.js"></script>
<script src="../mode/xml/xml.js"></script>
<script src="../mode/javascript/javascript.js"></script>
<script src="../mode/css/css.js"></script>
View
@@ -5,7 +5,7 @@
<title>CodeMirror: Range Collapsing Demo</title>
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
- <script src="../lib/util/collapserange.js"></script>
+ <script src="../addon/fold/collapserange.js"></script>
<script src="../mode/javascript/javascript.js"></script>
<link rel="stylesheet" href="../doc/docs.css">
View
@@ -5,9 +5,9 @@
<title>CodeMirror: Autocomplete Demo</title>
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
- <script src="../lib/util/simple-hint.js"></script>
- <link rel="stylesheet" href="../lib/util/simple-hint.css">
- <script src="../lib/util/javascript-hint.js"></script>
+ <script src="../addon/hint/simple-hint.js"></script>
+ <link rel="stylesheet" href="../addon/hint/simple-hint.css">
+ <script src="../addon/hint/javascript-hint.js"></script>
<script src="../mode/javascript/javascript.js"></script>
<link rel="stylesheet" href="../doc/docs.css">
</head>
@@ -53,8 +53,8 @@
</textarea></form>
<p>Press <strong>ctrl-space</strong> to activate autocompletion. See
-the code (<a href="../lib/util/simple-hint.js">here</a>
-and <a href="../lib/util/javascript-hint.js">here</a>) to figure out
+the code (<a href="../addon/hint/simple-hint.js">here</a>
+and <a href="../addon/hint/javascript-hint.js">here</a>) to figure out
how it works.</p>
<script>
View
@@ -5,7 +5,7 @@
<title>CodeMirror: Code Folding Demo</title>
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
- <script src="../lib/util/foldcode.js"></script>
+ <script src="../addon/fold/foldcode.js"></script>
<script src="../mode/javascript/javascript.js"></script>
<script src="../mode/xml/xml.js"></script>
<link rel="stylesheet" href="../doc/docs.css">
@@ -25,7 +25,7 @@
<h1>CodeMirror: Code Folding Demo</h1>
<p>Demonstration of code folding using the code
- in <a href="../lib/util/foldcode.js"><code>foldcode.js</code></a>.
+ in <a href="../addon/fold/foldcode.js"><code>foldcode.js</code></a>.
Press ctrl-q or click on the gutter to fold a block, again
to unfold.<br>Try the <a href="collapserange.html">Range Colapse demo</a> as well.</p>
<form>
View
@@ -5,7 +5,7 @@
<title>CodeMirror: Formatting Demo</title>
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
- <script src="../lib/util/formatting.js"></script>
+ <script src="../addon/format/formatting.js"></script>
<script src="../mode/css/css.js"></script>
<script src="../mode/xml/xml.js"></script>
<script src="../mode/javascript/javascript.js"></script>
View
@@ -5,7 +5,7 @@
<title>CodeMirror: Lazy Mode Loading Demo</title>
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
- <script src="../lib/util/loadmode.js"></script>
+ <script src="../addon/mode/loadmode.js"></script>
<link rel="stylesheet" href="../doc/docs.css">
<style type="text/css">
@@ -5,8 +5,8 @@
<title>CodeMirror: Match Highlighter Demo</title>
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
- <script src="../lib/util/searchcursor.js"></script>
- <script src="../lib/util/match-highlighter.js"></script>
+ <script src="../addon/search/searchcursor.js"></script>
+ <script src="../addon/search/match-highlighter.js"></script>
<link rel="stylesheet" href="../doc/docs.css">
<style type="text/css">
View
@@ -5,7 +5,7 @@
<title>CodeMirror: Multiplexing Parser Demo</title>
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
- <script src="../lib/util/multiplex.js"></script>
+ <script src="../addon/mode/multiplex.js"></script>
<script src="../mode/xml/xml.js"></script>
<link rel="stylesheet" href="../doc/docs.css">
@@ -52,8 +52,8 @@
boundary strings, switches to one or more inner modes. The out
(HTML) mode does not get fed the content of the <code>&lt;&lt;
>></code> blocks. See
- the <a href="../doc/manual.html#util_multiplex">manual</a> and
- the <a href="../lib/util/multiplex.js">source</a> for more
+ the <a href="../doc/manual.html#addon_multiplex">manual</a> and
+ the <a href="../addon/mode/multiplex.js">source</a> for more
information.</p>
</body>
View
@@ -5,7 +5,7 @@
<title>CodeMirror: Overlay Parser Demo</title>
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
- <script src="../lib/util/overlay.js"></script>
+ <script src="../addon/mode/overlay.js"></script>
<script src="../mode/xml/xml.js"></script>
<link rel="stylesheet" href="../doc/docs.css">
@@ -52,7 +52,7 @@
<p>Demonstration of a mode that parses HTML, highlighting
the <a href="http://mustache.github.com/">Mustache</a> templating
directives inside of it by using the code
- in <a href="../lib/util/overlay.js"><code>overlay.js</code></a>. View
+ in <a href="../addon/mode/overlay.js"><code>overlay.js</code></a>. View
source to see the 15 lines of code needed to accomplish this.</p>
</body>
View
@@ -5,7 +5,7 @@
<title>CodeMirror: Mode Runner Demo</title>
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
- <script src="../lib/util/runmode.js"></script>
+ <script src="../addon/runmode/runmode.js"></script>
<script src="../mode/xml/xml.js"></script>
<link rel="stylesheet" href="../doc/docs.css">
</head>
@@ -30,7 +30,7 @@
<p>Running a CodeMirror mode outside of the editor.
The <code>CodeMirror.runMode</code> function, defined
- in <code><a href="../lib/util/runmode.js">lib/runmode.js</a></code> takes the following arguments:</p>
+ in <code><a href="../addon/runmode/runmode.js">lib/runmode.js</a></code> takes the following arguments:</p>
<dl>
<dt><code>text (string)</code></dt>
View
@@ -6,10 +6,10 @@
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
<script src="../mode/xml/xml.js"></script>
- <script src="../lib/util/dialog.js"></script>
- <link rel="stylesheet" href="../lib/util/dialog.css">
- <script src="../lib/util/searchcursor.js"></script>
- <script src="../lib/util/search.js"></script>
+ <script src="../addon/dialog/dialog.js"></script>
+ <link rel="stylesheet" href="../addon/dialog/dialog.css">
+ <script src="../addon/search/searchcursor.js"></script>
+ <script src="../addon/search/search.js"></script>
<link rel="stylesheet" href="../doc/docs.css">
<style type="text/css">
@@ -76,10 +76,10 @@
<dt>Shift-Ctrl-R / Shift-Cmd-Option-F</dt><dd>Replace all</dd>
</dl>
<p>Searching is enabled by
- including <a href="../lib/util/search.js">lib/util/search.js</a>
- and <a href="../lib/util/searchcursor.js">lib/util/searchcursor.js</a>.
+ including <a href="../addon/search/search.js">addon/search/search.js</a>
+ and <a href="../addon/search/searchcursor.js">addon/search/searchcursor.js</a>.
For good-looking input dialogs, you also want to include
- <a href="../lib/util/dialog.js">lib/util/dialog.js</a>
- and <a href="../lib/util/dialog.css">lib/util/dialog.css</a>.</p>
+ <a href="../addon/dialog/dialog.js">addon/dialog/dialog.js</a>
+ and <a href="../addon/dialog/dialog.css">addon/dialog/dialog.css</a>.</p>
</body>
</html>
View
@@ -5,12 +5,12 @@
<title>CodeMirror: Vim bindings demo</title>
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
- <script src="../lib/util/dialog.js"></script>
- <script src="../lib/util/searchcursor.js"></script>
+ <script src="../addon/dialog/dialog.js"></script>
+ <script src="../addon/search/searchcursor.js"></script>
<script src="../mode/clike/clike.js"></script>
<script src="../keymap/vim.js"></script>
<link rel="stylesheet" href="../doc/docs.css">
- <link rel="stylesheet" href="../lib/util/dialog.css">
+ <link rel="stylesheet" href="../addon/dialog/dialog.css">
<style type="text/css">
.CodeMirror {border-top: 1px solid #eee; border-bottom: 1px solid #eee;}
View
@@ -5,10 +5,10 @@
<title>CodeMirror: XML Autocomplete Demo</title>
<link rel="stylesheet" href="../lib/codemirror.css">
<script src="../lib/codemirror.js"></script>
- <script src="../lib/util/simple-hint.js"></script>
- <link rel="stylesheet" href="../lib/util/simple-hint.css">
- <script src="../lib/util/closetag.js"></script>
- <script src="../lib/util/xml-hint.js"></script>
+ <script src="../addon/hint/simple-hint.js"></script>
+ <link rel="stylesheet" href="../addon/hint/simple-hint.css">
+ <script src="../addon/edit/closetag.js"></script>
+ <script src="../addon/hint/xml-hint.js"></script>
<script src="../mode/xml/xml.js"></script>
<link rel="stylesheet" href="../doc/docs.css">
<style type="text/css">
@@ -23,8 +23,8 @@
<p>Type '&lt;' or space inside tag or
press <strong>ctrl-space</strong> to activate autocompletion. See
- the code (<a href="../lib/util/simple-hint.js">here</a>
- and <a href="../lib/util/xml-hint.js">here</a>) to figure out how
+ the code (<a href="../addon/hint/simple-hint.js">here</a>
+ and <a href="../addon/hint/xml-hint.js">here</a>) to figure out how
it works.</p>
<script>
View
@@ -127,23 +127,30 @@
<option value="http://codemirror.net/mode/yaml/yaml.js">yaml.js</option>
<option value="http://codemirror.net/mode/z80/z80.js">z80.js</option>
</optgroup>
- <optgroup label="Utilities and add-ons">
- <option value="http://codemirror.net/lib/util/overlay.js">overlay.js</option>
- <option value="http://codemirror.net/lib/util/multiplex.js">multiplex.js</option>
- <option value="http://codemirror.net/lib/util/runmode.js">runmode.js</option>
- <option value="http://codemirror.net/lib/util/simple-hint.js">simple-hint.js</option>
- <option value="http://codemirror.net/lib/util/javascript-hint.js">javascript-hint.js</option>
- <option value="http://codemirror.net/lib/util/xml-hint.js">xml-hint.js</option>
- <option value="http://codemirror.net/lib/util/python-hint.js">python-hint.js</option>
- <option value="http://codemirror.net/lib/util/foldcode.js">foldcode.js</option>
- <option value="http://codemirror.net/lib/util/dialog.js">dialog.js</option>
- <option value="http://codemirror.net/lib/util/search.js">search.js</option>
- <option value="http://codemirror.net/lib/util/searchcursor.js">searchcursor.js</option>
- <option value="http://codemirror.net/lib/util/matchbrackets.js">matchbrackets.js</option>
- <option value="http://codemirror.net/lib/util/formatting.js">formatting.js</option>
- <option value="http://codemirror.net/lib/util/match-highlighter.js">match-highlighter.js</option>
- <option value="http://codemirror.net/lib/util/closetag.js">closetag.js</option>
- <option value="http://codemirror.net/lib/util/loadmode.js">loadmode.js</option>
+ <optgroup label="Add-ons">
+ <option value="http://codemirror.net/addon/dialog/dialog.js">dialog.js</option>
+ <option value="http://codemirror.net/addon/edit/closetag.js">closetag.js</option>
+ <option value="http://codemirror.net/addon/edit/continuecomment.js">continuecomment.js</option>
+ <option value="http://codemirror.net/addon/edit/continuelist.js">continuelist.js</option>
+ <option value="http://codemirror.net/addon/edit/matchbrackets.js">matchbrackets.js</option>
+ <option value="http://codemirror.net/addon/fold/foldcode.js">foldcode.js</option>
+ <option value="http://codemirror.net/addon/fold/collapserange.js">collapserange.js</option>
+ <option value="http://codemirror.net/addon/format/formatting.js">formatting.js</option>
+ <option value="http://codemirror.net/addon/hint/simple-hint.js">simple-hint.js</option>
+ <option value="http://codemirror.net/addon/hint/javascript-hint.js">javascript-hint.js</option>
+ <option value="http://codemirror.net/addon/hint/xml-hint.js">xml-hint.js</option>
+ <option value="http://codemirror.net/addon/hint/pig-hint.js">pig-hint.js</option>
+ <option value="http://codemirror.net/addon/hint/python-hint.js">python-hint.js</option>
+ <option value="http://codemirror.net/addon/mode/loadmode.js">loadmode.js</option>
+ <option value="http://codemirror.net/addon/mode/overlay.js">overlay.js</option>
+ <option value="http://codemirror.net/addon/mode/multiplex.js">multiplex.js</option>
+ <option value="http://codemirror.net/addon/runmode/colorize.js">colorize.js</option>
+ <option value="http://codemirror.net/addon/runmode/runmode.js">runmode.js</option>
+ <option value="http://codemirror.net/addon/runmode/runmode-standalone.js">runmode-standalone.js</option>
+ <option value="http://codemirror.net/addon/runmode/runmode.node.js">runmode.node.js</option>
+ <option value="http://codemirror.net/addon/search/search.js">search.js</option>
+ <option value="http://codemirror.net/addon/search/searchcursor.js">searchcursor.js</option>
+ <option value="http://codemirror.net/addon/search/match-highlighter.js">match-highlighter.js</option>
</optgroup>
<optgroup label="Keymaps">
<option value="http://codemirror.net/keymap/emacs.js">emacs.js</option>
Oops, something went wrong.

0 comments on commit eb2969f

Please sign in to comment.