diff options
author | Jose Antonio Marquez | 2012-07-17 14:01:12 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-07-17 14:01:12 -0700 |
commit | f40c8c58638da8fcd9a7abb06b8f2a4c6ba995bd (patch) | |
tree | cb1ff6a31b144fe4f584f778d5691f06362b227e /imports/codemirror/mode/stex/test.html | |
parent | 17d464e5bd224cdd8940855409359b411325f1df (diff) | |
parent | 4f737b24c19ddc02d20f9783b8b080fc6ef11142 (diff) | |
download | ninja-f40c8c58638da8fcd9a7abb06b8f2a4c6ba995bd.tar.gz |
Merge branch 'refs/heads/Ninja-Master' into Document
Diffstat (limited to 'imports/codemirror/mode/stex/test.html')
-rw-r--r-- | imports/codemirror/mode/stex/test.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/imports/codemirror/mode/stex/test.html b/imports/codemirror/mode/stex/test.html index b53a6a24..a60f4184 100644 --- a/imports/codemirror/mode/stex/test.html +++ b/imports/codemirror/mode/stex/test.html | |||
@@ -241,6 +241,18 @@ | |||
241 | 241 | ||
242 | </script> | 242 | </script> |
243 | 243 | ||
244 | <h2>New Commands</h2> | ||
245 | |||
246 | Should be able to define a new command that happens to be a method on Array | ||
247 | (e.g. <tt>pop</tt>): | ||
248 | <script language="javascript"> | ||
249 | MT.test('\\newcommand{\\pop}', | ||
250 | 'tag', '\\newcommand', | ||
251 | 'bracket', '{', | ||
252 | 'tag', '\\pop', | ||
253 | 'bracket', '}'); | ||
254 | </script> | ||
255 | |||
244 | <h2>Summary</h2> | 256 | <h2>Summary</h2> |
245 | <script language="javascript"> | 257 | <script language="javascript"> |
246 | MT.printSummary(); | 258 | MT.printSummary(); |