Compare commits

..

2,554 commits

Author SHA1 Message Date
Joey Payne
ca8da0a3f3 Merge remote-tracking branch 'upstream/master' 2015-06-04 14:23:14 -06:00
Lennart Kats
f10da4cdb0 Merge pull request #2523 from ajaxorg/fix/various
Fix several small issues
2015-06-01 17:59:08 +02:00
Lennart Kats
d953740339 Merge pull request #2507 from ajaxorg/c9
Sync with cloud9
2015-06-01 17:39:25 +02:00
nightwing
6cec0b28b2 improve tmlanguage importer 2015-06-01 13:50:32 +04:00
nightwing
3f31ca57ed fix typo 2015-06-01 01:06:39 +04:00
Joey Payne
fb7144b622 Merge remote-tracking branch 'upstream/master' 2015-05-31 11:49:42 -06:00
nightwing
2249d06337 fix #2484 Hard-coded characterWidth in static_highlight.js
and remove dependence on mockdom
2015-05-31 17:42:00 +04:00
nightwing
1514d5f374 fix #2483 Exception on ctrl-alt-shift-click when $enableJumpToDef is true 2015-05-31 17:42:00 +04:00
nightwing
446e3e1bf9 fix #2522 Popup position is off when gutter isn't shown 2015-05-31 17:42:00 +04:00
Harutyun Amirjanyan
652dd7009c Merge pull request #2516 from ajaxorg/fix/highlighter
fix highlighting of tables in Gherkin  mode
2015-05-31 16:45:58 +04:00
Harutyun Amirjanyan
3d23e1e98f Merge pull request #2518 from ajaxorg/autocompleter
fix autocomplete blur handler
2015-05-31 16:45:36 +04:00
Harutyun Amirjanyan
cafc7e7ce1 Merge pull request #2521 from puffnfresh/patch-1
Fix invalid syntax in autoresize.html
2015-05-31 16:45:13 +04:00
Brian McKenna
abdc4c7510 Fix invalid syntax in autoresize.html
The options literal had a duplicate key.
2015-05-29 09:55:02 -06:00
nightwing
8c1d0ab7cf fix autocomplete blur handler 2015-05-28 13:56:33 +04:00
nightwing
9f57989043 fix highlighting of tables in Gherkin mode 2015-05-28 13:40:56 +04:00
nightwing
2a089863e2 fix highlighting of line-height:1.5 in less mode 2015-05-22 22:14:29 +04:00
nightwing
386c508042 convert paste into command 2015-05-22 22:14:15 +04:00
nightwing
dc7643db8d better invisible tabs (fixes #2109) 2015-05-22 21:57:13 +04:00
nightwing
5705a7c2c1 fix toggle comments in handlebars mode 2015-05-22 02:34:43 +04:00
nightwing
2e2d9bcdc9 add more php extensions 2015-05-22 02:34:43 +04:00
nightwing
a799a4086f fix quote pairing for "\n" 2015-05-22 02:34:43 +04:00
nightwing
af5c7a9c3b improve require support in worker 2015-05-22 02:34:30 +04:00
nightwing
fe96eef206 fix require for paths ending with .js in the worker 2015-05-21 23:01:27 +04:00
Lennart Kats
0a3b002e28 Merge pull request #1819 from ajaxorg/v-1.2
Refactor document delta handling for v1.2
2015-05-21 11:15:29 +02:00
nightwing
60439d927f update changelog 2015-05-21 13:01:17 +04:00
Lennart Kats
95bb17d04b Merge pull request #2496 from ajaxorg/fix/renderer
fix renderer issues with autosize
2015-05-21 10:57:04 +02:00
Lennart Kats
2c1b565591 Merge pull request #2500 from ajaxorg/fix/tokenizer
fix highlighting stopping randomly in the middle of the file
2015-05-21 10:53:05 +02:00
Harutyun Amirjanyan
53ea1a8665 Merge pull request #2502 from Pike/patch-1
Add array-of-tables to keygroup markup for toml files.
2015-05-20 22:30:19 +04:00
Axel Hecht
9534e4ea92 Add array-of-tables to keygroup markup
The markup for array-of-tables at https://github.com/toml-lang/toml#array-of-tables is
[[ foo ]]

Right now, the last ] isn't part of the markup. Figured making this an explicit token is the most apparent way to fix this.
2015-05-20 14:53:02 +02:00
nightwing
fa86327b3d fix highlighting stopping randomly in the middle of the file 2015-05-19 17:43:10 +04:00
Joey Payne
a68e8bea01 Merging latest commits.
Merge remote-tracking branch 'upstream/master'
2015-05-16 16:02:51 -06:00
nightwing
88d8cf3447 fix renderer test 2015-05-15 02:48:12 +04:00
nightwing
9e9aa8f328 use scroller as mousetarget to not miss mouse events on scrollmargin 2015-05-15 02:44:24 +04:00
nightwing
93c39ca5b0 handle hscrollbar change during autoresize 2015-05-15 02:43:41 +04:00
nightwing
0db985a3d7 fix #2495 editor freezes when setting scrollmargin and maxLines together 2015-05-15 01:53:19 +04:00
Ruben Daniels
ad5802be06 Merge pull request #2488 from ajaxorg/rounded-corners
Add rounded corners for selections
2015-05-10 19:07:21 -07:00
nightwing
0abd9ec30e rounded corners for selections 2015-05-10 14:01:28 +04:00
Harutyun Amirjanyan
6d205a8f7e Merge pull request #2470 from ajaxorg/fix/leak
Fix memory leak
2015-05-07 01:28:22 +04:00
Harutyun Amirjanyan
d2dc26f5a5 Merge pull request #2479 from bcjordan/patch-4
Update comment, add missing semicolon [ci skip]
2015-05-07 01:27:42 +04:00
Brian Jordan
ef4537a099 Update edit_session.js
Fix extra `the`
2015-05-05 09:07:46 -07:00
Harutyun Amirjanyan
46f76b4b06 Merge pull request #2473 from Leushenko/master
Add indentation for Scheme
2015-05-05 16:31:02 +04:00
Harutyun Amirjanyan
71d1ca9d20 Merge pull request #2476 from bcjordan/patch-2
Remove unused variable `EditSession`
2015-05-05 16:26:41 +04:00
Harutyun Amirjanyan
263a45db02 Merge pull request #2477 from bcjordan/patch-3
Remove unused parameter `mutateData` & add ;s
2015-05-05 16:26:28 +04:00
Joey Payne
9323a2616b Added support for nim programming language. 2015-05-04 22:54:09 -06:00
Brian Jordan
ad22b71cfe Update comment, add missing semicolon [ci skip] 2015-05-01 10:56:08 -07:00
Brian Jordan
cd8099b0ad Remove unused parameter mutateData & add ;s 2015-04-30 17:38:19 -07:00
Brian Jordan
a61d304cbb Remove unused variable EditSession 2015-04-30 17:14:16 -07:00
Alex Gilding
e72f1d8337 Add indentation for Scheme
Just copied over the Clojure indentation rules to Scheme and changed
the keywords to suit the language, so that Scheme programs can be
automatically indented too
2015-04-28 20:24:13 +01:00
nightwing
d080fe51d4 fix #2468 error in strict mode 2015-04-28 19:01:24 +04:00
Harutyun Amirjanyan
32cb8c6b0e Merge pull request #2472 from ph1ll/master
Expose ClipboardEvent in editor paste event
2015-04-28 00:51:58 +04:00
Phill Campbell
3ce8d76c89 Expose ClipboardEvent in editor paste event 2015-04-27 18:49:12 +01:00
nightwing
a842dcdee3 do not retain ref to the first editor (fixes #2469) 2015-04-26 14:44:47 +04:00
Ruben Daniels
0dcb1281cd Merge pull request #2459 from ajaxorg/c9
Sync with c9
2015-04-25 12:30:37 -07:00
Harutyun Amirjanyan
65ad04082f Merge pull request #2460 from sevin7676/master
SQL Server typos and keyword completion modifier
2015-04-23 18:11:41 +04:00
Lennart Kats
b6f7e5d6a1 Merge pull request #2461 from ajaxorg/highlighter
Fix highlighter issues
2015-04-23 07:38:28 +02:00
sevin7676
5a3bf2570f no keyword if in brackets 2015-04-22 06:06:52 -04:00
sevin7676
2d7ebc34b6 no keyword if in brackets 2015-04-22 06:05:54 -04:00
sevin7676
87044e8816 forgot keyword completions 2015-04-22 05:38:01 -04:00
sevin7676
82453d884b better completions, no unneeded string rule 2015-04-22 05:28:31 -04:00
nightwing
636ace5178 fix typo 2015-04-22 13:20:39 +04:00
Harutyun Amirjanyan
3673aabe2a Merge pull request #2465 from bcjordan/patch-1
Remove unused variable `text`
2015-04-22 11:25:22 +04:00
Brian Jordan
694d7431b7 Remove unused variable text 2015-04-21 14:58:29 -07:00
nightwing
89b9a8ac72 address review comments 2015-04-20 18:25:32 +04:00
sevin7676
67c7da75b6 fix escape character
was using wrong escape char for string, sqlserver uses double single
quote to escape a single quote
2015-04-20 08:52:03 -04:00
sevin7676
662cd11975 no cache as its storing reference in filtered list 2015-04-20 05:08:54 -04:00
sevin7676
68d531ecb2 cleanup 2015-04-20 04:52:18 -04:00
sevin7676
e58fa3e6d7 remove completionModifer, one off for SQL Server Mode 2015-04-20 04:50:25 -04:00
nightwing
e610365e67 fix #2432 setPolling(false) doesn't turn off polling 2015-04-20 01:11:10 +04:00
nightwing
65b2cf2855 update test for rust mode 2015-04-19 20:35:57 +04:00
nightwing
2008ab813f fix bracket matching in modes imported from textmate 2015-04-19 20:29:28 +04:00
nightwing
ecb699aa11 support converting from cson 2015-04-19 20:28:12 +04:00
nightwing
63687f693b fix #2441 function highlighting in rust mode 2015-04-19 20:27:07 +04:00
nightwing
685ba18451 fix #2452 . is a valid XML tagname character 2015-04-19 20:05:25 +04:00
sevin7676
1ec6eb7b5d shorter names 2015-04-19 11:59:31 -04:00
sevin7676
1027dcea7c cache modifier 2015-04-19 11:52:54 -04:00
sevin7676
961f8c4893 completion modifier for SQL and JavaScript 2015-04-19 11:24:30 -04:00
sevin7676
27284cd29f added completionModifier
allows a highlight rule modify keyword completions
2015-04-19 11:23:10 -04:00
nightwing
04f4292fbc enable Emmet for handlebars mode 2015-04-19 17:34:22 +04:00
nightwing
4e6d48bf2e make sure operationEnd events are not emitted to wrong session 2015-04-19 17:34:22 +04:00
nightwing
80f43beb73 fix typo 2015-04-19 17:34:04 +04:00
sevin7676
cf0c81a25f more snippets 2015-04-19 08:37:22 -04:00
sevin7676
ee90854917 bug fix & typo fix 2015-04-19 08:18:04 -04:00
nightwing
ff4429dd5a fixes for emacs mode 2015-04-19 15:50:22 +04:00
nightwing
487408e84d fix +6291 Hard to tell what pane has focus in Vim mode 2015-04-19 15:50:06 +04:00
nightwing
2713d0a8db center cursor after vim jumplist motions
Conflicts:
	lib/ace/editor.js
2015-04-19 15:49:41 +04:00
nightwing
b0ce5630c9 add support for bindkey.position 2015-04-19 15:48:58 +04:00
Harutyun Amirjanyan
d89311e596 Merge pull request #2456 from kevinushey/bugfix/vim-normal-mode-yank
[vim] define 'Y' as 'keyToKey' mapping (fixes #2455)
2015-04-19 02:26:47 +04:00
Kevin Ushey
5482db1c4d [vim] fix 'Y' behaviour in visual mode 2015-04-18 15:19:28 -07:00
nightwing
eb70d5a6c8 Merge remote-tracking branch 'remotes/origin/master'
Conflicts:
	lib/ace/document.js
2015-04-19 01:04:25 +04:00
Harutyun Amirjanyan
abe0286420 Merge pull request #2458 from ajaxorg/vim
update vim mode
2015-04-18 22:00:47 +04:00
nightwing
094b8a147a update vim mode 2015-04-18 21:01:11 +04:00
Harutyun Amirjanyan
f0d01b93d4 Merge pull request #2457 from sevin7676/master
Add SQL Server (Microsoft SQL) Mode
2015-04-18 19:56:27 +04:00
nightwing
ef9cc542e7 fixes for indentedSoftWrap option 2015-04-18 19:53:49 +04:00
sevin7676
73808101cd cleanup 2015-04-18 10:06:55 -04:00
nightwing
0753f9aa12 Merge remote-tracking branch 'remotes/pull/2187' 2015-04-18 18:00:14 +04:00
Harutyun Amirjanyan
f270b4ae69 Merge pull request #2421 from mortalis13/master
Added new Sublime theme
2015-04-18 17:53:16 +04:00
sevin7676
121e0e51f4 add integer 2015-04-18 09:43:13 -04:00
sevin7676
846c2fb3d3 fix space 2015-04-18 09:35:39 -04:00
sevin7676
cd1c5a42c9 cleanup 2015-04-18 09:21:09 -04:00
sevin7676
282331b133 use pound as its the typical method 2015-04-18 09:12:11 -04:00
sevin7676
db0313f2ad fix case 2015-04-18 09:09:05 -04:00
sevin7676
37a80b35da missing execute in demo doc 2015-04-18 09:05:36 -04:00
sevin7676
75f66697f6 more cleanup 2015-04-18 08:55:29 -04:00
sevin7676
32847a6761 clean up 2015-04-18 08:53:11 -04:00
sevin7676
0d0b0b4356 updated demo doc and snippets 2015-04-18 08:45:13 -04:00
sevin7676
a0a31e16a2 cleanup 2015-04-18 08:27:22 -04:00
sevin7676
295ae4dc81 make pound optional for region 2015-04-18 08:25:47 -04:00
sevin7676
d38849ef9f added doc comment highlight to fix folding 2015-04-18 08:24:59 -04:00
sevin7676
184df6d18e inherit cstyle... trying to figure out best end marker 2015-04-18 07:29:10 -04:00
sevin7676
ff0cc12efc folding partially working.. 2015-04-18 06:37:29 -04:00
Morgan Yarbrough
1b9c8bfc88 FOLDING 2015-04-17 14:24:38 -04:00
Morgan Yarbrough
e42bc9a265 progress, and about to work on folding 2015-04-17 14:09:38 -04:00
Morgan Yarbrough
12be220297 even more keywords! 2015-04-17 12:53:42 -04:00
Morgan Yarbrough
7ae5c862c2 progress but not working yet 2015-04-17 11:17:31 -04:00
sevin7676
d8f7003fb8 add null back 2015-04-17 10:03:56 -04:00
sevin7676
76ac79f116 more progress 2015-04-17 10:00:13 -04:00
sevin7676
1a6e2f83f2 small fixes 2015-04-17 09:35:58 -04:00
sevin7676
6b62974118 good progress 2015-04-17 09:28:56 -04:00
sevin7676
461faa9184 more progress 2015-04-17 08:37:54 -04:00
sevin7676
ede82e7137 progress- save comments for reuse here 2015-04-17 08:11:21 -04:00
sevin7676
f0b3aa0a6f PARTIAL 2015-04-17 07:37:17 -04:00
mortalis13
fb5f272f81 Rename Sublime theme to iPlastic 2015-04-15 21:49:38 +03:00
mortalis13
c458f96d3a Edited lib/ace/sublime.css 2015-04-10 22:19:14 +03:00
Harutyun Amirjanyan
6070fe96f7 Merge pull request #2407 from xixixao/configure-block-select
Add configuration option for block select
2015-04-09 14:56:55 +04:00
Harutyun Amirjanyan
6a2d3fcb09 Merge pull request #2408 from bostikforever/vb-case-insensitive
VBScript is case insensitive
2015-04-09 14:52:56 +04:00
Harutyun Amirjanyan
8b29f7f3c9 Merge pull request #2411 from saxbophone/master
Wider SQL Command and Data Types Coverage
2015-04-09 14:51:33 +04:00
Harutyun Amirjanyan
48de4711eb Merge pull request #2418 from xixixao/selection-zero-height
Remove 0 height selection highlight
2015-04-09 14:50:26 +04:00
nightwing
bb3fa62824 Merge commit '510d060cb2' 2015-04-09 14:20:50 +04:00
Harutyun Amirjanyan
6bdc0d6cbb Merge pull request #2440 from grit96/patch-1
Make print margin in cobalt more visible
2015-04-09 14:20:07 +04:00
nightwing
510d060cb2 cleanup 2015-04-09 14:09:03 +04:00
Geraint White
da8d545985 Make print margin in cobalt more visible 2015-04-09 09:14:21 +01:00
César Izurieta
4f655e71d9 Make deepCopy work correctly with arrays 2015-04-05 04:39:36 -03:00
nightwing
8f686eb795 release v1.1.9 2015-04-03 13:43:18 +04:00
nightwing
6fad60f546 tweaks for the new release 2015-04-03 13:30:00 +04:00
nightwing
1ae86f896a update vim mode 2015-04-03 13:29:10 +04:00
nightwing
4e4df645cc add adoc extension for asciidoc files 2015-04-03 13:29:10 +04:00
Joshua Saxby
0bf729d88f added important keywords and data types missed out 2015-03-27 22:21:42 +00:00
Joshua Saxby
cc40177114 Revert "add some new types and change the type of existing keywords"
This reverts commit fcb4023e52.
2015-03-27 22:11:41 +00:00
Joshua Saxby
fcb4023e52 add some new types and change the type of existing keywords 2015-03-27 22:10:02 +00:00
mortalis
22f802a9ff new sublime theme 2015-03-27 12:37:59 +02:00
xixixao
14a8e1f5d9 Remove 0 height selection highlight 2015-03-25 18:07:38 +00:00
Harutyun Amirjanyan
a2e05ac438 Merge pull request #2410 from kevinushey/bugfix/r-sapply-snippet
correct snippet for 'sapply'
2015-03-21 18:06:48 +04:00
Kevin Ushey
f17c67cd01 correct snippet for 'sapply' 2015-03-19 15:30:41 -07:00
Bolutife Ogunsola
9c6720edca Update tokens test file for vbscript 2015-03-19 19:11:49 +01:00
Bolutife Ogunsola
4dd8eda928 VBScript is case insensitive 2015-03-19 18:03:01 +01:00
xixixao
cb83a974b4 Add configuration option for block select 2015-03-18 21:09:45 +00:00
Ruben Daniels
75556854b9 Merge pull request #2397 from ajaxorg/fix/various
Several small fixes
2015-03-17 15:12:49 -07:00
nightwing
7e9e5aea17 remove old code 2015-03-18 01:57:03 +04:00
nightwing
bb16d65cbb update jshint 2015-03-18 01:55:07 +04:00
Harutyun Amirjanyan
c39134411d Merge pull request #2387 from jmcphers/master
Prevent vim ex commandline from obscuring search results
2015-03-17 10:00:34 +04:00
Harutyun Amirjanyan
cb0816b183 Merge pull request #2399 from kevinushey/patch/vim-colon-selection
[vim] don't select range specifier on `:` insertion
2015-03-17 09:58:58 +04:00
Kevin Ushey
e551b090b7 don't select initial text on ':' 2015-03-16 15:50:31 -07:00
nightwing
c5602489f4 add styling for ace_invisble to all themes 2015-03-15 15:27:48 +04:00
nightwing
1c1d56b3ea make blurred state clearer in github theme 2015-03-15 15:18:10 +04:00
nightwing
a78bf8e5ef update links to emmet.js 2015-03-15 15:00:00 +04:00
nightwing
d9db903190 update rust mode 2015-03-15 15:00:00 +04:00
nightwing
4af37cd722 fix #2395 context menu regression in Firefox on mac 2015-03-15 15:00:00 +04:00
Harutyun Amirjanyan
dd69f5939c Merge pull request #2380 from trystanclarke/master
Fix typeerror "Cannot read property 'container' of undefined" in autocomplete
2015-03-15 00:09:42 +04:00
Harutyun Amirjanyan
cac9e261e3 Merge pull request #2386 from timdp/behaviours-keep-selection
CstyleBehaviour: keeping selections after insertion
2015-03-15 00:01:02 +04:00
Joshua Saxby
0216e8bbfd formatting 2015-03-11 21:27:36 +00:00
Joshua Saxby
38e3452313 added SQL data types 2015-03-11 21:05:54 +00:00
Joshua Saxby
fb7b23e627 started adding missing sql keywords and types 2015-03-11 18:42:21 +00:00
Jonathan McPherson
1b1006ac1d prevent vim ex commandline from obscuring search results (fixes #2384) 2015-03-10 14:17:17 -07:00
Harutyun Amirjanyan
101656ea5c Merge pull request #2385 from mikermcneil/patch-1
makes example work out of the box
2015-03-10 23:41:57 +04:00
Ruben Daniels
6a07619ad2 Merge pull request #2370 from ajaxorg/misc
Misc issues
2015-03-10 12:33:01 -07:00
Tim De Pauw
a5c619bda8 CstyleBehaviour: keeping selections after insertion 2015-03-09 17:44:03 +01:00
Mike McNeil
3adde642dc makes example work out of the box 2015-03-07 18:40:04 -08:00
trystanclarke
967177bbc5 Update autocomplete.js 2015-03-02 09:35:46 +00:00
nightwing
60c639a34b Merge branch 'pull/2375' 2015-02-28 22:17:25 +04:00
nightwing
de9e5226bf add tests from v1.2 branch and increase split size to improve performance 2015-02-28 22:16:19 +04:00
nightwing
76e05b7fd5 fix #2381: keycode for ; is missing 2015-02-28 21:51:18 +04:00
nightwing
2506bb0921 Merge branch pull/2376 2015-02-28 21:43:09 +04:00
nightwing
481bca1b09 use ellipsis character instead of dots 2015-02-28 21:41:30 +04:00
nightwing
01f5846ee3 static highlight can be used without editor.css 2015-02-28 20:40:54 +04:00
trystanclarke
cca4ab8b45 Merge pull request #1 from trystanclarke/trystanclarke-fix-autocomp-type-error
Update autocomplete.js
2015-02-27 16:18:03 +00:00
trystanclarke
ae4989eea1 Update autocomplete.js
Fix typeerror "Cannot read property 'container' of undefined" when using live autocomplete. Error can occur when editor loses focus and the autocomplete popup has never been shown.
2015-02-27 16:15:24 +00:00
Daniel Marcotte
6df244d429 Fit what metadata we can into autocompletes
The whole meta string currently gets dropped from the autocompletes
popup if it doesn't fit.  This leads to confusing autocompletes where
the meta for some entries are missing for no apparent reason.

So, instead of dropping the entire meta string when it doesn't fit,
insert what we can and append "..." to communicate that we clipped it.
2015-02-25 16:43:39 -08:00
Scott Glajch
b5064a4bb3 Fix for issue #2374, maximum call stack exceeded in 64 bit chrome when pasting large chunks. 2015-02-25 13:00:39 -05:00
nightwing
9905267e4d fix gutter in static highlight when wrapping is enabled 2015-02-25 00:14:14 +04:00
Harutyun Amirjanyan
bed3a18d49 Merge pull request #2366 from leanprover/add-lean-mode
add 'lean' mode for Lean Theorem Prover files
2015-02-24 23:25:57 +04:00
Soonho Kong
49ff504639 fix qqstring rule in lean-mode 2015-02-24 14:10:41 -05:00
Harutyun Amirjanyan
a035cd2558 Merge pull request #2373 from pamelafox/patch-2
Add ClassName to highlighting
2015-02-24 23:03:48 +04:00
Harutyun Amirjanyan
9a275f304d Merge pull request #2371 from pamelafox/patch-1
Adding cursive and fantasy to keywords list
2015-02-24 23:02:07 +04:00
Pamela Fox
b6910a3094 Add ClassName to highlighting
So that document.getElementsByClassName gets highlighted.
2015-02-24 10:59:36 -08:00
Soonho Kong
27ad846641 highlight names followed nameProviders in lean-mode 2015-02-24 13:21:40 -05:00
Soonho Kong
34d80e81ca clean up string rule for lean-mode 2015-02-24 13:21:22 -05:00
Soonho Kong
3c34a9852f add and sort keywords/storage-modifiers for lean-mode 2015-02-24 13:20:28 -05:00
Soonho Kong
a0fe09f3be clean up unused rules for lean-mode 2015-02-24 13:19:56 -05:00
Pamela Fox
906b6c9d8d Adding cursive and fantasy to keywords list 2015-02-24 09:30:43 -08:00
Soonho Kong
74800e84ee remove single quoted string (qstring) from lean-mode 2015-02-24 12:09:11 -05:00
Soonho Kong
8f49d3d897 add a small demo for lean mode 2015-02-24 11:11:34 -05:00
Soonho Kong
9654382294 use 'defaultToken' for comment/qqstring/qstring in lean-mode
Suggested by @nightwing
2015-02-24 11:02:06 -05:00
nightwing
5ce334e930 update CONTRIBUTING.md 2015-02-24 18:49:59 +04:00
nightwing
7572a9543e update syntax docs 2015-02-24 18:42:15 +04:00
Soonho Kong
b3da9336ee add 'lean' mode for Lean Theorem Prover files 2015-02-23 07:03:52 -05:00
nightwing
4bc34f4eae fix #2341 do not use ace_editor id for the default style 2015-02-18 23:26:22 +04:00
nightwing
16b542aea4 reduce crazy large negative top value on hidden textarea (fixes #2362) 2015-02-18 23:19:27 +04:00
Ruben Daniels
60a1281708 Merge pull request #2355 from ajaxorg/build-issues
Fix build issues
2015-02-16 11:28:20 -08:00
Ruben Daniels
2ff39c2192 Merge pull request #2322 from ajaxorg/altgr
Fix altgr handling
2015-02-16 11:27:45 -08:00
Ruben Daniels
34f57e7499 Merge pull request #2316 from ajaxorg/misc
Fix xml autodindent and several small issues
2015-02-16 11:27:16 -08:00
Harutyun Amirjanyan
04e75ea0db Merge pull request #2359 from invokr/master
Added new C++11 tokens to highlighting rules
2015-02-16 19:13:07 +03:00
Robin
b0475ce3e4 Added C++11 tokens to highlighting rules 2015-02-16 14:27:22 +00:00
Harutyun Amirjanyan
d86b2fd7ee Merge pull request #2332 from kevinushey/bugfix/xml-tag-highlighting
[xml] ensure tag name starts with letter
2015-02-16 15:27:42 +03:00
nightwing
0b20e4dc1d fix #2351 Minification fails on Windows 2015-02-12 19:46:21 +04:00
nightwing
388f0235b7 fix #2348 packaged require breaks node-webkit 2015-02-12 19:45:43 +04:00
nightwing
d9e4b52ee1 fix alt-e at the last error 2015-02-10 19:09:27 +04:00
nightwing
703a5394e3 toggle fold commands must work for all selections 2015-02-10 19:09:11 +04:00
nightwing
42b43b1fbe fix highlighting of indented bash heredocs 2015-02-10 19:08:56 +04:00
nightwing
3e32d5bf7e workaround for vim cursor getting stuck on folded lines 2015-02-10 19:07:55 +04:00
Harutyun Amirjanyan
385a285c58 Merge pull request #2334 from tylerlong/master
XAML is XML
2015-02-02 19:58:44 +04:00
Tyler Long
c840471248 XAML is XML
https://msdn.microsoft.com/en-us/library/cc295302.aspx
2015-01-29 14:47:57 +08:00
Kevin Ushey
3fe1383cdc [xml] ensure tag name starts with letter 2015-01-28 10:53:42 -08:00
Harutyun Amirjanyan
6b88b939c2 Merge pull request #2325 from mdinger/add_usize_isize_highlighting
Add Rust highlight support for isize, usize, us and is
2015-01-27 23:57:24 +04:00
mdinger
1621c1519c Add highlight support for isize, usize, us and is 2015-01-24 14:18:11 -05:00
nightwing
0da0566bac fix pagedown in vim mode 2015-01-24 18:53:41 +04:00
nightwing
b93d772720 do not overwrite ctrl-alt-0 on windows since that is used on German keyboard 2015-01-23 17:21:12 +04:00
nightwing
845a6d4e98 make detection of altGr more robust 2015-01-23 17:21:12 +04:00
nightwing
8df1eb70c5 fix typo 2015-01-23 17:07:20 +04:00
Harutyun Amirjanyan
63178a0511 Merge pull request #2318 from shiroyuki/patch-1
Add the missing mode "Django" to ext-modelist
2015-01-23 16:38:49 +04:00
nightwing
9f8cb78f37 fix require path for tests 2015-01-23 16:35:45 +04:00
nightwing
acd41efcb6 do not include all whitespace lines in vim paragraphs 2015-01-23 13:36:06 +04:00
nightwing
64eaf47c4d do not throw when running vim ':write' command 2015-01-23 13:32:20 +04:00
nightwing
c769031e78 [vim] fix w for non ascii chars 2015-01-22 22:38:32 +04:00
Juti Noppornpitak
8a8bc206db Add the missing mode "Django" to ext-modelist
This is to add Django as an alternative mode for HTML files. The placement of the entry is to ensure that Django syntax highlighter does not override HTML syntax highlighter.
2015-01-19 16:30:38 -05:00
nightwing
7db217dfe0 avoid emitting spurious changeWrapMode event 2015-01-19 01:15:24 +04:00
nightwing
847bfa4bfe cleanup 2015-01-19 01:13:05 +04:00
nightwing
135b9e5baf do not autoindent after self-closing tag 2015-01-19 01:10:03 +04:00
nightwing
c356c14940 fix weird pairing of quotes in cstyle behavior 2015-01-19 00:33:14 +04:00
nightwing
2d06dc6316 workaround for word-wrap bug on chrome 2015-01-19 00:28:51 +04:00
nightwing
8c4173ba11 Merge remote-tracking branch 'remotes/origin/master' 2015-01-18 23:44:18 +04:00
Harutyun Amirjanyan
fe57baaae1 Merge pull request #2289 from iDeBugger/master
Added XMLDOM and worker for XML syntax analysis
2015-01-18 22:37:58 +03:00
Harutyun Amirjanyan
0c3246e0df Merge pull request #2315 from xixixao/patch-1
Fix doc on editor.remove
2015-01-18 22:33:43 +03:00
Michal Srb
d21be42c8a Fix doc on editor.remove 2015-01-18 14:40:51 +00:00
Smirnov O. A
ccd5d689cc Updated xmldom dependency 2015-01-16 10:06:38 +03:00
Smirnov O. A
fb41c6ce4e Update update_deps.js for xmldom 2015-01-16 09:57:52 +03:00
Smirnov O. A
3b703dad56 Merge branch 'master' of github.com:iDeBugger/ace 2015-01-14 11:07:40 +03:00
Smirnov O. A
0a7d192b3d Merge remote-tracking branch 'upstream/master' 2015-01-14 11:06:22 +03:00
Harutyun Amirjanyan
c0b300a8e8 Merge pull request #2311 from yihangho/docs/spacing
Fix spacing in index.html
2015-01-13 17:03:16 +04:00
Yihang Ho
68abe8507a Fix spacing in index.html 2015-01-13 20:45:01 +08:00
Lennart Kats
d62315a740 Merge pull request #2309 from ajaxorg/misc
Fix several small issues
2015-01-13 09:54:25 +01:00
nightwing
eddc5563d8 update json worker tests 2015-01-12 02:23:50 +04:00
nightwing
57f6fbd768 tweak completer 2015-01-12 02:12:00 +04:00
nightwing
100022564c cancel gatherCompletions if cursor position changes 2015-01-12 01:13:27 +04:00
nightwing
b57f2e2ae3 fix inline editor demo 2015-01-11 23:23:53 +04:00
nightwing
264923e4df make worker events more consistent 2015-01-11 22:48:39 +04:00
nightwing
e1a5492a7f do not throw error when trying to match tag at the end of the document 2015-01-11 22:27:12 +04:00
nightwing
5e4facea44 fix livescript highlighting 2015-01-11 22:23:25 +04:00
Harutyun Amirjanyan
37ab8daabe Merge pull request #2300 from kevinushey/patch/vim-visual-block-move-to-eol
Conform with upstream change for Vim Visual Block + move to EOL behaviour
2015-01-07 22:49:58 +04:00
nightwing
55bf8e56d3 fix highlighting of ?" in ruby mode 2015-01-07 01:18:28 +04:00
nightwing
ced37c0c19 update jshint 2015-01-06 15:45:55 +04:00
Kevin Ushey
a50833cfea conform with upstream change
Ref:
1e5ae06ba4
2015-01-05 17:11:14 -08:00
iDeBugger
b2b0e73e0f Fixed some troubles with language and codestyle 2015-01-05 00:27:11 +03:00
nightwing
72edcd332d tweak mode_creator 2015-01-05 00:34:25 +04:00
nightwing
bcc2cd9b68 Merge remote-tracking branch 'remotes/origin/master' 2015-01-05 00:20:02 +04:00
nightwing
f4ea1ccb6a always call the callback form setMode 2015-01-05 00:17:16 +04:00
nightwing
a06739af9a Merge remote-tracking branch 'remotes/origin/fix/webkit-focus-bug' 2015-01-04 23:54:53 +04:00
nightwing
aceddd9f8f Merge branch 'pull/2273' 2015-01-04 23:54:00 +04:00
nightwing
ad9aa35ffe Revert "Reduced size of sample document" 2015-01-04 23:52:40 +04:00
nightwing
b66fb6def8 Merge branch 'pull/2269' 2015-01-04 23:50:57 +04:00
nightwing
0054bb8794 cleanup 2015-01-04 23:48:28 +04:00
nightwing
4603c34b10 workaround for webkit focus bug 2015-01-01 02:00:02 +04:00
Bernhard Weichel
07d01fda44 fixed a few typos and added more snippets 2014-12-29 22:10:03 +01:00
Smirnov O. A
4aff48a837 Added XMLDOM and worker for XML syntax analysis 2014-12-24 14:44:31 +03:00
Harutyun Amirjanyan
4b8a9a475b Merge pull request #2284 from darabos/patch-1
Fix getVScrollBarAlwaysVisible
2014-12-23 23:30:26 +04:00
Matthias S. Benkmann
eccc98b83b net.put => net.request('PUT'; improved usability for "Save" buttons 2014-12-23 16:33:56 +01:00
Matthias S. Benkmann
e7afb4f19e support glob patterns for --puttable; reformat for ancient terminals 2014-12-23 15:51:23 +01:00
Matthias S. Benkmann
8919b113d1 add server upload buttons and Ctrl-S bindings to mode_editor
in combination with PUT support in ./static.py (or whatever other web server)
this allows people to save both the highlighting rules and the demo documents right
from the mode editor for a better workflow.
2014-12-23 13:03:09 +01:00
Matthias S. Benkmann
ded43d9d69 HTTP PUT support for static.py
change host default to 127.0.0.1 for better security
improved option parsing
2014-12-23 13:03:09 +01:00
Bernhard Weichel
14850f5b9e Reduced size of sample document 2014-12-22 16:55:40 +01:00
Lennart Kats
7ff1f1dd0d Merge pull request #2283 from ajaxorg/misc
Sync with cloud9
2014-12-22 13:29:17 +01:00
nightwing
8ff856186d update tests for c mode 2014-12-22 02:47:38 +04:00
nightwing
b46a0fb4f9 do not include xml tag attributes in the fold range 2014-12-22 02:47:31 +04:00
Daniel Darabos
b9a4f293ed Fix getVScrollBarAlwaysVisible.
By accident it was returning `$hScrollBarAlwaysVisible`.
2014-12-21 22:52:21 +01:00
nightwing
724b66857d Merge remote-tracking branch 'remotes/pull/2281' 2014-12-21 13:47:50 +04:00
nightwing
56cb246c78 max stack size on chrome is smaller now 2014-12-21 13:46:41 +04:00
nightwing
fed215d046 do not discard modifier info of modifier keys 2014-12-21 13:39:25 +04:00
nightwing
7a3257ab58 fix incorrect highlighting in c and haskell modes 2014-12-21 13:39:25 +04:00
nightwing
2d12ebb1df improve global access warning in the demo 2014-12-21 13:39:13 +04:00
Kevin Ushey
15b83aca5f fix move to EOL behaviour for visual block mode 2014-12-20 13:31:23 -08:00
nightwing
60dd224d96 remove old delta shim from vim mode 2014-12-20 19:53:51 +04:00
nightwing
067a1ee68b Merge remote-tracking branch 'remotes/origin/master' 2014-12-20 19:51:39 +04:00
Harutyun Amirjanyan
5ea0a9b802 Merge pull request #2280 from ajaxorg/vim2
Update vim mode to the latest version
2014-12-20 19:45:50 +04:00
nightwing
66ede32c42 update build submodule 2014-12-20 16:19:58 +04:00
nightwing
ed5c38b7c8 update list of users 2014-12-19 18:50:55 +04:00
nightwing
b5c9b7f395 fix typo in IE mouse handler 2014-12-19 18:45:25 +04:00
Lennart Kats
7b037f35ba Merge pull request #2267 from ajaxorg/fix/various
Fix various small issues
2014-12-16 16:06:41 +01:00
Harutyun Amirjanyan
52de738e8a Merge pull request #2275 from mehtaphysical/char_reserved_in_js
change variable char to character
2014-12-16 01:01:45 +04:00
Ryan Mehta
dafa24d5e1 change variable char to character 2014-12-15 12:33:49 -08:00
Bernhard Weichel
95eed25439 small fix in the snippets 2014-12-14 23:53:52 +01:00
Bernhard Weichel
7da354d5f3 fixed Uncaught TypeError: undefined is not a functionapp_config.js:147
(anonymous function)app_config.js:146 setDefaultValuesmode_creator.js:6
2014-12-14 23:40:47 +01:00
Bernhard Weichel
18b3c57de9 Merge branch 'master' of https://github.com/ajaxorg/ace into feature/ace_language_definition
# By nightwing (7) and others
# Via Harutyun Amirjanyan (4) and others
* 'master' of https://github.com/ajaxorg/ace:
  do not pair quotes inside strings
  fix toggleComment command in php mode
  fix copyLines* for multiple selections
  fix pairing of quotes in cstyle behavior
  add helper for creating tests
  Autocomplete exactMatch option
  add *~ (backup files created by various editors) to .gitignore
  Remove unneeded regex groups for Eiffel
  Update Eiffel programming language definition.
  add config.warn and refactor config to allow sharing with ace_tree
  do not use automatic scroll into view
  Teach tmlanguage.js to process multiple .tmLanguage files at once
2014-12-14 23:11:35 +01:00
Bernhard Weichel
8019a21475 added abc mode 2014-12-14 20:34:41 +01:00
nightwing
c5edaa3608 allow filtering tests in browser runner 2014-12-13 16:45:56 +04:00
nightwing
5a03993f65 update vim.js 2014-12-13 00:50:13 +04:00
Lennart Kats
5fc3bbbe09 Merge pull request #2249 from ajaxorg/misc
Several small fixes
2014-12-12 20:48:16 +01:00
nightwing
6b13aedf5f do not pair quotes inside strings 2014-12-12 17:38:39 +04:00
nightwing
ec18d9493d fix toggleComment command in php mode 2014-12-12 17:38:39 +04:00
nightwing
3fa54ce97e fix copyLines* for multiple selections 2014-12-12 17:38:39 +04:00
nightwing
852e0673ca fix pairing of quotes in cstyle behavior 2014-12-12 17:38:38 +04:00
nightwing
278f1d1674 add helper for creating tests 2014-12-12 17:38:38 +04:00
Harutyun Amirjanyan
232b3c0f8c Merge pull request #2272 from adamjimenez/autocomplete-exact
Autocomplete exactMatch option
2014-12-12 17:21:39 +04:00
nightwing
d8f0ab2a16 fix regression in setDefaultValues 2014-12-12 16:56:02 +04:00
Adam Jimenez
cfdb223e7a Autocomplete exactMatch option
Option to show only exact matches in autocomplete
2014-12-12 10:27:45 +00:00
Harutyun Amirjanyan
d68050c62b Merge pull request #2268 from mbenkmann/gitignore_backup_files
add *~ (backup files created by various editors) to .gitignore
2014-12-10 11:11:00 -08:00
Matthias S. Benkmann
119259b702 add *~ (backup files created by various editors) to .gitignore 2014-12-07 18:21:03 +01:00
nightwing
c49e5bfef9 disable warning 2014-12-07 01:26:44 +04:00
nightwing
2fc497477d highlight tags when cursor is before tagname 2014-12-07 01:26:24 +04:00
nightwing
e54882db64 use setAttribute instead of autocorrect setter, since the setter doesn't work on ipad 2014-12-07 01:08:06 +04:00
Harutyun Amirjanyan
e217418d39 Merge pull request #2266 from Conaclos/master
Update Eiffel definition
2014-12-06 13:03:03 -08:00
Victorien ELVINGER
354dc37ea6 Remove unneeded regex groups for Eiffel 2014-12-06 20:04:27 +01:00
Victorien ELVINGER
29597325d9 Update Eiffel programming language definition.
- Disable comments into strings
- Enable concise form for real numbers
- Enable juxtaposed digit separators
- Check char and string content.
2014-12-06 19:50:52 +01:00
Harutyun Amirjanyan
0d4566b42b Merge pull request #2264 from aroben/convert-many-tmlanguages
Teach tmlanguage.js to process multiple .tmLanguage files at once
2014-12-04 03:44:16 -08:00
Lennart Kats
e1933043dc Merge pull request #2254 from ajaxorg/do-not-scroll
Disable automatic scroll into view
2014-12-04 11:10:29 +01:00
nightwing
a71c17b46f add config.warn and refactor config to allow sharing with ace_tree 2014-12-04 14:02:49 +04:00
nightwing
8c1aa5c772 do not use automatic scroll into view
prepares for deprecating the feature in the next version of ace
2014-12-04 14:02:19 +04:00
Lennart Kats
35155075e0 Merge pull request #2219 from ajaxorg/vim2
better vim mode
2014-12-04 10:55:29 +01:00
Adam Roben
23a3ba85f0 Teach tmlanguage.js to process multiple .tmLanguage files at once
You can now pass more than one .tmLanguage file to tmlanguage.js and it will
process each one in turn. This can vastly speed up the processing of multiple
files as you don't have to pay the node/V8 startup cost for each file.

Note that the script's "dev mode" is now controlled by a --dev flag rather than
an unnamed second argument.
2014-12-03 13:56:22 -05:00
Lennart Kats
57a07f54b3 Merge pull request #2261 from ajaxorg/build
fix broken paths in kitchen-sink demo
2014-12-01 16:10:08 +01:00
Harutyun Amirjanyan
93bd34e1cf Merge pull request #2238 from sevin7676/master
cstyle Comment Folding (region and triple star single line block comment)
2014-11-29 23:59:14 -08:00
Harutyun Amirjanyan
16cdd9ddb3 Merge pull request #2259 from jpallen/patch-2
Highlight \ref, \vref, \cite and \citep as labels
2014-11-28 06:33:29 -08:00
James Allen
fc322711ca Highlight \ref, \vref, \cite and \citep as labels
The `\ref`, and `\cite` commands in LaTeX are similar to `\label`s in that they refer to user defined labels elsewhere in the text, and it makes sense to highlight them with the same color scheme. Particularly the coloring of arguments to `\ref` commands should match the color of `\label` commands because `\label` defines the strings that `\ref` then references.
2014-11-28 13:34:16 +00:00
sevin7676
c1a8e77760 Add comment to explain unusual naming and remove ending whitespace 2014-11-28 08:18:33 -05:00
Harutyun Amirjanyan
097d19e943 Merge pull request #2256 from devoncarew/devoncarew_dart_keywords
more dart keywords
2014-11-26 07:31:07 -08:00
Devon Carew
f7144da4ec more dart keywords 2014-11-25 13:37:36 -08:00
sevin7676
41df1f265f Fix fold widget range for region
End range should be at end of line as we don't want to display the
'#endregion' text after the fold widget (this is consistent with cstyle
region comment folding).

Added missing semi-colons.
2014-11-25 07:01:09 -05:00
sevin7676
1869024de6 changes per nightwing recommendations
Rename this.getFoldWidgetBase to avoid conflict with C# mode.

Use regex instead of substring and trim to determine single line block
comment.

Fixed formatting.

Renamed this.getRegionBlock to this.getCommentRegionBlock to prevent C#
mode conflict.

Updated this.getCommentRegionBlock regex to make nested regions work
properly.

Cleaned up this.startRegionRe (had unneeded parenthesis).
2014-11-25 06:58:45 -05:00
sevin7676
602a7efd5f removed unused line
the end of the range should be the end of the line as we don't want to
see [//#endreigon] in our fold widget.
2014-11-24 10:18:00 -05:00
sevin7676
03730ce381 extra comment to help explain code 2014-11-24 09:52:57 -05:00
sevin7676
f26841da41 tested and cleaned up 2014-11-24 09:48:41 -05:00
sevin7676
fb32897b85 progress
appears to be working, need to clean up still
2014-11-24 09:29:37 -05:00
nightwing
49b50ff347 fix broken paths in kitchen-sink demo 2014-11-23 20:06:41 +04:00
Harutyun Amirjanyan
a50fe34925 Merge pull request #2253 from wcandillon/patch-1
Remove references to built-in modules
2014-11-23 14:27:33 +04:00
William Candillon
332472ecc6 Remove references to built-in modules 2014-11-22 19:27:52 -08:00
nightwing
2f32304c2e update vim.js 2014-11-22 00:52:50 +04:00
nightwing
a40060c1ae increase timeout for intermittently failing placeholder_test.js 2014-11-21 23:15:39 +04:00
nightwing
b4d2cf810d fix failing test 2014-11-21 23:15:37 +04:00
nightwing
a185414f64 remove old vim mode 2014-11-21 23:15:34 +04:00
nightwing
f9de0a5661 use ctrl-c and mac repeat handling from old vim mode 2014-11-21 23:14:28 +04:00
nightwing
068c950517 add support for multiple selections 2014-11-21 23:14:27 +04:00
nightwing
bd7de6b43b fix find next for regexps matching empty range 2014-11-21 23:14:26 +04:00
nightwing
aa472742cc allow to customize cursor appearance 2014-11-21 23:14:24 +04:00
nightwing
8daf190b2e add CodeMirror api proxy for vim mode 2014-11-21 23:14:21 +04:00
nightwing
f47c3ea8bd add cm vim mode 2014-11-21 23:04:16 +04:00
Harutyun Amirjanyan
38ed6de508 Merge pull request #2246 from wcandillon/patch-1
Disable module resolver
2014-11-21 16:51:49 +04:00
Harutyun Amirjanyan
d8d1e08a86 Merge pull request #2236 from tenbits/master
Add Mask Highlighter
2014-11-21 16:50:44 +04:00
Harutyun Amirjanyan
2c796133e0 Merge pull request #2247 from aroben/custom-tmtheme
Teach tmtheme.js how to convert a non-built-in theme
2014-11-21 16:49:45 +04:00
Alex Kit
1587b96b3c Add Mask Highlighter 2014-11-21 05:08:12 +01:00
Adam Roben
11d15b2f28 Pretty-print CSS even when creating a new file 2014-11-20 15:19:27 -05:00
nightwing
eec012b24e fix ignoring empty delta 2014-11-20 23:28:09 +04:00
nightwing
004a19855a do not throw for broken anchors since that can break editor 2014-11-20 23:23:46 +04:00
nightwing
d619e4e746 allow passing newLineCharacter ot getValue 2014-11-20 23:02:34 +04:00
nightwing
27264bb9d9 fix infinite loop when inserting more than 0xF000 lines at once 2014-11-20 23:01:53 +04:00
Adam Roben
89702bf606 Make tmtheme.js handle elements with no settings
We just ignore them now rather than throwing an exception.
2014-11-20 10:56:57 -05:00
Adam Roben
f471e54ef0 Teach tmtheme.js how to convert a non-built-in theme
You can now pass a .tmTheme file on the command line to have it converted.
2014-11-20 10:56:32 -05:00
William Candillon
e0bd006ffc Update xqlint dependency 2014-11-18 13:55:32 -08:00
William Candillon
9f2473bce2 Disable module resolver 2014-11-18 13:48:02 -08:00
Lennart Kats
d097d41144 Merge pull request #2237 from ajaxorg/focus
fix focus related issues
2014-11-17 10:34:12 +01:00
Harutyun Amirjanyan
a0f7864b78 Merge pull request #2241 from jmeas/fix-position
Sets offset of fontMetrics div to be 0.
2014-11-16 19:14:29 +04:00
Jmeas
a45385be98 Sets offset of fontMetrics div to be 0.
Offsetting the fontMetrics div causes the 'ghost image' created when
drag and dropping an Ace Editor to be offset by that same amount. By
removing the offset we fix the problem. Closes #2240.
2014-11-15 19:59:07 +01:00
sevin7676
ef856d0f61 Javascript fixes
added forceMultiline parameter and removed line copied from C# folding
2014-11-15 09:15:25 -05:00
sevin7676
a70a9a88a9 new javascript folding in html mode 2014-11-15 09:03:31 -05:00
sevin7676
11bbc03e1d Javascript region folding 2014-11-15 08:48:20 -05:00
sevin7676
1bed3ec951 Javscript region folding 2014-11-15 08:38:21 -05:00
nightwing
bf7eba2253 fix focusing window with click on ie 2014-11-14 23:57:06 +04:00
nightwing
7326de2a48 reset cached scroll values when resizing
this is needed since scrollTop of scrollbar element can be reset to 0
when ace is moved in the document.
2014-11-14 23:57:06 +04:00
nightwing
1721ca8a0c fix unwanted scrolling into view of hidden textarea 2014-11-14 23:56:55 +04:00
Lennart Kats
c5c1bb2b13 Merge pull request #2235 from ajaxorg/hotfix/php_folding
Hotfix for regression in php folding
2014-11-12 17:08:35 +01:00
nightwing
3a8b279e43 update fold widgets in mixed modes when tokenizer state changes 2014-11-12 18:40:22 +04:00
nightwing
742e8c01a8 fix folding of li tags containing unclosed p tags 2014-11-12 18:38:50 +04:00
nightwing
5801b75b5d fix php folding 2014-11-12 18:37:59 +04:00
nightwing
a4532dd8b9 Merge remote-tracking branch 'remotes/origin/master' into v-1.2
Conflicts:
	build
	lib/ace/multi_select_test.js
2014-11-11 11:47:04 +04:00
nightwing
64f2fc4015 add newLineCharacter argument to getValue 2014-11-11 11:45:20 +04:00
nightwing
ffaf44ec0b copy insert start position before storing it in undoStack 2014-11-11 11:44:17 +04:00
nightwing
bacaeb07d8 cleanup 2014-11-11 11:40:18 +04:00
nightwing
271cefb44a fix typo 2014-11-08 23:52:05 +04:00
nightwing
b8e3198ba8 version 1.1.8 2014-11-08 23:45:22 +04:00
nightwing
a4d831f474 add more users 2014-11-08 20:56:18 +04:00
nightwing
c4e937939a Merge remote-tracking branch 'remotes/origin/mode_issues' 2014-11-08 16:25:19 +04:00
nightwing
5562566b37 Merge remote-tracking branch 'remotes/origin/emacs'
Conflicts:
	lib/ace/incremental_search_test.js
2014-11-08 16:02:02 +04:00
nightwing
d09740f494 fix emacs universal argument 2014-11-08 15:57:23 +04:00
Robert Krahn
e83252130c emacs: improved multi selection handling for emacs mark 2014-11-06 23:27:54 -08:00
nightwing
072dcb1c11 fix tripple brace highlighting in handlebars mode 2014-11-06 20:43:08 +04:00
Harutyun Amirjanyan
989d0ac3fb Merge pull request #2226 from LivelyKernel/isearch-regexp-support
isearch regexp support
2014-11-06 10:15:53 +04:00
Robert Krahn
775cdedefb isearch test fix 2014-11-05 15:30:05 -08:00
Robert Krahn
a93646d2f7 isearch: commands searchAsRegExp and selectAllMatches 2014-11-05 15:30:03 -08:00
Robert Krahn
7bb5b305be isearch: add regexp support 2014-11-05 15:30:01 -08:00
Robert Krahn
939e0739a7 adding improvements as suggested by @nightwing 2014-11-05 15:25:28 -08:00
Robert Krahn
8786e17e6b isearch test: ensure multi select 2014-11-05 15:25:27 -08:00
Robert Krahn
0a055cb725 isearch: being flexible about whether emacs mode is on or not 2014-11-05 15:25:26 -08:00
Robert Krahn
54d80d79ab emacs: make code strict conform 2014-11-05 15:25:16 -08:00
Robert Krahn
ea67201540 emacs: fix exchangePointAndMark in normal select mode 2014-11-05 15:25:15 -08:00
Robert Krahn
78b2147c3c emacs/isearch: select when moving cursor via isearch and emacs mark is set 2014-11-05 15:25:14 -08:00
Robert Krahn
b966cfd7da emacs: cleanup 2014-11-05 15:25:12 -08:00
Robert Krahn
24f3bab19d emacs: fix multi select exchangePointAndMark
Conflicts:
	lib/ace/keyboard/emacs.js
2014-11-05 15:25:08 -08:00
Robert Krahn
90034c3a44 fixing multi selection handling for various emacs commands
Conflicts:
	lib/ace/keyboard/emacs.js
2014-11-05 15:24:41 -08:00
nightwing
9ccf68dbb2 make sure missing emmet can't break tab key 2014-11-05 23:17:59 +04:00
nightwing
22de936727 fix bracket pairing for multiple selections 2014-11-05 23:15:45 +04:00
Lennart Kats
f133231df8 Merge pull request #2222 from ajaxorg/mode_issues
Fix mode issues
2014-11-05 14:47:05 +01:00
nightwing
e26c70ad53 update soy_template test 2014-11-05 17:36:14 +04:00
nightwing
f362d2e84a add markdown comment to elixir demo 2014-11-05 16:56:51 +04:00
nightwing
96061f72ae update ChangeLog 2014-11-05 16:51:34 +04:00
nightwing
70337ea5ba fix infinite loop in soy mode and make tokenizer more robust 2014-11-05 16:42:39 +04:00
nightwing
78cda6bc3a update architect-build 2014-11-02 15:33:23 +04:00
nightwing
c83f39e4a9 update tests for ruby mode 2014-11-02 15:33:10 +04:00
nightwing
399e25ceaf fix errors in imported elixir mode 2014-11-02 15:32:26 +04:00
nightwing
4da689e71b add elixir mode 2014-11-02 15:06:12 +04:00
nightwing
ca9bc7a97a improve highlighting of ruby strings 2014-11-01 21:44:53 +04:00
nightwing
5b3bbba54e fix xquery mode breaking autocompletion and add tests 2014-11-01 19:27:40 +04:00
nightwing
671a8d6543 support nested comments in rust mode 2014-11-01 18:15:00 +04:00
nightwing
fd4be8535f Merge pull request #2216 from adamjimenez/php-delegate
use mode delegates in PHP
2014-10-31 15:18:02 +04:00
nightwing
366675a7a7 fix inline php mode 2014-10-31 15:08:44 +04:00
Adam Jimenez
2bd2e37367 fix php indentation 2014-10-30 01:52:38 +00:00
Harutyun Amirjanyan
e08a925870 Merge pull request #2218 from SomeKittens/master
Add COPY as a Docker command to be highlighted
2014-10-30 04:34:30 +04:00
Randall Koutnik
c0b37c1ac2 Add COPY as a Docker command to be highlighted 2014-10-29 17:09:09 -07:00
nightwing
2e8d7184e2 Merge pull/2215 2014-10-29 23:19:25 +04:00
nightwing
f121ca93ff update comment too 2014-10-29 23:18:09 +04:00
Adam Jimenez
b204cd7236 use mode delegates in PHP
fixes #2197
2014-10-29 17:01:41 +00:00
Bolutife Ogunsola
292d92ab8c Update documentation to reflect change introduced in 9253fffb9f 2014-10-29 14:25:21 +01:00
Bolutife Ogunsola
5b30207d74 Fix typo 2014-10-29 14:25:21 +01:00
Harutyun Amirjanyan
20cd631f0a Merge pull request #2198 from adamjimenez/patch-2
Autoindent doesn't always occur
2014-10-29 16:37:17 +04:00
Adam Jimenez
8e3da36bc7 autoindent tweaks
use camelcase and start line indent
2014-10-29 12:08:30 +00:00
Adam Jimenez
5e724c5ebd autoindent from start of tag 2014-10-29 10:13:20 +00:00
Adam Jimenez
b3d0c62a8d tidy up autoindent
use voidElements and double quotes.
2014-10-29 09:54:16 +00:00
Lennart Kats
695e24c418 Merge pull request #2210 from ajaxorg/misc
Fix several small issues
2014-10-28 11:04:05 +01:00
nightwing
3ef6bc2097 do not show error for empty json files 2014-10-27 21:35:51 +04:00
Harutyun Amirjanyan
e8419e5742 Merge pull request #2208 from coderaiser/patch-2
feature(package) v1.1.7
2014-10-27 13:05:04 +04:00
Harutyun Amirjanyan
2de76b5251 Merge pull request #2207 from coderaiser/patch-1
Simplified reading version from package.json
2014-10-27 13:04:17 +04:00
coderaiser
f3d9c588bd feature(package) v1.1.7 2014-10-25 18:35:41 +03:00
coderaiser
d068e2f737 feature(version) simplified reading version from package.json 2014-10-25 18:34:22 +03:00
nightwing
1a70ef15e2 fix #2190 autocomplete doesn't show tooltip when list initially appears 2014-10-25 03:25:44 +04:00
nightwing
58d166d647 do not add extra semicolon in built files 2014-10-25 02:07:06 +04:00
nightwing
fd5a6ade03 fix #2183 scrollPastEnd breaks vScrollBarAlwaysVisible=false option 2014-10-24 16:40:53 +04:00
Adam Jimenez
289ada0a2f don't indent after closing tag 2014-10-23 09:28:42 +01:00
Harutyun Amirjanyan
af859e2b0c Merge pull request #2189 from takapa/master
Improve tooltips
2014-10-21 19:55:27 +04:00
Harutyun Amirjanyan
94514a8456 Merge pull request #2200 from adamjimenez/patch-5
Fix string tooltips not showing
2014-10-21 18:19:46 +04:00
Harutyun Amirjanyan
1d39be41a6 Merge pull request #2201 from adamjimenez/patch-6
send completion data to completer callback
2014-10-21 18:19:38 +04:00
Adam Jimenez
7b01a4273e send completion data to completer callback 2014-10-21 12:46:29 +01:00
Adam Jimenez
bf8e9ddf45 Fix string tooltips not showing 2014-10-21 10:35:34 +01:00
Chris Ainsley
cef48f6887 Responded to suggestions by nightwing
Removed style changes (no style changes are part of the PR).

Only change now should be that we create a <div/> element instead of a <pre/> element.
2014-10-20 21:33:23 +01:00
Adam Jimenez
631695a0e4 Autoindent doesn't always occur
Currently autoindent only kicks in as so: 
```
<div>|</div>
```

This allows it to also work with:
```
<div>|

</div>
```
2014-10-20 17:30:26 +01:00
nightwing
525fe1ffe3 do not wrap change events in additional e.data 2014-10-18 00:56:13 +04:00
nightwing
bb827051a6 Merge branch 'master' into v-1.2
Conflicts:
	lib/ace/commands/command_manager.js
2014-10-17 19:25:02 +04:00
nightwing
c97858705d cleanup 2014-10-17 19:23:43 +04:00
Harutyun Amirjanyan
40a9c308b9 Merge pull request #2191 from maxh/patch-1
Fix errors in Anchor docs
2014-10-14 14:53:10 +04:00
Max Heinritz
f8bf6f253a Fix errors in Anchor docs
At least, I think they are errors.
2014-10-13 11:54:33 -07:00
DanyaPostfactum
6502a3d2cb Update tests for wrap indent 2014-10-12 18:37:52 +10:00
DanyaPostfactum
f625dfeea3 Add indentSubsequentLines to options 2014-10-12 18:37:20 +10:00
takapa
2636e5de5f Improve tooltips
Allow tooltips in div element (currently tooltips only allow items in pre element which is tricky to format). Also fix wrapping, remove gradient fill, and introduce a maximum width of 500px by default.
2014-10-12 01:20:27 +01:00
DanyaPostfactum
60367772a9 Add wrap indent 2014-10-12 01:56:19 +10:00
Lennart Kats
3af776df12 Merge pull request #2186 from ajaxorg/highlighter-fixes
Highlighter fixes
2014-10-11 17:16:48 +02:00
nightwing
43cdfd792f Add HACK and XXX 2014-10-10 23:54:19 +04:00
Lennart Kats
a02ca596b9 Merge pull request #2073 from ajaxorg/multihash
Allow binding multiple commands to one key
2014-10-10 15:41:23 +02:00
nightwing
ed40c1f51f improve tmlanguage.js 2014-10-10 02:05:15 +04:00
nightwing
9683d80f84 highlight todo in javascript comments 2014-10-09 20:49:25 +04:00
nightwing
52e8bc3082 add elm mode (fixes #2099) 2014-10-09 16:41:49 +04:00
nightwing
23c64c6ebb Add highlighting for raw string literals in rust mode. 2014-10-09 16:39:14 +04:00
nightwing
9cc394d3b9 Merge pull request #2169
allow removing completers
2014-10-09 01:32:30 +04:00
nightwing
38ce8b8919 less java:) 2014-10-09 01:30:05 +04:00
takapa
28b95df12c Added setCompleters(...) function
Added setCompleters() method, so that completers can be explicitly set from a pre-populated array, or can be removed entirely (if null is passed, or setCompleters() is called without an argument or an empty array is passed.

Please check this carefully for rookie JavaScript bugs, as I'm not sure if the null/undefined test is best-practise here as I don't typically code in JavaScript in my day-job.
2014-10-08 22:07:23 +01:00
Ruben Daniels
18f999fc47 Merge pull request #2174 from ajaxorg/autoscroll
AutoScrollEditorIntoView doesn't work for search
2014-10-06 16:57:58 -07:00
Ruben Daniels
0609c8e1a8 Merge pull request #2175 from ajaxorg/misc
Fix several small issues
2014-10-06 16:57:39 -07:00
Ruben Daniels
61ca159312 Merge pull request #2148 from ajaxorg/autocomplete
Add documentation tooltip for autocompleter
2014-10-06 16:57:16 -07:00
Harutyun Amirjanyan
cc40b8ceb8 Merge pull request #2177 from richo/fix-username
Fix @richo's username
2014-10-06 18:56:30 +04:00
Richo Healey
1a6bb0591b Fix @richo's username 2014-10-05 19:22:17 -07:00
nightwing
6814187c51 fix name of templates/highlight_rules.js 2014-10-05 23:07:34 +04:00
nightwing
29023787e5 Merge remote-tracking branch 'remotes/origin/master' into v-1.2
Conflicts:
	build
	lib/ace/document.js
	lib/ace/editor.js
2014-10-05 23:04:57 +04:00
nightwing
2983c4b19f do not throw when trying to add intersecting folds 2014-10-05 22:53:31 +04:00
nightwing
c2ce33f368 fix search.$assembleRegExp not working for multiline strings 2014-10-05 22:53:31 +04:00
nightwing
a1042e0d94 fix reattaching linewidgets to editor 2014-10-05 22:53:31 +04:00
nightwing
6c0bc56500 improve error handling in worker 2014-10-05 22:53:31 +04:00
nightwing
ab6aa3be5c fix gutter colors in theme importer 2014-10-05 22:53:31 +04:00
nightwing
14fc8adac2 cleanup mode_creator tool 2014-10-05 22:53:30 +04:00
nightwing
6867d1f4c6 fix several highlighter issues 2014-10-05 22:53:30 +04:00
nightwing
6e9ce4dbc8 fix #2173 AutoScrollEditorIntoView doesn't work for search 2014-10-05 00:14:10 +04:00
takapa
9b8385b07d Update language_tools.js
Added removeCompleters() function to language tools exports as it is not possible to access the completers array directly.

This is currently utilized by Ace GWT to cleardown existing completers (for entirely programmatic completers without snippets or  keyword completions) but I feel it belongs in the mainline (I have to manage a fork at the moment and there seems to be no other workaround).
2014-09-30 19:55:06 +01:00
Harutyun Amirjanyan
54e022fab2 Merge pull request #2168 from phungleson/patch-1
Change line comment start to //
2014-09-30 18:57:10 +04:00
Son
47b9c6c225 Change line comment start to //
http://doc.rust-lang.org/guide.html#comments
2014-09-30 22:07:53 +08:00
Harutyun Amirjanyan
cec6779003 Merge pull request #2165 from Newbrict/master
clipped trailing whitespace
2014-09-27 23:57:58 +04:00
Dimitar Dimitrov
753fa6b904 clipped trailing whitespace 2014-09-27 13:58:04 -04:00
Harutyun Amirjanyan
f4356993b2 Merge pull request #2157 from cvoege/master
Added Find All Functionality to Ctrl-F searchbox.
2014-09-27 13:35:16 +04:00
Colton Voege
4b44bad687 Replace all with Alt-Enter fixed. 2014-09-25 12:57:32 -04:00
Colton Voege
a33cc3223a Merge branch 'master' of https://github.com/ajaxorg/ace 2014-09-25 12:54:50 -04:00
nightwing
1bb84debca update build submodule 2014-09-21 00:14:53 +04:00
nightwing
c62b0b134f fix regression in ace_popup 2014-09-21 00:04:01 +04:00
Harutyun Amirjanyan
79eda6d2a8 Merge pull request #2111 from wcandillon/patch-3
Update XQLint dependency
2014-09-20 12:35:08 +04:00
Ruben Daniels
961eee344c Merge pull request #2159 from ajaxorg/misc
Fix several small issues
2014-09-20 10:10:04 +02:00
nightwing
8a306d8a8e workaround for inaccurate font rendering on chrome 37 2014-09-20 01:43:52 +04:00
nightwing
121835bed8 add menuitem to the list of void tags 2014-09-20 00:07:54 +04:00
Colton Voege
378a72a91c Added Find All functionality to searchbox. 2014-09-17 13:33:29 -04:00
Ruben Daniels
a0327aebd9 Merge pull request #2156 from ajaxorg/dragcursor
improve drag cursor on windows
2014-09-17 15:20:33 +02:00
Ruben Daniels
0989419251 Merge pull request #2155 from ajaxorg/keyboard/emacs
fix #2154 Emacs copy/paste issue with highlighting marker
2014-09-17 15:20:12 +02:00
nightwing
b25f4b6a10 fix #2154 Emacs copy/paste issue with highlighting marker 2014-09-17 17:05:38 +04:00
nightwing
f68ca6266a improve drag cursor on windows 2014-09-16 00:34:39 +04:00
nightwing
953e452f70 add doc tooltip 2014-09-13 03:22:55 +04:00
Ruben Daniels
e894b5f9e0 Merge pull request #2137 from ajaxorg/autocomplete
Fix several small issues
2014-09-12 20:18:22 +02:00
Ruben Daniels
74f7d0095b Merge pull request #2135 from ajaxorg/tool/add_mode
Add tool/add_mode.js for creating stub files for a new mode
2014-09-12 20:18:07 +02:00
Ruben Daniels
c029ba57c5 Merge pull request #2138 from ajaxorg/demo/warn
show warning if build/src/ace.js is missing
2014-09-12 20:17:56 +02:00
Harutyun Amirjanyan
8cc22b10eb Merge pull request #2145 from tobiasahlin/clean-up-css
Clean up CSS
2014-09-12 20:58:44 +04:00
Tobias Ahlin
ec3750edcb float triggers display block 2014-09-11 10:26:49 +02:00
Tobias Ahlin
bde7daaf1b Use animation and font shorthand 2014-09-11 10:26:13 +02:00
Tobias Ahlin
6593e25de6 Keyframes can share values 2014-09-11 10:25:52 +02:00
Tobias Ahlin
87dcd881e3 Use font shorthand 2014-09-11 10:18:23 +02:00
Tobias Ahlin
eabb4b2cb5 float triggers display: block 2014-09-11 10:17:55 +02:00
Tobias Ahlin
6a0a108d2a Vendor prefixes are not needed for border-radius 2014-09-11 09:11:54 +02:00
Tobias Ahlin
a36e7bb0c1 position: fixed triggers display: block 2014-09-11 09:11:32 +02:00
Tobias Ahlin
f103d2632c px is redundant for zero values 2014-09-11 09:06:33 +02:00
Tobias Ahlin
f4afa89d4e Vendor prefixes aren't necessary for box-shadow 2014-09-11 00:55:33 +02:00
Tobias Ahlin
a89e3d0d9d Only -webkit prefix for transitions is necessary
Android and iOS safari both support it without the prefix, but hasn’t
for long
2014-09-11 00:53:25 +02:00
Tobias Ahlin
2cdd9fef70 Use font shorthand for ace_editor 2014-09-11 00:47:41 +02:00
Harutyun Amirjanyan
4ff4d1ee43 Merge pull request #2144 from girving/doc-fix
Fix documentation typo: "includeText" should be "insertText"
2014-09-11 01:58:48 +04:00
Geoffrey Irving
6795b35135 Fix documentation type: "includeText" should be "insertText" 2014-09-10 14:43:36 -07:00
Harutyun Amirjanyan
706f2ea172 Merge pull request #2143 from p2004a/fix-filteredlist-behaviour
Changed FilteredList.setFilter unique matches computing in autocomplete.js
2014-09-10 17:47:25 +04:00
nightwing
d2b6b43679 Merge branch 'pull/2139' 2014-09-10 17:18:36 +04:00
nightwing
aec7db80d8 fix more typos 2014-09-10 17:17:11 +04:00
Marek Rusinowski
c0c99ad5c6 changed FilteredList.setFilter unique matches computing 2014-09-10 12:35:04 +02:00
Chris Schmich
91db934fe6 Fixing another typo. 2014-09-09 20:33:09 -05:00
Chris Schmich
8b996b0a09 Fix typo. 2014-09-09 20:29:44 -05:00
nightwing
fb16e59f03 do not trigger keyLocation warning (fixes #1731) 2014-09-10 04:29:43 +04:00
nightwing
cdaf4c1539 show warning if build/src/ace.js is missing 2014-09-10 04:12:42 +04:00
nightwing
1bce1b2a60 cleanup tools directory 2014-09-09 21:44:27 +04:00
nightwing
dbeeea2dd9 add helper tool for starting new mode 2014-09-09 21:18:52 +04:00
nightwing
bd95f782d8 close completion popup when backspacing to empty string 2014-09-07 17:22:04 +04:00
nightwing
e6660cd47c improve matlab highlighting fixes #2042, #2043 2014-09-07 17:21:36 +04:00
nightwing
5f6782d949 fix #2103 completion filtering doesn't work when started with empty prefix 2014-09-07 15:00:21 +04:00
nightwing
e8f7419131 fix #2054 Completer ignores better match if autoinsert is enabled 2014-09-07 14:46:20 +04:00
nightwing
bb76c62c7b fix several ie8 issues 2014-09-06 02:23:37 +04:00
nightwing
c0741f3511 fix #2119 Soft Hyphen (U+00AD) breaks cursor position calculation 2014-09-05 23:55:16 +04:00
nightwing
36f62e3792 fix #1840 The last CJK character of a wrapped line drops down 2014-09-05 23:53:16 +04:00
Lennart Kats
badade8f4e Merge pull request #2125 from ajaxorg/highlighter-fixes
Highlighter fixes
2014-09-02 16:44:48 +02:00
Harutyun Amirjanyan
8a91b43b67 Merge pull request #2117 from camertron/sql_union
Adding highlight support for the UNION SQL keyword
2014-09-02 15:27:35 +04:00
nightwing
3d6b93b946 update tests 2014-09-02 15:12:15 +04:00
nightwing
30f7f8a3f2 add es6 template string highlighting to javascript mode 2014-09-02 13:42:59 +04:00
nightwing
9f2fba320d fix herestring highlighting in sh mode 2014-09-02 13:04:33 +04:00
nightwing
09ddbeb341 add Io mode 2014-09-02 12:55:58 +04:00
nightwing
7a3a84c858 fix error in coffeeScript mode 2014-09-02 01:16:10 +04:00
Cameron Dutro
0d8865bcfe Adding highlight support for the UNION sql keyword 2014-08-27 20:01:31 -06:00
nightwing
69edbf9460 github pages now requires https submodule urls 2014-08-27 17:30:12 +04:00
Harutyun Amirjanyan
9bc0dbd788 Merge pull request #2115 from danyaPostfactum/dragdropfix
Make DragdropHandler more bulletproof
2014-08-27 15:10:45 +02:00
DanyaPostfactum
f9591eb16f Make DragdropHandler more bulletproof 2014-08-24 00:37:06 +10:00
William Candillon
bf8b6806a0 Update XQLint dependency
fixes #2108
2014-08-21 21:42:14 +02:00
Harutyun Amirjanyan
3c4afde47b Merge pull request #2080 from jpallen/master
Keep apparent scroll position fixed when changes are made offscreen
2014-08-20 15:49:03 +04:00
Harutyun Amirjanyan
60dd9156fe Merge pull request #2104 from Razer6/vhdl_mode
Add VHDL to modelist
2014-08-19 17:29:31 +04:00
Robert Schilling
fd2e51f120 Add VHDL mode 2014-08-18 22:17:39 +02:00
nightwing
bb4f7a0f1b update build 2014-08-17 15:21:17 +04:00
Lennart Kats
df58b5b710 Merge pull request #2096 from ajaxorg/old-worker
Allow using uiWorker on ie9 where Worker is undefined
2014-08-14 11:08:40 +02:00
nightwing
084dd4c132 fix regression in loading workers in packed mode 2014-08-14 12:49:00 +04:00
nightwing
6682c18ab3 allow using uiWorker on ie9 where Worker is undefined 2014-08-14 12:41:57 +04:00
Zef Hemel
d6c51fe898 Fix Docker highlighter again 2014-08-14 09:42:32 +02:00
Zef Hemel
5ba99b5fd4 Updated Dockerfile highlighter
Now uses constants rather than variables (which in many highlighters don't appear any differently).
2014-08-14 09:36:57 +02:00
Harutyun Amirjanyan
97d39e2912 Merge pull request #2095 from ajaxorg/revert-2076-no-auto-scroll
Revert "Disable automatic scroll into view"
2014-08-13 23:11:14 +04:00
Harutyun Amirjanyan
217635fe67 Merge pull request #2094 from ajaxorg/ruby-behaviors
Enabled C-style behaviors for Ruby
2014-08-13 22:57:22 +04:00
Harutyun Amirjanyan
1dc42fd46e Revert "Disable automatic scroll into view" 2014-08-13 22:53:35 +04:00
Zef Hemel
1f14f3fc32 Enabled C-style behaviors for Ruby which are pretty much accurate. 2014-08-13 20:44:51 +02:00
Harutyun Amirjanyan
706b7815e3 Merge pull request #2089 from dfelder/master
Some more highlight rules for latex mode
2014-08-13 00:47:59 +04:00
Daniel Felder
ed320af6f4 fix code folding in equation mode 2014-08-11 12:21:20 +00:00
Daniel Felder
b01fe5de13 cleanup 2014-08-11 11:59:42 +00:00
Daniel Felder
917c4da39d cleanup 2014-08-11 11:57:29 +00:00
Daniel Felder
b8c111b832 add folding for paragraph 2014-08-11 11:54:15 +00:00
Daniel Felder
c3411631a1 highlight input command 2014-08-11 11:51:38 +00:00
Daniel Felder
e227811a21 highlight input command 2014-08-11 11:46:27 +00:00
Harutyun Amirjanyan
fe9b95f9e2 Merge pull request #2090 from adamjcook/gcode
Adding G-code (ISO 6983) language mode.
2014-08-11 15:41:43 +04:00
Daniel Felder
f79a7a7b0b exit equation mode on empty lines 2014-08-11 11:40:16 +00:00
Daniel Felder
2f56fb208c allow comments in equation, default token in equation 2014-08-11 11:03:43 +00:00
Daniel Felder
114166a0ce fix code folding 2014-08-11 11:02:43 +00:00
Daniel Felder
69dcab3479 Merge https://github.com/ajaxorg/ace 2014-08-11 09:20:25 +00:00
Daniel Felder
9fb80fb72c simplifications and different highlight for labels etc. 2014-08-11 09:13:50 +00:00
Daniel Felder
b4dc4b7694 adjust tests 2014-08-11 09:12:46 +00:00
Adam Joseph Cook
37aa485137 Adding G-code (ISO 6983) language mode. 2014-08-10 22:24:52 -05:00
Lennart Kats
549df3c756 Merge pull request #2087 from ajaxorg/destroy
destroy session when destroying the editor
2014-08-10 11:26:07 +02:00
Lennart Kats
2fda9268f3 Merge pull request #2088 from ajaxorg/misc
Code cleanup + minor fixes
2014-08-10 11:24:41 +02:00
Lennart Kats
3752d20b13 Merge pull request #2086 from ajaxorg/textinput
IME issues
2014-08-10 10:56:28 +02:00
Lennart Kats
5f8c5e0fb6 Merge pull request #2077 from ajaxorg/mode/css
update csslint
2014-08-10 10:55:31 +02:00
Lennart Kats
5348712ce2 Merge pull request #2076 from ajaxorg/no-auto-scroll
Disable automatic scroll into view
2014-08-10 10:55:18 +02:00
Lennart Kats
4b5409c5cb Merge pull request #2070 from ajaxorg/static-highlight
accept mode options object in static highlight extension
2014-08-10 10:50:32 +02:00
Lennart Kats
b714925ed8 Merge pull request #2063 from ajaxorg/fix/build
do not rename kr_theme to kr during the build
2014-08-10 10:49:50 +02:00
Daniel Felder
4115fd24b3 adjust tests 2014-08-10 01:40:09 +00:00
Daniel Felder
b5560a9cad adjust tests 2014-08-10 01:18:28 +00:00
Daniel Felder
d029129b28 lparen, rparen in block 2014-08-10 01:17:39 +00:00
Daniel Felder
b8f135a37d adjustments to latex mode 2014-08-10 00:29:39 +00:00
Daniel Felder
08bf3696e7 some more syntax highlighting for latex mode 2014-08-10 00:02:33 +00:00
nightwing
9b489c752b minor fixes 2014-08-09 22:32:07 +04:00
nightwing
10860343ab fix error when inserting text inside code 2014-08-09 22:32:07 +04:00
nightwing
1bd38560b4 code style 2014-08-09 22:32:07 +04:00
nightwing
383b798901 disable automatic scroll into view 2014-08-09 22:22:49 +04:00
nightwing
dc37f938c9 destroy session when destroying the editor 2014-08-09 18:48:43 +04:00
nightwing
920cd20327 improve ime style 2014-08-09 18:44:24 +04:00
nightwing
d493325973 make sure editor container never scrolls because of out of view textarea 2014-08-09 18:44:24 +04:00
Harutyun Amirjanyan
ffc547d2c3 Merge pull request #2079 from buildersbrewery/master
Updated LSL language
2014-08-08 22:28:26 +04:00
Harutyun Amirjanyan
e2ab837178 Merge pull request #2084 from jpallen/patch-1
Don't ignore contextmenu event in Firefox on Windows/Linux
2014-08-08 22:27:44 +04:00
James Allen
1109188a93 Don't ignore contextmenu event in Firefox on Windows/Linux 2014-08-08 18:28:41 +01:00
James Allen
146d832e19 Keep apparent scroll position fixed when changes are made offscreen 2014-08-06 13:59:11 +01:00
Zef Hemel
2859373983 Merge pull request #2075 from ajaxorg/highlighter-fixes
Highlighter fixes
2014-08-05 11:56:34 +02:00
nightwing
0842d27710 fix failing test
allow folding <p> tags
2014-08-04 18:27:45 +04:00
Builder's Brewery
89b5597948 Updated regex for entity.name.state.lsl 2014-08-04 15:52:57 +02:00
Builder's Brewery
36198a50f4 Updated LSL snippets 2014-08-04 15:38:52 +02:00
Builder's Brewery
91cc993bb2 Updated LSL keywords 2014-08-04 15:24:56 +02:00
nightwing
b69f7450aa fix autoclosing of p tag 2014-08-02 01:02:52 +04:00
nightwing
d120d050fb update test 2014-08-02 01:02:03 +04:00
nightwing
518166324b add constexpr keyword to c++ 2014-08-02 01:02:03 +04:00
nightwing
0eff326d62 tweak modes 2014-08-02 01:01:46 +04:00
nightwing
b990ad3f90 update csslint 2014-08-02 00:57:21 +04:00
nightwing
dfee740802 update command_manager test 2014-08-01 22:33:32 +04:00
nightwing
5744a3c6e3 fix bracket matching in vala mode 2014-08-01 22:12:45 +04:00
nightwing
ec6ffec1e4 Merge branch 'missing-redraw' 2014-08-01 22:07:25 +04:00
nightwing
72dcd28905 trigger redraw less often 2014-08-01 22:06:43 +04:00
nightwing
f4990b3a56 make sure text redraw isn't missed when bgTokenizer state changes 2014-08-01 21:52:25 +04:00
nightwing
d01cbaf698 Merge pull request #2041 from jpallen:master
Redraw lines and active line highlight when offscreen updates are made
2014-08-01 21:50:51 +04:00
Harutyun Amirjanyan
f80dea7915 Merge pull request #2066 from gatof81/master
ie11 fix getBoundingClientRect() error
2014-08-01 21:47:27 +04:00
nightwing
a00ce9cd72 update keyboard shortcuts extension 2014-08-01 20:47:49 +04:00
nightwing
b2612c6039 cleanup emmet extension 2014-08-01 20:19:17 +04:00
nightwing
c673190bf7 allow binding multiple commands to same key 2014-07-29 17:40:19 +04:00
Diego Ferreyra
b0babd3f25 ie11 fix getBoundingClientRect() error missing ";" 2014-07-28 14:37:15 -03:00
Diego Ferreyra
7ab9ce686f ie11 fix getBoundingClientRect() error 2014-07-28 14:34:39 -03:00
nightwing
80f42e13ff accept mode options object in static highlight extension 2014-07-28 19:10:41 +04:00
Diego Ferreyra
d40bec839d ie11 fix getBoundingClientRect() error 2014-07-24 17:14:40 -03:00
nightwing
23f678229a update config_test.js 2014-07-22 16:57:14 +04:00
nightwing
0eaae8712e do not rename kr_theme to kr during the build 2014-07-22 16:32:40 +04:00
Lennart Kats
f3d4147f6b Merge pull request #2023 from ajaxorg/edit_textarea
Do not hang the browser when ace.edit is called for textarea
2014-07-21 14:07:47 +02:00
Lennart Kats
c079a49ce7 Merge pull request #2053 from ajaxorg/fix/highlighting
Fix highlighting issues
2014-07-21 14:07:20 +02:00
Lennart Kats
b71a09d8d0 Merge pull request #2052 from ajaxorg/double_tap
fix Double tapping to select words doesn't work reliably
2014-07-21 14:06:19 +02:00
Harutyun Amirjanyan
c073766cc3 Merge pull request #2055 from Conaclos/working
Eiffel programming language mode
2014-07-21 04:37:47 +04:00
Conaclos
b651a424f1 Adding the new Eiffel example. 2014-07-20 19:12:34 +02:00
Conaclos
9284732a28 Remove eiffel example.
Current example is too large.
2014-07-20 19:12:03 +02:00
Conaclos
7e55724c52 Add comment mark in Eiffel mode. 2014-07-20 19:10:50 +02:00
Conaclos
fcd1dbb98d Adding Eiffel language mode.
- Adding Eiffel highlight rules and Eiffel mode
- Use Sudoku grid example of Eiffel Rosetta Code project as Eiffel example
2014-07-20 17:22:21 +02:00
nightwing
d53c91e41a update mode tests 2014-07-16 23:29:37 +04:00
nightwing
1ad5e66be0 fix #2051 highlighting php string in script tag 2014-07-16 23:27:20 +04:00
nightwing
a52b30317b add heredoc support for sh mode 2014-07-16 22:50:12 +04:00
nightwing
c1c08945b2 do not scroll cursor into view after quad click 2014-07-16 22:46:35 +04:00
nightwing
d3d2e0823b fix Double tapping to select words doesn't work reliably 2014-07-16 19:03:23 +04:00
Harutyun Amirjanyan
3b85ddfa05 Merge pull request #2048 from dfelder/patch-1
Update latex.js
2014-07-15 14:25:18 +04:00
Daniel Felder
0afb5f6da6 Update latex.js
Most of LaTeX is text. Word wrapping etc. should behave accordingly.
2014-07-15 01:38:50 +02:00
Harutyun Amirjanyan
e9faed1868 Merge pull request #2040 from devoncarew/devoncarew_show_hide_dart
add the show and hide keywords to the dart mode
2014-07-10 22:24:55 +04:00
James Allen
fd182ea76f Redraw lines and active line highlight when offscreen updates are made
When setUseWrapMode is true, if some text is inserted into a line which is
above the cursor and offscreen, then the renderer did not previously redraw the
lines or active line highlight. However, if this insert causes the line to wrap
onto another line then everything is shifted down by one visual line, leaving
the onscreen lines in an out of date state. With this commit, the onscreen
lines and active line highlight are now redrawn when this happens.
2014-07-10 12:56:11 +01:00
Devon Carew
a885aea2f0 add the show and hide keywords to the dart mode 2014-07-09 16:22:24 -07:00
Harutyun Amirjanyan
4b286a5c0d Merge pull request #2036 from jjatria/praat
Praat syntax highlighting rules
2014-07-09 21:02:18 +04:00
nightwing
a3bb907f46 v1.1.5 2014-07-09 18:32:00 +04:00
baboso
5ebcf9298b Merge branch 'master' of git://github.com/ajaxorg/ace into praat 2014-07-08 15:22:40 -04:00
baboso
4904f74dbd Minor changes to Praat syntax files 2014-07-08 15:18:57 -04:00
Harutyun Amirjanyan
d3ddd74fe7 Merge pull request #2029 from devoncarew/devoncarew_gitignore
Devoncarew gitignore
2014-07-07 19:30:04 +04:00
Devon Carew
cc03e77327 review comments 2014-07-07 08:17:25 -07:00
Fabian Jakobs
779912d517 Merge pull request #2027 from ajaxorg/autocomplete
Tweak autocomplete
2014-07-07 15:08:28 +02:00
Devon Carew
e6f01878d7 add snippets; fix the kitchensink demo 2014-07-04 11:35:07 -07:00
Devon Carew
bf72097811 add a gitignore mode 2014-07-04 11:25:53 -07:00
Ruben Daniels
c3bb709318 Merge pull request #2022 from ajaxorg/performance
do not use setInnerHTML since it isn't faster on new browsers
2014-07-03 13:53:19 +02:00
nightwing
8ed2799620 do not close the popup if there are matching completions 2014-07-03 00:12:27 +04:00
nightwing
f8be5072ac allow using name instead of caption 2014-07-02 23:56:24 +04:00
nightwing
f9b3655c94 fix autocomplete popup click regression 2014-07-02 23:38:11 +04:00
nightwing
ad54d2c46c disabled validateDelta since it breaks autocompletion popup 2014-07-02 22:04:32 +04:00
nightwing
1f7582b5a6 Merge remote-tracking branch 'remotes/origin/master' into v-1.2
Conflicts:
	lib/ace/anchor.js
	lib/ace/keyboard/vim/maps/operators.js
2014-07-02 21:58:13 +04:00
nightwing
109923873a do not hang the browser when edit is called for textarea 2014-07-02 10:58:21 +04:00
Harutyun Amirjanyan
7fbfbc4c16 Merge pull request #2025 from devoncarew/master
add the export keyword to dart
2014-07-02 07:43:30 +04:00
Devon Carew
2ce7ed0f44 add the export keyword to dart 2014-07-01 16:15:45 -07:00
nightwing
ccfb820418 add test for whitespace extension 2014-07-01 01:32:24 +04:00
nightwing
b5eda22bfc update changelog 2014-07-01 01:21:09 +04:00
nightwing
299d174dc7 do not use setInnerHTML since it isn't faster on new browsers 2014-06-29 09:58:48 +04:00
Harutyun Amirjanyan
416f5582e8 Merge pull request #2021 from devoncarew/master
remove the invalid rule from the go syntax file
2014-06-29 09:48:51 +04:00
Devon Carew
f8b7dce3e0 remove the invalid rule from the go syntax file 2014-06-28 22:21:52 -07:00
Harutyun Amirjanyan
63f43da96a Merge pull request #2012 from hartman/dragDelay
Match platform specifics for dragDelay of text
2014-06-27 20:07:43 +04:00
Derk-Jan Hartman
2dcc4a3f04 Match platform specifics for dragDelay of text
On Mac we keep it at 150ms. On other platforms it either
does not exist or at most it's very small.

This fixes issue #1879
2014-06-27 14:20:09 +02:00
nightwing
0450a1a539 remove unneeded setOption call 2014-06-25 19:01:06 +04:00
Lennart Kats
fdbd11d3df Merge pull request #2014 from ajaxorg/build
Use architect-build for building ace
2014-06-23 12:21:04 +02:00
Harutyun Amirjanyan
14f5095c92 Merge pull request #2005 from ajaxorg/overridable-mergeables
Make mergeable commands (for undo history) overridable.
2014-06-23 00:31:18 +04:00
Zef Hemel
1dd41ea75d Make mergeable commands (for undo history) overridable. 2014-06-23 00:12:20 +04:00
nightwing
ce070285a4 Merge remote-tracking branch 'remotes/origin/keybinding' 2014-06-22 23:49:13 +04:00
nightwing
3ebc2828e6 add textarea keybinding (probably fixes #36) 2014-06-22 23:44:59 +04:00
nightwing
6aaede1a2e keep mac line movement keybindings (still overridden by jumptomatching) 2014-06-22 23:33:45 +04:00
Harutyun Amirjanyan
8c86ff6fab Merge pull request #2013 from rmsmith/master
mode/applescript : set the `$id` to the correct value
2014-06-21 22:51:55 +04:00
rmsmith
739e86cde7 mode/applescript : set the $id to the correct value
This brings the new applescript mode into alignment with the other modes
per #1778
2014-06-21 19:15:52 +03:00
nightwing
6714359998 tweak 2014-06-21 01:48:07 +04:00
nightwing
e5b2eed5c5 add architect build to package.json 2014-06-20 20:55:21 +04:00
nightwing
e52884761d keep demo/kitchein-sink folders location in the build 2014-06-20 20:55:21 +04:00
nightwing
b42108a2c9 remove unnecessary use of async 2014-06-20 20:55:12 +04:00
nightwing
d63863ac0c use architect-build for building ace 2014-06-20 02:27:50 +04:00
nightwing
fcb3331d69 remove special build version for bookmarklet 2014-06-20 02:26:10 +04:00
Adam Jimenez
08bfa14dd2 jumptomatching/ selecttomatching mac shortcut
fixes #2007
2014-06-19 23:06:52 +01:00
Harutyun Amirjanyan
ffe22ce2be Merge pull request #2009 from themgt/master
adding package.json start script
2014-06-18 11:05:47 +04:00
Harutyun Amirjanyan
bdd54043b5 Merge pull request #2004 from tomalec/html-import-issue
Use current document to process <script> tags (fixes ajaxorg/ace#2003)
2014-06-18 11:05:26 +04:00
Paul
9a4bb06bb7 adding package.json start script 2014-06-16 14:08:34 -04:00
Tomek Wytrebowicz
3ce44130d4 comment the need of ownerDocument ajaxorg/ace#2003 2014-06-16 13:48:18 +02:00
Harutyun Amirjanyan
8db9dc255a Merge pull request #1994 from hitode909/fix-is-gecko
useragent.isGecko is false on Firefox 29
2014-06-16 15:05:39 +04:00
Ruben Daniels
5496351529 Merge pull request #1985 from ajaxorg/focus
fix issue with scrolling into view on focus
2014-06-16 12:34:23 +02:00
Ruben Daniels
f25b14a328 Merge pull request #1982 from ajaxorg/misc
Sync with cloud9 version
2014-06-16 12:34:04 +02:00
Tomek Wytrebowicz
b8c21d4c6f Use current document to process <script> tags (fixes ajaxorg/ace#2003) 2014-06-13 01:58:05 +02:00
Harutyun Amirjanyan
08b88485c8 Merge pull request #1996 from adamjimenez/jump-to-matching-tag
Jump To Matching Tag
2014-06-10 21:23:20 +04:00
Adam Jimenez
e92b709eb2 fix jumping to brackets in strings 2014-06-09 21:30:19 +01:00
nightwing
c5031db61c fix tests 2014-06-09 23:44:27 +04:00
Adam Jimenez
d7c7cb1b4d add html tag support to jumpToMatching 2014-06-09 17:09:31 +01:00
Adam Jimenez
76adcc51a0 Revert "Jump To Matching Tag"
This reverts commit 9a4a387de6.
2014-06-09 14:12:10 +01:00
nightwing
efcbe1c010 add todo reminder 2014-06-07 15:26:27 +04:00
nightwing
511faeeaae Merge remote-tracking branch 'remotes/pull/1995' 2014-06-07 15:20:47 +04:00
nightwing
19ec94a815 Merge branch 'pull/1995' 2014-06-07 15:18:23 +04:00
nightwing
636cc6a96f do not change mouse over selection if dragging isn't enabled 2014-06-07 15:17:27 +04:00
Adam Jimenez
c0343a2cba use setCursorStyle instead of modifying classes 2014-06-06 13:50:29 +01:00
Adam Jimenez
111ec1899f fix tag flicker
fix tag highlight flicker when selecting
2014-06-06 13:32:16 +01:00
Adam Jimenez
da5cc2e28d matching tag fixes
remove global editor ref, add listener
2014-06-06 10:53:55 +01:00
Adam Jimenez
9a4a387de6 Jump To Matching Tag
Alt-P: Jump to Matching Tag
Alt-Shift-P: Select to Matching Tag
fixes #1158
2014-06-06 10:32:18 +01:00
Harutyun Amirjanyan
ce3076b4e5 Merge pull request #1991 from adamjimenez/patch-28
fix "{$foo->bar}"."{$foo->bar($a)}"."{$foo->bar(&$a, $b)}";
2014-06-06 12:34:41 +04:00
baboso
84a8201dfd Removed useless rule 2014-06-05 18:44:20 -04:00
Adam Jimenez
07fb7738db Highlight matching HTML tag
fixes #1308
2014-06-05 19:56:46 +01:00
hitode909
84abfa5ff8 window.controllers was renamed to window.Controllers in Firefox 29
useragent.isGecko was false on Firefox 29
2014-06-05 14:10:25 +09:00
baboso
17c75da27b Added sendpraat and unquoted string directives, simplified demo example, added some other missing functions/directives 2014-06-05 00:45:20 -04:00
baboso
a519520ae7 Removed useless rules, added support for do() syntax 2014-06-04 18:03:55 -04:00
Adam Jimenez
617cd3202a fix "{$this->foo->bar('foobar')}" 2014-06-04 10:39:50 +01:00
José Joaquín Atria
d57e010ca3 Added single number font size changing commands (praat) 2014-06-03 15:10:31 -04:00
José Joaquín Atria
08afa03cb9 Fixed operators and introduced broken lines 2014-06-03 14:32:55 -04:00
Adam Jimenez
32e3ad5966 fix "{$foo['bar']}" 2014-06-03 00:41:47 +01:00
Adam Jimenez
bf9eec6b23 fix "{$foo->bar}"."{$foo->bar($a)}"."{$foo->bar(&$a, $b)}"; 2014-06-02 23:26:59 +01:00
Ruben Daniels
c8483a7ae5 Merge pull request #1988 from ajaxorg/syntax/vala
add vala mode
2014-06-02 09:46:21 +02:00
baboso
df92a99e93 Praat syntax highlighter, first release 2014-06-01 18:27:03 -04:00
nightwing
a7cac9466d add vala mode 2014-06-01 22:54:30 +04:00
baboso
e4355adae7 Initial commit for praat highlighting: based on Perl 2014-05-31 19:51:41 -04:00
nightwing
1c2bc29424 fix selecting with ctrl-alt click 2014-05-28 01:25:18 +04:00
Harutyun Amirjanyan
df6001ca67 Merge pull request #1984 from ylian/master
AppleScript syntax highlighter
2014-05-26 14:23:21 +02:00
Yaogang Lian
066180b248 Fixed comment highlighting in AppleScript highlighter. 2014-05-23 08:05:56 -04:00
nightwing
66866121e9 fix issue with scrolling into view on focus 2014-05-23 14:13:23 +04:00
Zef Hemel
717be26d5d Further improvements to Clojure mode indent. 2014-05-23 09:06:48 +02:00
Yaogang Lian
77ec0af40a AppleScript syntax highlighter 2014-05-22 22:35:04 -04:00
nightwing
d0acc15e67 fix #1973 custom array of autocompleters never used 2014-05-23 00:16:31 +04:00
Harutyun Amirjanyan
bec92e678d Merge pull request #1976 from AMiniLegend/master
Added three new functions for selections:
2014-05-22 21:56:14 +02:00
AMiniLegend
b7eacfb153 Merge pull request #1 from AMiniLegend/selection-features
Selection features updated
2014-05-21 16:42:26 -04:00
AMiniLegend
03eee835df Updated ExpandToLine, JoinLines, and InvertSelection based on feedback. 2014-05-21 16:39:47 -04:00
nightwing
7e2dda1e18 allow tokenizer states with only defaultToken 2014-05-21 20:38:07 +04:00
nightwing
72a509e542 improve ruby outdent 2014-05-21 20:32:34 +04:00
nightwing
4872441bc6 fix vim cc 2014-05-21 20:32:08 +04:00
nightwing
ba93cc6dfa fix tab detection 2014-05-21 20:30:47 +04:00
nightwing
88aed65212 fix home key on folded line 2014-05-21 20:26:13 +04:00
nightwing
9ab12a6ed3 fix ctrl-shift-mousedown 2014-05-21 20:07:07 +04:00
nightwing
4e2d7a41f5 update jshint 2014-05-21 18:16:08 +04:00
Harutyun Amirjanyan
2cb84b3bc3 Merge pull request #1922 from brn/fix-ie7-error
IE7 cause error when accessing the HTMLElement.style.font property.
2014-05-21 14:25:26 +02:00
brn
2d39aca4a7 fix code style. 2014-05-21 09:27:10 +09:00
Lennart Kats
446e497da8 Merge pull request #1965 from ajaxorg/misc
various small fixes
2014-05-20 17:31:50 +02:00
nightwing
473b6958bc Revert "assign key to splitline command on windows (#1956)"
This reverts commit 4329b6a729.
2014-05-20 19:29:20 +04:00
AMiniLegend
470efff782 Changed the name of the "joinSelection" function to "joinlines".
Also changed it's behavior so that when there is no selection, it will join with the next line.
2014-05-18 20:36:06 -04:00
AMiniLegend
8f8410f01b Added three new functions for selections:
expandtoline    - selects the entire line for each line in a selection (newline included)
joinSelection   - joins selected lines into a single space-delimited line
invertSelection - inverts all selected lines
2014-05-18 13:51:46 -04:00
nightwing
5dc93cd627 add r.js demo 2014-05-18 17:12:55 +04:00
Harutyun Amirjanyan
6e82b0a3c3 Merge pull request #1975 from adamjimenez/patch-26
typo
2014-05-17 21:54:05 +02:00
Adam Jimenez
307b947e96 typo 2014-05-17 20:30:56 +01:00
nightwing
739baebbd0 setDefaultHandler was breaking vim mode 2014-05-17 22:09:05 +04:00
Harutyun Amirjanyan
87a4e2666b Merge pull request #1954 from earth2marsh/patch-1
Isolate float regex matching to 1 char for + and -
2014-05-17 12:09:04 +02:00
Marsh Gardiner
05f0b3c7f2 Isolate float regex matching to 1 char for + and -
This prevents highlighting on the "2" in "auth: oauth2". (signing CLA and sending in now)

Now passes tests and also covers .37 case.

… and updated to cover the ++ or -- case.
2014-05-16 15:39:24 -07:00
nightwing
9910c9db32 cleanup 2014-05-17 01:46:45 +04:00
Harutyun Amirjanyan
cf35fbdeec Merge pull request #1971 from devoncarew/devoncarew_rethrow
add the rethrow keyword to the syntax highlighter
2014-05-16 22:06:49 +02:00
Devon Carew
56e2819cdd add the rethrow keyword to the syntax highlighter 2014-05-16 13:02:45 -07:00
Harutyun Amirjanyan
f1e819cd80 Merge pull request #1968 from timothyrenner/master
Fixed matlab syntax highlighting bug.
2014-05-16 21:32:36 +02:00
Timothy Renner
12c6cf1f41 Fixed matlab syntax highlighting bug. 2014-05-15 16:22:53 -07:00
nightwing
4329b6a729 assign key to splitline command on windows (#1956) 2014-05-15 19:59:01 +04:00
nightwing
b6a5e222cd fix Ace on ChromeOS uses wrong keys for Home/End (#1950) 2014-05-15 19:58:03 +04:00
nightwing
ea07bfb4e7 fix highlighting of unicode variables in julia 2014-05-15 14:10:29 +04:00
Adam Jimenez
39fd0e6c42 fix mouse not always changing on first line 2014-05-14 15:08:40 +01:00
Adam Jimenez
8dffbbe200 selection hover improvements
fix issue with wrapped lines and compute only when necessary.
2014-05-14 14:56:57 +01:00
nightwing
2327d155b4 fix autocomplete regression from 80187560 2014-05-14 16:38:50 +04:00
Adam Jimenez
23680b4f7e change mouse cursor when over selection
moved to mouse handler. don't change when dragging or selecting.
2014-05-14 10:30:31 +01:00
Adam Jimenez
449226dac9 Revert "change mouse cursor when over a selection"
This reverts commit b5a1aaebba.
2014-05-14 10:27:37 +01:00
Harutyun Amirjanyan
03d3a725ef Merge pull request #1943 from umop/linking-option
Linking class for firing eclipse-style identifier ctrl + click link events.
2014-05-13 18:54:45 +02:00
Harutyun Amirjanyan
199bc4701d Merge pull request #1960 from ajaxorg/improved-clojure
Slightly improved auto indent for Clojure
2014-05-13 18:44:55 +02:00
Zef Hemel
effcb04a9a Slightly improved auto indent for Clojure 2014-05-13 16:01:23 +02:00
Adam Jimenez
b5a1aaebba change mouse cursor when over a selection
Change mouse cursor to a pointer when hovered over a selection
2014-05-12 17:35:41 +01:00
Harutyun Amirjanyan
8416cfb42a Merge pull request #1955 from wcandillon/patch-2
Fix misspelled enableLiveAutocompletion option
2014-05-12 16:46:27 +02:00
Lennart Kats
669deb54b2 Merge pull request #1952 from ajaxorg/misc
Sync with cloud9 + better demos
2014-05-11 19:13:07 +02:00
William Candillon
d5566938ba Fix misspelled enableLiveAutocompletion option 2014-05-11 14:29:02 +02:00
Eric Arnold
19f1d99a98 Review fixes: Changed mousedown to click and changed event naming to use camelCase. Removed unnecessary exports 2014-05-09 16:30:35 -07:00
Eric Arnold
0582153019 Turned linking.js into extension. Merged linking_handler into linking.js. 2014-05-09 16:24:02 -07:00
Harutyun Amirjanyan
4e9e553436 Merge pull request #1951 from yoloseem/master
Fix broken GitHub ribbon image src.
2014-05-09 15:37:38 +02:00
Hyunjun Kim
e8ee926097 Fix broken GitHub ribbon image src. 2014-05-09 15:13:17 +09:00
nightwing
ace5fd14a2 update index.html 2014-05-05 19:51:38 +04:00
nightwing
efea2a755b cleanup demo html pages 2014-05-05 19:51:37 +04:00
nightwing
ee4bed3db1 fix editor scrolling down automatically when resizing and scrolled past end 2014-05-05 19:51:28 +04:00
Harutyun Amirjanyan
6779345049 Merge pull request #1924 from unional/liveAutocomplete
Improve auto complete
2014-05-05 17:40:47 +02:00
Homa Wong
8018756051 Update regex and condition check according to suggestion 2014-05-04 09:45:12 -07:00
nightwing
feb500c86e fix inserting snippets when multiple selections are present 2014-05-04 17:29:56 +04:00
Lennart Kats
12ef5f9f6b Merge pull request #1940 from ajaxorg/misc
Fix several small issues
2014-05-01 19:17:36 +02:00
Harutyun Amirjanyan
deb4013a13 Merge pull request #1941 from devoncarew/master
add dartdoc indentation handling to the dart mode
2014-04-30 12:38:41 +02:00
Eric Arnold
ca170b5d3d Made and implemented Linking class for tracking eclipse-style identifier ctrl + clicks. Off by default. 2014-04-29 17:15:25 -07:00
Devon Carew
393dc852dc add dartdoc indentation handling to the dart mode 2014-04-29 13:58:24 -07:00
nightwing
0155c67b1f fix more vim issues (fixes #1930) 2014-04-30 00:27:24 +04:00
Harutyun Amirjanyan
225985634e Merge pull request #1938 from hartman/ie7_comma
Fix a trailing comma breaking IE7/8
2014-04-29 20:44:58 +02:00
Harutyun Amirjanyan
1ef6700be7 Merge pull request #1937 from Houfeng/master
put textor on the ace site
2014-04-29 11:49:45 +02:00
Derk-Jan Hartman
b146bbaea0 Fix a trailing comma breaking IE7 2014-04-29 11:36:23 +02:00
Houfeng
68ede367a6 add textor
add textor
2014-04-29 17:29:18 +08:00
Harutyun Amirjanyan
4949e18f00 Merge pull request #1925 from ggoodman/patch-1
Prevent repeat firing of render callback
2014-04-27 14:43:32 +02:00
ggoodman
6db76f92cc Prevent repeat firing of render callback
If either the theme or mode are already cached, callback will be fired more than once.

This is because `config.loadModule` appears to fire its callback synchronously. This means that in the event that the theme is already cached, `waiting` will first be incremented then decremented in the same pass, resulting in `done` being called a first time.

Control will then flow to the `return` statement where waiting is still `0` and so the `callback` will fire a 2nd time.

* Changes *

Instead of changing the semantics of `config.loadModule`, I increment waiting at creation so that it will never fire until at least line #130 (`return` statement).
2014-04-24 15:44:51 -04:00
Homa Wong
54a1060a81 Rename enableLiveAutocomplete to enableLiveAutocompletion to match enableBasicAutocompletion 2014-04-24 00:58:59 -07:00
Homa Wong
163a6a9243 Update text_completer and util to support unicode characters autocomplete.
Update language_tools to support pass in completers at enableLiveAutocomplete and enableBasicAutocomplete so user can further customize the completion behavior.
2014-04-24 00:58:51 -07:00
Homa Wong
9391e0b9bb Fix live auto completion.
Didn't set completers when enabling it.
2014-04-24 00:58:07 -07:00
brn
31c2978ca7 fix IE7 style.font property access.
add ie check.
2014-04-22 11:55:47 +09:00
brn
2566dd74a5 fix style.font property. 2014-04-22 10:56:52 +09:00
Harutyun Amirjanyan
0e3abd3f41 Merge pull request #1920 from cptroot/patch-1
Fix not recognizing `\\` as an escape sequence.
2014-04-21 12:21:37 +02:00
Harutyun Amirjanyan
b2af4389fa Merge pull request #1918 from rmsmith/master
dart_highlight_rules : add `assert` to `keywordControl`
2014-04-21 12:19:46 +02:00
cptroot
5b697f68d1 Fix not recognizing \\ as an escape sequence. 2014-04-20 17:39:48 -07:00
rmsmith
25e70c4430 update tokens_dart.json regarding assert statement 2014-04-20 19:46:28 +03:00
rmsmith
06db67de16 dart_highlight_rules : add assert to keywordControl
"assert" is a reserved word and a statement in the Dart language (as
opposed to a built-in function call) as described in the spec:

https://www.dartlang.org/docs/spec/latest/dart-language-specification.html#h.cb5i0axenow6
2014-04-20 19:22:03 +03:00
nightwing
3631e7f720 Merge branch pull/1915 Fixed hotkeys for changing font size 2014-04-18 14:23:11 +04:00
nightwing
c5689d94ca also enable numpad keys for increaseFontSize 2014-04-18 14:22:23 +04:00
jimmyboh
156ebc0a72 Fixed hotkeys for changing font size (Fixes #1914)
Hotkey for `increaseFontSize` does not work, `+` key should actually be
`=`.
2014-04-17 13:09:13 -04:00
Harutyun Amirjanyan
3b76a2ebef Merge pull request #1911 from nraynaud/patch-1
fix documentation for getCursor
2014-04-16 12:06:35 +02:00
Nicolas Raynaud
ee052c06d3 fix documentation for getCursor 2014-04-15 22:13:59 +02:00
nightwing
d05213cd92 fix #1834 vim mode issues 2014-04-13 20:52:23 +04:00
nightwing
9e182a1de7 tweak js and sh modes 2014-04-13 20:48:38 +04:00
nightwing
14721de01f add findall command 2014-04-13 20:47:06 +04:00
nightwing
0a9dc16f22 revert Makefile.dryice.js broken by 56631344 2014-04-13 20:44:15 +04:00
Harutyun Amirjanyan
993df16bdb Merge pull request #1907 from ajaxorg/dockerfile
Dockerfile
2014-04-13 18:21:00 +02:00
Fabian Jakobs
75bac806b0 always use https 2014-04-13 16:20:02 +00:00
Fabian Jakobs
1bd5b56793 minor fix 2014-04-13 16:16:30 +00:00
Fabian Jakobs
7767efe0f6 fix dockerfile mode 2014-04-13 16:08:45 +00:00
Fabian Jakobs
4d24573946 use wildcard protocol for external resources.
Otherwise we can't serve it over https
2014-04-13 16:07:34 +00:00
nightwing
4d868a046a use correct indent size when expanding snippet at the start of the line 2014-04-11 22:24:59 +04:00
nightwing
f5f2d823b9 Merge remote-tracking branch 'remotes/origin/vim' 2014-04-11 20:47:52 +04:00
nightwing
052559778d Merge branch pull/1851 2014-04-11 20:47:40 +04:00
nightwing
1f33265ba7 fix typo in indenter regexp 2014-04-11 20:46:39 +04:00
Alexander Lourier
187b90dd84 Handle language-switching keystroke gracefully 2014-04-11 18:55:09 +04:00
nightwing
56631344ba Merge remote-tracking branch 'remotes/pull/1874'
Conflicts:
	Makefile.dryice.js
2014-04-11 18:46:54 +04:00
nightwing
cff2aeaeb7 cleanup 2014-04-11 18:43:01 +04:00
nightwing
96145bcd8a fix vim keys don't work in read-only files 2014-04-10 18:17:48 +04:00
Lennart Kats
2a2efb133b Merge pull request #1904 from ajaxorg/small-bugs
fix several small bugs
2014-04-10 13:51:19 +02:00
nightwing
5aba18ea06 fix ie focus issues 2014-04-10 15:11:11 +04:00
nightwing
3296dd7471 allow keys not handled by vim to be handled by default ace keybinding 2014-04-10 14:46:19 +04:00
nightwing
fdf832784f fix #1893 fix highlighting for PHP CJK variable name. 2014-04-10 14:33:37 +04:00
nightwing
d1decf7e13 update tests 2014-04-10 14:03:31 +04:00
nightwing
65003e259a do not highlight <scripts> tag same as <script> 2014-04-10 13:57:21 +04:00
nightwing
91e6abf099 fix #1890 Second cursor after double clicking in IE8 2014-04-10 13:38:06 +04:00
Harutyun Amirjanyan
831f6c9336 Merge pull request #1902 from pjhuck/master
fix for anchor & insertRight behavior
2014-04-10 14:35:45 +05:00
Paul Huck
ce6c0aa84b fix for anchor & insertRight behavior
Do not move the anchor down when it is at column 0 and lines are
inserted at that
2014-04-09 09:46:53 -07:00
nightwing
55886771a9 Merge branch 'tweak-autocomplete' 2014-04-09 18:37:45 +04:00
Fabian Jakobs
23055a2fcf add dockerfile mode 2014-04-09 09:08:14 -04:00
nightwing
4599dc6834 cleanup 2014-04-09 14:25:26 +04:00
nightwing
c3dd9ff510 remove bogus string.regexp highlight rules from java and c# 2014-04-08 22:37:16 +04:00
Harutyun Amirjanyan
32cbb0ffa1 Merge pull request #1900 from danyaPostfactum/miscfixes
Miscellaneous fixes
2014-04-08 23:11:03 +05:00
DanyaPostfactum
f39f16e12f Fix cut/copy in Firefox (setData() may return nothing). 2014-04-08 14:23:47 +10:00
DanyaPostfactum
df68336921 Fix bug of tooltipFollowsMouse option with folded text. 2014-04-08 14:23:38 +10:00
DanyaPostfactum
0d6eb5b718 Fix jump to last item in completer popup. 2014-04-08 14:23:16 +10:00
William Candillon
b67caa1163 Disable Tab command binding for autocomplete (incompatible with live autocomplete) 2014-04-05 23:31:20 +02:00
William Candillon
a05b84f4df Bug fix 2014-04-05 22:38:23 +02:00
William Candillon
a7297de55f Update autocomplete to handle custom identifier regexprsw 2014-04-05 20:16:02 +02:00
Harutyun Amirjanyan
7fc47d77a3 Merge pull request #1894 from 28msec/master
XQuery & JSONiq mode refactoring
2014-04-05 18:10:38 +05:00
William Candillon
e87dfcce7a Minor JSONiq mode refactoring 2014-04-04 21:01:54 +04:00
William Candillon
6c38e136c1 Update xqlint version 2014-04-04 21:01:51 +04:00
William Candillon
cbd66efbf3 Bug fix 2014-04-04 21:01:50 +04:00
William Candillon
5b93b1d51a Update xqlint version 2014-04-04 21:01:50 +04:00
William Candillon
2119154050 Update to xqlint master branch. 2014-04-04 21:01:48 +04:00
William Candillon
1c2e388c24 Update xqlint build
Conflicts:
	tool/update_deps.js
2014-04-04 21:01:47 +04:00
William Candillon
d6d3f0b384 Update Query worker. 2014-04-04 21:01:21 +04:00
William Candillon
431facf08b Update code snippets
Conflicts:
	lib/ace/snippets/jsoniq.snippets
	lib/ace/snippets/xquery.snippets
2014-04-04 21:00:50 +04:00
William Candillon
3c13b4bf33 Bug fixes 2014-04-04 20:59:29 +04:00
William Candillon
ea532e41bf Update xqlint with code completion 2014-04-04 20:59:28 +04:00
William Candillon
4e23984ddb Bug fixes 2014-04-04 20:59:28 +04:00
William Candillon
f37899463f Update JSONiq code snippets 2014-04-04 20:59:28 +04:00
William Candillon
34f34bb591 Bug fixes 2014-04-04 20:59:28 +04:00
William Candillon
8645e67f42 Update XQLint version 2014-04-04 20:59:27 +04:00
William Candillon
f6faeb3547 Add JSONiq & XQuery code snippets 2014-04-04 20:59:22 +04:00
nightwing
a188ac7fa6 fix regression for autocomplete with empty prefix 2014-04-02 00:03:53 +04:00
Lennart Kats
3f6e2aded9 Merge pull request #1846 from ajaxorg/old_browser_compatibility
Fix old browser compatibility issues
2014-04-01 12:49:47 +02:00
Lennart Kats
bb10f4661d Merge pull request #1885 from ajaxorg/update_deps
update saxparser and jshint
2014-04-01 12:11:43 +02:00
nightwing
9c53d96c12 fix #1847 tab doesn't work for invalid css when emmet is enabled 2014-03-31 20:34:34 +04:00
nightwing
5ef28b7e11 fix #1888 csslint worker gives error for empty file 2014-03-31 20:33:35 +04:00
nightwing
dcd96294f7 update csslint 2014-03-31 20:23:45 +04:00
nightwing
bb55802197 update require.js 2014-03-31 20:02:13 +04:00
nightwing
ec97ad7904 Merge remote-tracking branch 'remotes/origin/master' into v-1.2
Conflicts:
	build
	lib/ace/document.js
2014-03-31 00:49:41 +04:00
Harutyun Amirjanyan
90a21c012c Merge pull request #1883 from wcandillon/patch-1
Fix Range resolution
2014-03-30 19:58:13 +05:00
nightwing
8d45a2d209 update saxparser and jshint 2014-03-30 18:53:52 +04:00
William Candillon
02cf485055 Fix Range resolution 2014-03-30 00:55:22 +01:00
Harutyun Amirjanyan
207adf8eba Merge pull request #1734 from danyaPostfactum/refactor/htmlmode
HTML mode modification, completer auto activation feature
2014-03-26 17:46:13 +04:00
Aaron O'Mullan
9062f4fe40 Remove unused mode/xml_util.js 2014-03-23 20:10:44 -07:00
nightwing
362a69228b fix typo 2014-03-23 18:56:39 +04:00
nightwing
fbc5460320 Merge branch 'fix-markdown-highlighting' 2014-03-23 17:36:38 +04:00
Garen Torikian
a4921fe7ce Fix GFM blocks within lists 2014-03-23 17:35:00 +04:00
nightwing
a573fa3dec Merge branch 'beautify' 2014-03-23 17:31:29 +04:00
nightwing
ef3262143a reorganize beautifier addon 2014-03-23 17:30:39 +04:00
Adam Jimenez
180fa0c4cb Beautify
Beautify based on Ace tokenizer
2014-03-23 15:22:56 +04:00
nightwing
d76e3e29c6 Merge remote-tracking branch 'remotes/pull/1866' 2014-03-23 15:20:15 +04:00
nightwing
f00f2bfc40 Merge remote-tracking branch 'remotes/origin/fix-special-keys' 2014-03-23 15:19:42 +04:00
nightwing
79f619364a clenup 2014-03-23 15:19:24 +04:00
Zef Hemel
372b5409fa Reordered keys 2014-03-22 17:51:02 +01:00
Zef Hemel
00305167a2 Make they Ctrl/Alt/Command-= and - key combos work (on Chrome). 2014-03-22 17:46:26 +01:00
nightwing
26f96c0ea2 Merge remote-tracking branch 'remotes/origin/autocomplete-async-fix'
Conflicts:
	lib/ace/autocomplete.js
2014-03-21 15:36:08 +04:00
nightwing
8e5bdc512c Merge remote-tracking branch 'remotes/pull/1789'
Conflicts:
	lib/ace/autocomplete.js
2014-03-21 15:35:04 +04:00
Harutyun Amirjanyan
91bc4b82d7 Merge pull request #1824 from buildersbrewery/master
updated LSL syntax and made LSL snippets work
2014-03-21 15:00:59 +04:00
Lennart Kats
65822b59fe Merge pull request #1865 from ajaxorg/autocomplete-noselect
Add autoSelect option to auto completion
2014-03-20 15:59:46 +01:00
Zef Hemel
750e53fab2 Now with space after the if 2014-03-20 15:31:02 +01:00
Zef Hemel
31a32f2659 Fixes asynchronous autocompleter prefix updating
Before it could happen (if an async autocompleter returned late) that
the prefix used in the autocomplete was out of date. This fixes that.
2014-03-20 15:27:51 +01:00
Builders Brewery
d03c0957b4 fix character escapes 2014-03-19 17:03:03 +01:00
Builders Brewery
f4613206be revert to old string regex 2014-03-19 16:39:00 +01:00
Harutyun Amirjanyan
408b9c527b Merge pull request #1868 from adamjimenez/patch-24
missing bitwise xor function
2014-03-19 15:53:54 +04:00
Adam Jimenez
de51e72a3c missing bitwise xor function
Fixes error:
```
[object Object] has no method 'Node_Expr_BitwiseXor' 
```

Which results from using xor e.g:
```
error_reporting(E_ALL ^ E_NOTICE);

also reported to phpjs project:
https://github.com/niklasvh/php.js/pull/48
2014-03-18 16:01:33 +00:00
Derk-Jan Hartman
46da3132a2 Make sure the CORS blobworker loads absolute URLs
The only situation where this is really needed, is if the workerURL is
protocol relative, since we only end up in this situation if workerurl
is on a different server to begin with.
2014-03-17 23:10:24 +01:00
Zef Hemel
21ee784ca1 Add autoSelect option to auto completion
By setting this to `false` no completion will be selected by default and
pressing `Return` will simply insert a new line, rather than the first
match.
2014-03-17 11:38:16 +01:00
Zef Hemel
0bc7f518ad Merge pull request #1858 from robru/invisible_granularity
Increase granularity of invisible character classes.
2014-03-16 15:35:19 +01:00
DanyaPostfactum
a0bf93679d Fix <CR><LF> handing in highlight_rules_test.js 2014-03-16 00:33:26 +10:00
DanyaPostfactum
1f72461ada Modify xml highlight rules (add "xml" suffix to tokens) 2014-03-16 00:33:09 +10:00
Robert Bruce Park
5705c067fe This should just about fix that. 2014-03-14 22:40:00 -07:00
Robert Bruce Park
6594a3fe55 Fix more CI failures. 2014-03-14 22:32:31 -07:00
Robert Bruce Park
a4b27cbc3a Resolve some CI failures. 2014-03-14 22:26:05 -07:00
Robert Bruce Park
dc87483936 Increase granularity of invisible character classes. 2014-03-14 22:14:45 -07:00
Harutyun Amirjanyan
b04c07b448 Merge pull request #1848 from LivelyKernel/markdown-comment-fix
markdown mode comment fix
2014-03-13 19:48:08 +04:00
Harutyun Amirjanyan
8b950c1121 Merge pull request #1849 from LivelyKernel/emacs-fixes-2014-03-12
Emacs fixes 2014 03 12
2014-03-13 19:46:08 +04:00
nightwing
8cdb16659d fix #1843 Double click to select word does not work for Qt QWebView 2014-03-13 19:42:05 +04:00
Weihang Fan
59c392042a Fixed auto-indent for switch statements. 2014-03-13 19:10:19 +08:00
Weihang Fan
88829fbee7 Add auto-indent in CoffeeScript for if, for, while, and loop statements. 2014-03-13 12:23:21 +08:00
Robert Krahn
12343e0e6f isearch: fixing isearch onpase 2014-03-12 06:38:39 -07:00
Robert Krahn
c8b63ee977 isearch: recenterTopBottom 2014-03-12 06:38:37 -07:00
Robert Krahn
58404df349 isearch: now supports yanking, and killing text from edit buffer 2014-03-12 06:38:32 -07:00
Robert Krahn
3b7569542f fixing emacs key handler when key code == -1 (this can happen with the
change introduced in #5e2c5f4)
2014-03-12 06:38:30 -07:00
Robert Krahn
08d2ebb5b2 occur: fix emacs line start 2014-03-12 06:38:22 -07:00
Robert Krahn
6f8035f710 markdown mode comment fix 2014-03-12 05:55:54 -07:00
nightwing
498af4aab8 better fix for Array.slice on ie8 2014-03-12 12:48:00 +04:00
nightwing
5689573170 fix tests 2014-03-12 03:41:04 +04:00
nightwing
c72617b033 fix sticky selection if editor loaded into iframe 2014-03-12 03:34:52 +04:00
nightwing
6e14e92912 fix #1751 sticky selection on in IE11 2014-03-12 03:24:14 +04:00
nightwing
09d6741a02 fix clipboard on old webkit versions 2014-03-12 02:42:47 +04:00
nightwing
051128c16f restore ie8 compatibility 2014-03-12 01:12:34 +04:00
nightwing
6c235fee7d release 1.1.3 2014-03-08 17:33:18 +04:00
Lennart Kats
86e7a49666 Merge pull request #1828 from ajaxorg/c9
Update Ace and fix several small issues
2014-03-06 15:46:22 +01:00
nightwing
3166b3fb90 fix #1836 html worker logs a lot of unable to load 2014-03-03 15:24:39 +04:00
nightwing
96184bda23 fix zed icon 2014-02-26 23:45:33 +04:00
Harutyun Amirjanyan
0431f2dafb Merge pull request #1830 from yury/patch-1
Indent after `module` keyword
2014-02-26 23:39:23 +04:00
nightwing
c1011ca875 fix worker build 2014-02-26 17:29:32 +04:00
Yury Korolev
d8c05b5138 Indent after module keyword 2014-02-24 22:12:21 -08:00
nightwing
a9117a4aee define('ace/ace') needs to be at the end of ace.js
fixes https://github.com/ajaxorg/ace-builds/issues/15
2014-02-23 17:21:02 +04:00
nightwing
07c7c86944 fix #1827 setScrollMargin Breaks Multiple Selection When Margin is Greater Than 0 2014-02-23 12:02:45 +04:00
Harutyun Amirjanyan
bfba4f1efd Merge pull request #1826 from devoncarew/master
remove yaml comment syntax highlighting - it's too aggressive
2014-02-22 23:00:56 +04:00
devoncarew@google.com
56a00f3fa0 remove yaml comment syntax highlighting - it's too aggressive 2014-02-22 09:54:37 -08:00
nightwing
306e918920 fix #1825 editor created with showGutter=false cannot later show gutters 2014-02-21 22:38:42 +04:00
nightwing
45311cda45 fix #1808 show different different indicators for LF and CRLF 2014-02-21 22:30:47 +04:00
Harutyun Amirjanyan
08454b7ecb Merge pull request #1815 from jbrazeau/patch-1
Patch proposal for IE11 compatibility issue
2014-02-21 22:28:12 +04:00
nightwing
3694a02532 do not copy "ace/ace" when setting as global 2014-02-21 22:08:35 +04:00
nightwing
9c80485d91 allow setting editor session to null 2014-02-21 22:08:35 +04:00
nightwing
5783bae058 add event.getModifierString to convert hash into readable string 2014-02-21 22:08:35 +04:00
nightwing
42a368ed02 add selection.moveTo 2014-02-21 22:08:35 +04:00
nightwing
4a80bd7b3d fix cstyle behavior in multicursor mode 2014-02-21 22:08:35 +04:00
nightwing
6e9c9417fc cleanup 2014-02-21 22:08:35 +04:00
nightwing
f352165725 move text measuring into separate module 2014-02-21 22:08:35 +04:00
nightwing
f4d1dc7c13 create wrap data lazily 2014-02-21 22:08:34 +04:00
nightwing
316bb55f17 fix inserting long text 2014-02-21 22:08:34 +04:00
Builder's Brewery
32191f128b working on invalid escape chars 2014-02-20 08:56:39 +01:00
Builder's Brewery
2be1a5a3d3 trying to fix regex for invalid escape chars 2014-02-20 08:47:18 +01:00
Harutyun Amirjanyan
89c6609e97 Merge pull request #1823 from trinketapp/master
add missing backslash
2014-02-19 22:41:39 +04:00
Builder's Brewery
102de76b68 changed regex order 2014-02-18 17:33:52 +01:00
Builder's Brewery
b9d16078f7 fix lsl string - part two 2014-02-18 17:27:05 +01:00
Builder's Brewery
4e4d8a553b fix lsl string - part one 2014-02-18 17:22:47 +01:00
Builder's Brewery
a2cc97b34b fix lsl test 2014-02-18 16:24:35 +01:00
Builders Brewery
2b77b9ec8b updated LSL syntax 2014-02-18 16:04:54 +01:00
Ben Wheeler
f531569824 add missing backslash
escape the backslash in the fenced code block regexp
2014-02-18 09:36:54 -05:00
Harutyun Amirjanyan
e5edb59d00 Merge pull request #1820 from Cirru/master
fix dollar; add comma syntax
2014-02-18 13:25:20 +04:00
Harutyun Amirjanyan
a87b9e4dbc Merge pull request #1822 from trinketapp/master
Allow arbitrary language names in gfm fenced blocks
2014-02-18 13:24:40 +04:00
Benjamin Wheeler
e672469923 Updated markdown fenced blocks to allow more liberal language names 2014-02-17 22:36:44 -05:00
Benjamin Wheeler
7439993b1a Allowed . in markdown language blocks
Updated markdown highlighter to allow stuff like ```python.run
2014-02-17 16:33:05 -05:00
jiyinyiyong
080596e6a1 fix dollar; add comma syntax 2014-02-16 23:49:54 +08:00
nightwing
27b6d6dcd3 apply arguments max length also includes actual call stack 2014-02-15 00:20:10 +04:00
nightwing
6b60bcbbd6 continue refactoring 2014-02-14 23:52:59 +04:00
nightwing
46f3d77068 simplify apply_delta.js 2014-02-14 22:33:30 +04:00
nightwing
c8d1df203e restore single line delta optimization in anchor.js 2014-02-14 22:32:51 +04:00
nightwing
4299db01bd remove delta.range 2014-02-14 22:32:31 +04:00
nightwing
b5af2c898c Merge remote-tracking branch 'remotes/origin/master'
Conflicts:
	lib/ace/document.js
	lib/ace/editor.js
	lib/ace/undomanager.js
2014-02-14 18:23:03 +04:00
Harutyun Amirjanyan
e4cfb47ae1 Merge pull request #1782 from pnevels/master
add Gherkin highlighting support
2014-02-14 15:15:13 +04:00
nightwing
927bf936da #1429 remove bidi-override 2014-02-14 12:13:42 +04:00
nightwing
3bed18be1d restore other demo files 2014-02-12 23:32:02 +04:00
Thaddee Tyl
a6ece4cbfa rename AsciiDoc demo. 2014-02-12 23:24:42 +04:00
nightwing
5e3c3b660b revert AsciiDoc demo deletion 2014-02-12 23:13:48 +04:00
Harutyun Amirjanyan
7981e0ca6c Merge pull request #1813 from 1ec5/patch-1
Fixed passing non-Ranges into Document methods
2014-02-12 20:21:32 +04:00
jbrazeau
8ba0cd91be Fix : for UIE11, regexp must also consider Trident string 2014-02-12 15:31:43 +01:00
Jean-Francois Brazeau
7a8a799c26 Update useragent.js
Patch proposal for https://github.com/ajaxorg/ace/issues/1814 (IE11 compatibility issue)
2014-02-12 15:05:53 +01:00
Minh Nguyễn
3eefd3365a Fixed passing non-Ranges into Document methods
Fixed regression from b23265ad: ! takes precedence over instanceof.
2014-02-12 03:48:42 -08:00
Lennart Kats
ffc9cec9ef Merge pull request #1809 from ajaxorg/c9
Add smarty mode and fix several small bugs
2014-02-12 11:21:41 +01:00
nightwing
68096ff38d run extension files automatically 2014-02-11 20:40:31 +04:00
nightwing
9db70f0351 add block comment for sql 2014-02-11 20:22:08 +04:00
nightwing
471e9c6d40 fix typo 2014-02-09 17:34:25 +04:00
Aaron O'Mullan
297c05831e Fix minor typo in enableLiveAutocomplete 2014-02-08 02:18:52 +01:00
Aaron O'Mullan
889e9248f8 Cancel out unwanted editor's css for autocomplete dialog 2014-02-08 01:47:01 +01:00
Aaron O'Mullan
e06a14ab92 Revert "Remove autocomplete shadow from ambiance theme"
This reverts commit 0e256ce80d.
2014-02-08 01:38:24 +01:00
Aaron O'Mullan
f7be399bd2 Add "enableLiveAutocomplete" option
This makes live autocomplete optional and is not tied to
“enableBasicAutocomplete” anymore

This also renames “onChangeAutocomplete” to “doLiveAutocomplete”
2014-02-08 01:01:30 +01:00
Aaron O'Mullan
cbbbf1c539 Fix bug and clarify async autocomplete result gathering
@SamyPesse’s “left: total - (i + 1)” was flawed because it only would
work if all completers were async
2014-02-08 00:50:50 +01:00
Aaron O'Mullan
c52278a64e Cleanup autocomplete.js
Consistently use .bind(this) instead of that = this
2014-02-08 00:32:16 +01:00
Harutyun Amirjanyan
aab8b7f7a8 Merge pull request #1805 from creationix/master
Two tiny fixes I made while working on Tedit
2014-02-07 21:14:52 +01:00
Tim Caswell
a8ba1e06d9 Fix syntax error in kuroir.css
This bad line was breaking my css parser.

Workaround in my code: 079741c477/src/applytheme.js (L66-L67)
2014-02-07 13:08:35 -06:00
Tim Caswell
0f9bcfbc7d Fix out-of-range error when parsing certain files.
An example file that breaks on this is b2f8bf1e74/kitchen-sink/demo.js (L1000)
2014-02-07 13:05:43 -06:00
nightwing
7cff8e7cff Merge pull request 1542 'Add worker to the html mode' 2014-02-07 01:54:55 +04:00
nightwing
8ccb0e6fda disable worker for non html modes, make doctype message info 2014-02-07 01:52:26 +04:00
nightwing
eac48f5190 fix broken python snippet 2014-02-06 00:19:41 +04:00
nightwing
4795261b94 fix infinite loop when inserting snippet with self referencing tabstop
fixes #1802
2014-02-06 00:13:52 +04:00
nightwing
42f274a42c update smarty mode 2014-02-05 23:59:17 +04:00
Aaron O'Mullan
0e256ce80d Remove autocomplete shadow from ambiance theme
This fixes a regression caused by the newly introduced feature allowing
autocomplete theming
2014-02-05 20:26:40 +01:00
Aaron O'Mullan
e76a389e88 Clarify typing condition in live autocomplete 2014-02-05 20:10:20 +01:00
nightwing
99f49fdc49 add smarty mode 2014-02-05 22:06:15 +04:00
nightwing
31e1a2d1f3 improve php variable regexp 2014-02-05 21:24:03 +04:00
nightwing
0eb2b74a66 fix #1795 PHP variables that begin with an underscore are not highlighted 2014-02-04 02:41:21 +04:00
Zef Hemel
2cf93d936e Update autocomplete.js
Unsubscribe blurListener callback instead of onChange listener in auto complete.
2014-02-03 17:19:56 +01:00
Samy Pessé
c36fac3a94 Improve autocomplete results display and filtering
Autocomplete: Display unique results when it's a snippet

Fix autocomplete popup display

Remove listener for afterExec when enableBasicAutocompletion change

Fix autocomplete detach when no results are ready from the first completer

Remove condition from detach
2014-02-03 12:32:14 +01:00
Samy Pessé
09b9348852 Improve autocomplete support for async completers 2014-02-03 12:31:21 +01:00
nightwing
1e46543b05 fix error marker column 2014-02-01 04:18:46 +04:00
nightwing
9cbcfb35d3 use _signal where possible 2014-02-01 04:11:56 +04:00
nightwing
750d38af6f Merge commit 'b54d268a72' 2014-02-01 04:06:57 +04:00
nightwing
b54d268a72 fix typo 2014-02-01 04:06:31 +04:00
Samy Pessé
110eb26f96 Use event afterExec instead of change for live autocomplete 2014-01-31 15:18:45 +01:00
Ruben Daniels
7dc4bddae9 Merge pull request #1793 from ajaxorg/misc
misc bugfix
2014-01-31 03:13:15 -08:00
nightwing
2246da0021 fix infinite loop when using ace with polymer 2014-01-30 22:55:40 +04:00
nightwing
3dc20b0824 update highlighter tests 2014-01-30 22:25:52 +04:00
nightwing
af16d9ca54 fix #1757 Merged undos don't decrement dirtyCounter correctly 2014-01-30 22:01:02 +04:00
nightwing
07ef6a115c fix #1776 c_cpp mode syntax highlighting 2014-01-30 21:49:24 +04:00
nightwing
abb1e4703b add showLineNumbers fixes #1755, #892 2014-01-30 21:44:36 +04:00
nightwing
f6983739e9 fix bug with scrollMargin and maxLines 2014-01-30 21:44:36 +04:00
nightwing
36c6fcc9d4 fix scrolling error widget into view 2014-01-30 21:44:36 +04:00
nightwing
f3af20aa15 fix #1775 Horizontal scrollbar is not resizing when typing 2014-01-30 21:44:17 +04:00
nightwing
eafe6a7997 fix gutter is too short when hor scrollbar is visible 2014-01-30 21:43:53 +04:00
nightwing
048d9589c7 remove slow cursor[style*] css rule 2014-01-30 21:24:04 +04:00
nightwing
5e2c5f4e0a fix two way mapping of keys 2014-01-30 21:24:04 +04:00
nightwing
21bd4a15fa fix diagonal resizing 2014-01-30 21:24:04 +04:00
nightwing
4ed6afc829 convert autoScrollEditorIntoView into preoper option 2014-01-30 21:24:04 +04:00
nightwing
cd12b25ea6 cleanup 2014-01-30 21:23:48 +04:00
nightwing
9253fffb9f allow modifying pasted text from paste event 2014-01-30 20:54:41 +04:00
nightwing
54ad13847a fix ejs highlighting 2014-01-30 20:51:30 +04:00
nightwing
7a92c174eb fix findall 2014-01-30 20:50:56 +04:00
nightwing
0c03302a6d allow textinput to work with hosts not supporting textcomposition 2014-01-30 20:50:37 +04:00
nightwing
75e41746e6 alllow functions as argument to addKeyboardHandler 2014-01-30 20:49:38 +04:00
nightwing
baa0c28e69 remove color from ace_editor class 2014-01-30 20:48:37 +04:00
nightwing
ca41480c72 add scrollIntoView to all commands 2014-01-30 20:46:47 +04:00
Harutyun Amirjanyan
625173182d Merge pull request #1791 from willnorris/license
update license of more files from RStudio to BSD
2014-01-29 11:04:55 -08:00
Will Norris
b4418d2ffd update license of more files from RStudio to BSD
It appears these were simply missed in the original license change
(ajaxorg/ace#1622).  Discussion on that pull request confirms that these
should have been included.
2014-01-29 10:54:16 -08:00
Patrick Nevels
5223d19e3f added license to files 2014-01-28 21:45:28 -06:00
Patrick Nevels
7d3fdc00b0 replaced tokenizer with highlightrules 2014-01-28 21:27:26 -06:00
Harutyun Amirjanyan
00b3beae30 Merge pull request #1780 from Cirru/master
Add Cirru highlighting
2014-01-28 11:22:05 -08:00
Samy Pessé
df99195544 Set default theme for autocomplete popup 2014-01-28 15:49:53 +01:00
Samy Pessé
f9fcf49c66 Apply editor theme to autocomplete popup 2014-01-28 15:47:12 +01:00
Aaron O'Mullan
98dc63cce4 Close auto magic complete when prefix is empty
While removing text
2014-01-28 11:37:43 +01:00
jiyinyiyong
ee5ac2a0f2 add license block 2014-01-28 10:14:02 +08:00
Aaron O'Mullan
c4012ebd46 Don't autoInsert with auto magic completer
This caused completions to be inserted without ever being shown, if
they were the only completion for the prefix entered.
2014-01-28 02:14:23 +01:00
Aaron O'Mullan
af1aab40f5 Enable auto magic complete only when typing
We only want to auto magically complete when the user is typing text,
not when text is pasted or being removed.
2014-01-28 01:43:12 +01:00
Aaron O'Mullan
afd9c99da2 Don't attach/detach autocomplete on change if already attached/detached 2014-01-28 01:24:08 +01:00
Aaron O'Mullan
07c99e0541 Fix: skip auto magic completion when pasting
This can some times cause confusing behavior.

A paste is any text insertion of more than one character at a time …
2014-01-28 00:52:55 +01:00
Abram Adams
33cf210180 Fixed regex to match beginning of tag name 2014-01-27 10:21:45 -08:00
nightwing
af09dc7f05 Merge remote-tracking branch 'remotes/origin/master' 2014-01-27 21:40:01 +04:00
nightwing
a206535596 cleanup user list 2014-01-27 21:38:54 +04:00
nightwing
300dc660e9 fix merge conflict 2014-01-27 21:22:49 +04:00
Aaron O'Mullan
2bf673c41d Add auto magic complete (complete while typing) 2014-01-27 18:21:42 +01:00
nightwing
f2da76daaf Merge remote-tracking branch 'remotes/pull/1758' 2014-01-27 21:15:16 +04:00
Harutyun Amirjanyan
58caaad6a5 Merge pull request #1784 from rgallion/Fix_Issue_1783
Fixes #1783
2014-01-26 10:48:21 -08:00
Roger Gallion
e751389d38 Fixes #1783 2014-01-26 09:01:30 -06:00
Patrick Nevels
68f46ff7ef add tags to the demo 2014-01-25 20:06:40 -06:00
Patrick Nevels
d44c8080bf make demo more expressive 2014-01-25 20:03:49 -06:00
Patrick Nevels
2428de10ed add Gherkin highlighting 2014-01-25 19:32:40 -06:00
Patrick Nevels
c5f58503fe added Gherkin highlighting support 2014-01-25 19:19:57 -06:00
DanyaPostfactum
3d71b01022 Add worker to the html mode
This adds syntax checking (not validating). Based on HTML5 @aredridel parser
2014-01-26 02:40:26 +10:00
Abram Adams
142fc79c97 Fixed token name and added to self-closing tags list 2014-01-23 09:43:39 -08:00
jiyinyiyong
cd506ca7ad add Cirru syntax highlighting 2014-01-23 16:40:38 +08:00
Abram Adams
73fb35e63c Added cfml behaviour with smart auto closing tags
This adds the behaviours for ColdFusion Markup Language (CFML) back in
with the addition of exceptions for auto-closing tags.
2014-01-22 15:38:52 -08:00
Harutyun Amirjanyan
811d63039d Merge pull request #1778 from rmsmith/master
Add missing `$id` to those Modes that are missing it.
2014-01-22 13:57:07 -08:00
rmsmith
6e1aefff56 Add missing $id to those Modes that are missing it.
I've found that the set of modes in this PR did not set their `$id`.
The side-effect of that is that when one of these modes is the current
mode of an EditSession, and one calls `session.getOption('mode')` the
returned value was incorrect.  It goes up the prototype chain so you'd
get something like 'ace/mode/text' or 'ace/mode/html' in most cases.

This fixes that so that if, for example, the mode is set to
'ace/mode/django', the value returned by the option will be
'ace/mode/django'
2014-01-21 09:41:15 +02:00
Harutyun Amirjanyan
5abba7d32c Merge pull request #1772 from hartman/lua_self
Lua uses self, not this
2014-01-17 10:43:27 -08:00
Harutyun Amirjanyan
dc95d03bd6 Merge pull request #1738 from danyaPostfactum/refactor/datauri
Optimize css images (reduce filesize)
2014-01-17 10:37:33 -08:00
Derk-Jan Hartman
93c14b1b31 Update testcase for lua self 2014-01-17 11:56:15 +01:00
Derk-Jan Hartman
ab1b62fbb7 Lua uses self, not this
There is no 'this' in lua. There is however 'self' a predefined parameter when using colon syntax for calling a function.

http://www.lua.org/pil/16.html
2014-01-17 11:16:50 +01:00
nightwing
ff88d5aa8d Merge pull request #1761 from hartman:cors_worker
Use shim blob with importScripts to use CORS for Worker
2014-01-16 20:36:56 +04:00
nightwing
9e71e4a003 cleanup 2014-01-16 19:35:48 +04:00
nightwing
c8fca3053c Merge remote-tracking branch 'remotes/origin/master'
Conflicts:
	lib/ace/line_widgets.js
2014-01-16 00:14:34 +04:00
nightwing
8d57d8765f Merge pull request #1745 aldendaniels:master into v-1.2
Refactor document delta handling
2014-01-16 00:11:00 +04:00
DanyaPostfactum
90f3f32fb1 Optimize css images (reduce filesize) 2014-01-16 00:29:51 +10:00
Eric Arnold
66f615ba94 Merge branch 'master' of https://github.com/ajaxorg/ace into stationary_tooltip_option 2014-01-14 17:11:27 -08:00
Eric Arnold
be0d187a60 Review changes 2014-01-14 17:10:44 -08:00
Harutyun Amirjanyan
ac99690429 Merge pull request #1760 from adamjimenez/patch-21
shift+mousewheel to horiz scroll
2014-01-14 07:26:00 -08:00
Harutyun Amirjanyan
00f044d0cf Merge pull request #1764 from rgallion/Issue_1762_Add_Vim_unit_tests
Add Vim keybinding unit test [Issue 1762]
2014-01-14 06:45:20 -08:00
Harutyun Amirjanyan
177e0af9eb Merge pull request #1707 from danyaPostfactum/refactor/tooltip
Refactor tooltip to separate class.
2014-01-14 06:38:28 -08:00
Roger Gallion
0ab6574521 Add Vim keybinding unit test [Issue 1762] 2014-01-13 08:27:14 -06:00
Derk-Jan Hartman
f779c2e8c5 Use shim blob with importScripts to use CORS for Worker 2014-01-13 11:09:26 +01:00
Adam Jimenez
fb233da532 shift+mousewheel to horiz scroll
Converts shift+mousewheel to horizontal scroll.
This is in accordance with Chrome which supports this shortcut on webpages and textareas.
2014-01-13 09:46:53 +00:00
aldendaniels
7f1bc7af2f Break out Anchor.onChange helper functions
This should be faster since we don't have to re-initialize the helper
functions each time Anchor.onChange is fired.
2014-01-11 15:48:38 -06:00
aldendaniels
6b280bf6bb Code review fixes (mostly formatting)
- Fix unconventional '{' formatting
- Reformat `UndoManager` changes
- Revert change from `insertInLine` to `insert` in text.js
2014-01-11 15:23:20 -06:00
aldendaniels
35a27fd1ba Treat deltas with empty ranges as NOOPs 2014-01-11 14:45:08 -06:00
aldendaniels
ddd695ee3f Store single-line deltas as .text instead of .lines in undo history
Stores single-line delta content as .text instead of .lines in undo
history. This is done without modifying the original delta object in
case the caller still retains a handle to the original.
2014-01-11 14:43:47 -06:00
aldendaniels
f59708a5ba Add a doNotValidate param to applyDelta
Set it to true in insertInLine/removeInLine.

Also sped up indent/dedent by using insertInLine and removeInLine.
2014-01-11 12:00:10 -06:00
aldendaniels
ef0e8da522 Fix / complete validateDelta
This uncovered the fact that until now delta.range had not always been a
Range object. This inconsistency has been resolved by my changes in
mirror.js.
2014-01-11 11:20:34 -06:00
aldendaniels
08edcdfc98 Stop doing a line-by-line splicing in applyDelta
Also brings back the functionality where large deltas are split into
smaller deltas so that .splice.apply() calls will work.
2014-01-10 22:49:17 -06:00
Eric Arnold
e9434fc1df Added option for annotation tooltip to be floating (follows mouse, current functionality) or fixed (stationary per annotation). 2014-01-09 13:29:51 -08:00
nightwing
d226ea067b update site 2014-01-10 00:11:00 +04:00
aldendaniels
3a048cdf61 Bring back insertInLine
Avoids an extra $split call.
2014-01-08 22:51:39 -06:00
aldendaniels
f2a2e4e1a8 Rename the 'delete' delta action to 'remove'
Matches previous naming convention.
2014-01-08 22:18:05 -06:00
aldendaniels
6fe381f633 Rename insertText back to insert 2014-01-08 22:00:11 -06:00
aldendaniels
91df7cd663 Revert "Stop using splice.appy() in ace"
This reverts commit 8624ab8dcb.
2014-01-08 21:39:30 -06:00
nightwing
ce329df39b update the site 2014-01-08 03:14:35 +04:00
nightwing
142761d86f fix regression in { pairing 2014-01-07 23:03:32 +04:00
nightwing
30a4d12eb7 fix ascii filter in builder 2014-01-07 23:01:10 +04:00
Zef Hemel
b79cb61861 Update LogiQL highlighting: add alias_all storage type 2014-01-07 17:54:33 +01:00
Harutyun Amirjanyan
5b3e1ca29d Merge pull request #1750 from rmsmith/master
dart_highlight_rules : add 'with' to `keywordDeclaration`
2014-01-04 05:50:00 -08:00
aldendaniels
8624ab8dcb Stop using splice.appy() in ace
Since .apply() can't handle more than 65535 parameters, splice.apply()
is brittle. It's also hard to read. This replaces splice.apply() calls
throughout ace code with lang.spliceIntoArray().
2014-01-04 01:59:30 -06:00
aldendaniels
b503e65e03 Break on applyDelta into its own module
This makes it possible to break out helper functions without exposing
them to the rest of the document class. Also, long term, we may want to
have a stand-alone test suite for applyDelta, so it makes sense in its
own file.

All other changes involve syntax corrections (some syntax issues were
mine, others pre-existed) to make the documentation compilation work.
2014-01-03 14:59:22 -06:00
rmsmith
c40bf3b172 dart_highlight_rules : add 'with' to keywordDeclaration
'with' clauses are used for mixin application in Dart, e.g:

`class ToggleButton extends Button with Toggleable { ... }`
2014-01-03 21:04:23 +02:00
Ruben Daniels
5733f006a8 Merge pull request #1740 from ajaxorg/c9
sync with cloud9
2014-01-02 11:01:42 -08:00
Harutyun Amirjanyan
7bcf64401f Merge pull request #1747 from hartman/themelistfix
Repair label of themes in themelist.
2014-01-02 04:23:39 -08:00
Derk-Jan Hartman
8f109ea371 Repair label of themes in themelist.
This was broken after c563f15e93
2014-01-02 13:04:24 +01:00
aldendaniels
612478e39f Speed up single-line deltas
2e6f12725b slowed down the application of
deltas that only affect a single line. The slow-down, though trivial for
a single line, is significant for operations than separately modify
thousands of rows (such as indenting a large document).

This commit speeds up single-line deltas by avoiding unnecessary calls
to splitLine() and joinLineWithNext().
2014-01-01 14:45:54 -06:00
aldendaniels
810e196cc6 Use console.warn for deprecated methods
console.warn makes better sense than console.log and matches similar
warnings in ace (see gutter.js for example).
2014-01-01 12:06:19 -06:00
aldendaniels
026af74016 Fix render bugs
Both were introduced in 2e6f12725b.
2014-01-01 12:04:12 -06:00
aldendaniels
27768230c8 Maintain public API and update coding convention
This seeks to keep the public API in-tact while improving method names
within ace by keeping the old methods as wrappers around the new
better-named methods.

For example, document.insert() now simply calls document.insertText()
and warns the caller via a console.log() that they are using a
deprecated method.

I've also updated the coding style of my changes (where I noticed
discrepancies) to match the rest of Ace.
2014-01-01 11:05:27 -06:00
aldendaniels
2e6f12725b #1744: Refactor document delta handling
Refactor delta handling code to:

- Combine the "insertText" and "insertLines" delta types into a single
"insert" delta type

- Combine the "removeText" and "removeLines" delta types into a single
"remove" delta type

- Make all document mutations in a single applyDelta function.

- Add basic delta validation (more needed . . . see TODOs)

- Rework anchor logic to handle new delta types (also simplified)

- Rename "insert()" to "insertText()" and "remove()" to "removeText()"

- Rename "insertLines()" to "insertFullLines()" and "removeLines()" to
"removeFullLines()"

See related issue for more information. All tests are passing and the
changes appear functional under preliminary testing, but careful review
and testing will be necessary.
2014-01-01 00:41:45 -06:00
nightwing
ccc7d6dda8 add more sites 2013-12-31 16:17:01 +04:00
Harutyun Amirjanyan
a9d194894e Merge pull request #1742 from hartman/commas
Remove trailing comma's, which break scripts in IE7
2013-12-31 04:16:32 -08:00
Derk-Jan Hartman
1240a04fff Remove trailing comma's, which break scripts in IE7 2013-12-31 10:12:34 +01:00
DanyaPostfactum
0b1630d6fa Refactor tooltip to separate class. 2013-12-30 20:13:00 +10:00
nightwing
425404ff29 fix #1737 reset padding only if previous theme had custom padding 2013-12-30 02:05:57 +04:00
nightwing
3cc3043951 update js highlighter test 2013-12-30 01:56:58 +04:00
nightwing
9a5bd3cd65 include error_marker addon in the build 2013-12-30 01:42:12 +04:00
Harutyun Amirjanyan
6e46195102 Merge pull request #1728 from desoi/master
Updated keywords and functions for PostgreSQL 9.3. Added sub-mode support for JavaScript and Json.
2013-12-29 13:37:10 -08:00
John DeSoi
48cd7f55dc Updated keywords and functions for PostgreSQL 9.3. Added sub-mode support for JavaScript and Json. 2013-12-29 14:16:38 -06:00
nightwing
edee507fd9 update site 2013-12-29 21:13:44 +04:00
nightwing
714e1a592c fix resize issues 2013-12-29 20:07:08 +04:00
nightwing
90b2a6cd77 fix multiselect mouse interaction issues 2013-12-29 20:05:23 +04:00
nightwing
37b3dc1efd tweak modes 2013-12-29 20:03:08 +04:00
nightwing
b6a4a34fd2 togglecomment should not scroll if part of the selection is visible 2013-12-29 20:02:14 +04:00
nightwing
5b151a3db4 fix scrolling speed on firefox ux 2013-12-29 19:59:16 +04:00
nightwing
3f7f325777 return removed folds from removeFolds 2013-12-29 19:57:49 +04:00
nightwing
6e254f25a1 fix wrap option getter 2013-12-29 19:57:00 +04:00
nightwing
4c4ab09870 add goToNextError command 2013-12-29 19:56:29 +04:00
Lennart Kats
c612dac355 Merge pull request #1723 from ajaxorg/misc
fix several small bugs
2013-12-25 07:11:00 -08:00
Lennart Kats
890fd39c92 Merge pull request #1725 from ajaxorg/double_tap
Double tap regression
2013-12-25 02:09:58 -08:00
Lennart Kats
eda5eaba39 Merge pull request #1715 from ajaxorg/velocity_snippets
Support loading snippets for mixed modes
2013-12-25 02:04:31 -08:00
Lennart Kats
191a79245f Merge pull request #1703 from ajaxorg/highlighting/mixed
Do not loose currentState if tokenizer uses combination of next and push
2013-12-25 02:03:04 -08:00
Harutyun Amirjanyan
92dba7d44c Merge pull request #1730 from danyaPostfactum/autoinsert
Add autoinsert feature to the completer.
2013-12-23 03:27:09 -08:00
DanyaPostfactum
ff42a13c4f Add autoinsert feature to the completer. 2013-12-23 02:52:25 +10:00
nightwing
b6a3a15232 add a test 2013-12-20 18:12:33 +04:00
nightwing
c01725184e remove setTimeout from startSelect
fixes #956: double tap regression
2013-12-20 17:18:34 +04:00
nightwing
15dd2082f6 cleanup 2013-12-20 15:14:35 +04:00
nightwing
3a864c6056 add support for inline mode in php worker 2013-12-17 00:04:21 +04:00
nightwing
10e2c3049c add options for theme and mode 2013-12-15 21:20:11 +04:00
nightwing
6285bf5d5a update cssLint and coffee 2013-12-15 21:18:13 +04:00
nightwing
b7ee15f5d9 fix bug with fixedWidth gutter + firstLineNumber 2013-12-15 02:50:48 +04:00
nightwing
133db3cfe0 fix #1711 Double click on foldWidgets region can paint whole gutter in red. 2013-12-14 23:52:01 +04:00
nightwing
45c4bdcb2e disable invalid class on ampersands
fixes #1655
2013-12-14 19:44:44 +04:00
nightwing
61591eee5d add tests 2013-12-14 19:41:44 +04:00
nightwing
869e1f86aa cleanup d mode 2013-12-14 19:37:24 +04:00
Harutyun Amirjanyan
a6c21c6761 Merge pull request #1694 from robik/d-lang-support
Improved D Language mode
2013-12-14 07:29:25 -08:00
Harutyun Amirjanyan
3b96539874 Merge pull request #1696 from danyaPostfactum/refactor/scrollbar
Refactor ScrollBarV and ScrollBarH classes
2013-12-14 06:25:48 -08:00
DanyaPostfactum
5affb58e40 Add forgotten css overflow:scroll to scrollbars 2013-12-13 16:45:20 +10:00
Harutyun Amirjanyan
710bf4dbe0 Merge pull request #1719 from nbreslow/master
Added support for Autodesk Maya MEL
2013-12-12 14:53:27 -08:00
Nicholas Breslow
cde625fde3 Added c-style behavior and fold mode / updated mode syntax.
As per Harutyun Amirjanyan's request I made the following two changes:
1) Added c-style behavior and fold mode.
2) Updated mode syntax for mel to current one used by Ace.
2013-12-12 16:47:41 -05:00
Nicholas Breslow
56604c1fa5 Updated project. 2013-12-10 14:03:53 -05:00
Nicholas Breslow
a6c6028f7e Changed mel.mel example file. 2013-12-10 14:03:23 -05:00
DanyaPostfactum
8ecc94a181 Rename ScrollBarV -> VScrollBar, ScrollBarH -> HScrollBar 2013-12-10 17:41:02 +10:00
nightwing
00df72ee0d allow inlining multiple text modules 2013-12-09 23:24:43 +04:00
Ryan Griffith
2b10c2071f Check for possible snippet expansion before attempting to proceed to the next tabstop. 2013-12-09 10:04:38 -05:00
Lennart Kats
24c207191c Merge pull request #1702 from ajaxorg/themes
Themes
2013-12-09 04:03:10 -08:00
Lennart Kats
be2b684b6f Merge pull request #1716 from ajaxorg/force_ltr
force editor text to be ltr
2013-12-09 04:00:23 -08:00
nightwing
5f0012f653 force editor text to be ltr
fixes #1429
2013-12-06 23:58:11 +04:00
nightwing
4307aba209 fix #1693 searchbox is broken when creating ace in pre tag 2013-12-06 23:08:51 +04:00
Lennart Kats
f5334ceaa2 Merge pull request #1701 from ajaxorg/static_highlighter
use css counter for line number in static_highlighter
2013-12-06 08:21:59 -08:00
Lennart Kats
91d581b12b Merge pull request #1705 from ajaxorg/autocomplete/hor_scroll
fix #1680 Autocomplete box doesn't work with horizontal scrolling
2013-12-06 07:57:38 -08:00
Lennart Kats
e7f412c992 Merge pull request #1688 from ajaxorg/highlighting/apache_conf
add apache_conf mode
2013-12-06 07:55:39 -08:00
Lennart Kats
40ea516801 Merge pull request #1700 from ajaxorg/newclient
sync with cloud9
2013-12-06 06:44:32 -08:00
nightwing
c2b097b825 add includeScopes for velocity mode 2013-12-05 23:57:18 +04:00
nightwing
a0ab8baa56 add id to all modes 2013-12-05 23:46:16 +04:00
Harutyun Amirjanyan
84bc9b25de Merge pull request #1712 from hannonhill/velocity-snippets
Add snippets for common Velocity directives
2013-12-05 08:19:04 -08:00
nightwing
6b1215bca8 move user-select:none to scroller fixes #1675 on linux 2013-12-05 20:13:37 +04:00
Ryan Griffith
69b144686a Added snippets for common Velocity directives. 2013-12-04 15:52:40 -05:00
nightwing
5ed4e3eded reset scroll position 2013-12-03 23:11:54 +04:00
nightwing
af7c370318 fix #1680 Autocomplete box doesn't work with horizontal scrolling 2013-12-02 23:36:27 +04:00
DanyaPostfactum
b58b38d74a Move setVisible() method to ScrollBar class 2013-12-02 21:09:14 +10:00
nightwing
6461d62f90 fix prolog mode and update tests 2013-11-30 18:44:55 +04:00
nightwing
d87ba89c49 do not loose currentState if tokenizer uses combination of next and push 2013-11-30 18:40:02 +04:00
nightwing
93d2b75b4f add demo for ejs 2013-11-30 00:57:56 +04:00
nightwing
c563f15e93 use ext/themelist.js in kitchen-sink demo 2013-11-29 23:53:28 +04:00
nightwing
4d88770435 fix bug in converter and add two new themes 2013-11-29 23:53:27 +04:00
nightwing
29e1838394 update build submodule 2013-11-28 01:10:23 +04:00
Harutyun Amirjanyan
8cfd45feab Merge pull request #1698 from LivelyKernel/ace-ajax-master
cstyle behaviour fix for entering braces
2013-11-27 12:43:35 -08:00
Robert Krahn
69b40db4f2 fix cstyle behaviour when inserting braces and doing a newline. Previous behaviour would not add a closing brace when no other opening brace was present 2013-11-25 18:11:15 -08:00
DanyaPostfactum
03edee8c30 Refactor ScrollBarV and ScrollBarH classes 2013-11-24 23:00:06 +10:00
nightwing
70bc7d7dc0 update tests 2013-11-24 16:47:32 +04:00
nightwing
e70f0773df Merge pr/1692 into master 2013-11-24 16:34:04 +04:00
nightwing
d870d81ea0 revert change to markup.list 2013-11-24 16:31:07 +04:00
nightwing
9b8e236483 do not modify dom from computeLayerConfig 2013-11-24 16:19:59 +04:00
nightwing
9a2ee70af8 allow starting and cancelling mouse capture from outside 2013-11-24 16:18:13 +04:00
nightwing
4cb1e7b849 misc fixes 2013-11-24 16:16:36 +04:00
nightwing
a910b8ee18 do not freeze browser when calling fold all second time 2013-11-24 16:15:52 +04:00
nightwing
9002950bf7 rename group to aceCommandGroup to not conflict with cloud9 2013-11-24 16:13:36 +04:00
nightwing
b88bf398b5 smoother resizing #1687 2013-11-24 16:11:51 +04:00
nightwing
1704cbdcc2 check for valid start state in tokenizer 2013-11-24 16:10:40 +04:00
nightwing
d03e5d1120 add selectOrFindNext commands and disable sublime ctrl-d like behavior of ctrl-arrow 2013-11-24 16:09:52 +04:00
Robik
76230003b6 Removed unused code; Added missing keywords; Added defaultToken 2013-11-24 11:25:11 +01:00
Benoit Schweblin
78ee0833ba Set defaultToken to markup.list for lists and string.blockquote for blockquotes 2013-11-23 22:53:11 +00:00
nightwing
0e9d413102 cleanup vbscrip mode 2013-11-22 22:03:02 +04:00
Robik
34ceb4e15e Improved D Language mode 2013-11-21 14:18:51 +01:00
nightwing
b42ce65a54 use css counter for static highlight gutter 2013-11-20 20:02:31 +04:00
nightwing
727c94c90a cleanup 2013-11-20 18:33:40 +04:00
Benoit Schweblin
a50c0a27b9 [Markdown highlighting] Fixed list inside blockquotes 2013-11-20 00:15:28 +00:00
Benoit Schweblin
c2fb30b313 [Markdown highlighting] Parse basic rules in blockquotes 2013-11-19 19:48:13 +00:00
Harutyun Amirjanyan
a7798c4497 Merge pull request #1686 from danyaPostfactum/object-create
Use Object.create for inheritance
2013-11-19 00:02:42 -08:00
nightwing
8b4c88d636 add apache_conf mode 2013-11-18 10:45:56 +04:00
DanyaPostfactum
9719c770d3 Use Object.create for inheritance 2013-11-17 17:58:21 +10:00
nightwing
4c3c132f2b add position rounding change missed from 753dbbe 2013-11-15 01:07:47 +04:00
Lennart Kats
f8e96328e4 Merge pull request #1683 from ajaxorg/static_highlight
fix static highlight bugs
2013-11-14 01:52:07 -08:00
nightwing
9e5dda2334 fix static highlight bugs
#1681 #1682
2013-11-13 22:35:29 +04:00
Lennart Kats
ed87f5326f Merge pull request #1678 from ajaxorg/line_widgets_pt1
Add support for line widgets
2013-11-13 10:10:24 -08:00
nightwing
fada97f807 semicolonify demo files; 2013-11-13 21:10:36 +04:00
nightwing
90e7cdd7f1 Merge branch 'markdown_tweaks' 2013-11-13 03:36:43 +04:00
nightwing
60cfe6f161 update wrapData when wrapMethod changes 2013-11-13 03:34:52 +04:00
nightwing
188252891a update test 2013-11-13 03:22:32 +04:00
nightwing
753dbbece5 do not round mouse position since lines can have fractional screen coordinates now 2013-11-13 03:04:56 +04:00
Sawyer Hollenshead
f18a57126d Specify type of string (strong, emphasis, blockquote) 2013-11-11 17:09:52 -05:00
Lennart Kats
07d82837b4 Merge pull request #1677 from ajaxorg/old_ff_copy
add user select:text to ace_text-input
2013-11-10 15:47:30 -08:00
Lennart Kats
1ab54b0b8f Merge pull request #1673 from ajaxorg/cloud9_update
Cloud9 update
2013-11-10 15:47:01 -08:00
nightwing
48a44aab5a cleanup kitchen-sink demo 2013-11-11 03:29:22 +04:00
nightwing
00fcd37829 allow widgets to have any height 2013-11-11 02:41:35 +04:00
nightwing
71ceca4601 fix cursor movement 2013-11-08 00:58:42 +04:00
nightwing
b17f8d533a fix typo 2013-11-08 00:58:42 +04:00
nightwing
31191072f3 add first version of line_widgets 2013-11-08 00:58:42 +04:00
nightwing
1ac4ea51e2 hack edit session 2013-11-08 00:56:04 +04:00
nightwing
a56c3b44b5 always add height to line wrapper nodes
(needed for line widgets)
2013-11-08 00:56:04 +04:00
nightwing
fab88c496c fix regression with cmd-up 2013-11-07 11:29:27 +04:00
nightwing
dfa2eaf5ac do not include empty lines in section fold 2013-11-06 11:49:39 +04:00
nightwing
07809b1fb9 add user select text to ace_text-input 2013-11-06 11:16:23 +04:00
nightwing
ea430330ba fix folding test 2013-11-06 11:05:32 +04:00
nightwing
00ebb80f87 c9search mode is weird :( 2013-11-06 00:31:40 +04:00
Lennart Kats
2476f43aa8 Merge pull request #1674 from ajaxorg/misc
fix two small bugs
2013-11-05 09:24:15 -08:00
nightwing
68c6c4e86c fix typo 2013-11-05 21:23:25 +04:00
nightwing
0fe340b3fb update c9searchresults test 2013-11-05 21:21:51 +04:00
nightwing
bfdd7239d1 fix #1671 Cannot use backspace in Android Chrome 2013-11-05 21:07:29 +04:00
nightwing
3ab631640b fix #1669 Everything until cursor position is selected in IE8 2013-11-05 21:01:01 +04:00
nightwing
8443991f13 miscelaneous fixes from c9 2013-11-05 20:54:38 +04:00
nightwing
f1973e4233 add virtualRenderer.$updateSizeAsync 2013-11-05 20:51:56 +04:00
nightwing
5607fc9de2 automatically pick range for align command 2013-11-05 20:47:30 +04:00
nightwing
5a26604657 add command.scrollIntoView 2013-11-05 20:44:27 +04:00
nightwing
d689636771 better folding commands 2013-11-05 20:43:30 +04:00
nightwing
150f0360d4 fix #1624 Rules added with embedRules can only use stringed regexes 2013-11-05 20:37:48 +04:00
Harutyun Amirjanyan
93a88fcb5e Merge pull request #1663 from saatchiCEO/patch-1
Fixed typo `forown`
2013-10-28 22:24:56 -07:00
saatchiCEO
4a0fc33c65 Fixed typo forown
for|forown -> for|own
2013-10-29 00:22:58 +03:00
Zef Hemel
e8bb1e38e7 Added callback to static highlighter 2013-10-28 11:33:51 +01:00
nightwing
0bebd94926 perge pull #1662 2013-10-27 14:43:49 +04:00
nightwing
07e4eb0a3a use scroller instead of content
because other widgets inheriting from ace do not have renderer.content
2013-10-27 14:33:55 +04:00
DanyaPostfactum
ad2d31eef4 Fix Webkit context menu on second click 2013-10-27 20:51:15 +11:00
Harutyun Amirjanyan
5120528cf1 Merge pull request #1660 from adamjimenez/patch-21
multiline strings throw out error line numbers
2013-10-27 00:44:01 -07:00
Harutyun Amirjanyan
7d8cd7f657 Merge pull request #1661 from danyaPostfactum/dnd-fixes
Some drag'n'drop fixes
2013-10-27 00:43:13 -07:00
DanyaPostfactum
12a2464756 Change mouse capture target container -> content
To prevent hover activity of scrollbars in Firefox
2013-10-26 15:13:15 +11:00
Adam Jimenez
4d0fa2412a remove unnecessary new line repace 2013-10-22 23:37:24 +01:00
Adam Jimenez
053b780478 multiline strings throw out error line numbers
e.g:

```
<?php
$foo = "test
multiline

string"
a
?>
```
shows  error on line 3 instead of 6.
2013-10-22 18:51:48 +01:00
Lennart Kats
4bbe5346f2 Merge pull request #1658 from ajaxorg/bugfix/textinput
Bugfix/textinput
2013-10-21 01:33:15 -07:00
nightwing
6677b22fd4 fix #1650 Editor looses focus on scrollbar click in the Google Chrome 2013-10-20 21:03:17 +04:00
nightwing
5bead368ea fix spellcheck extension on chrome 2013-10-20 20:57:58 +04:00
nightwing
ca47093bc8 restore textInput.setReadOnly call
needed for disabling contextmenu items
2013-10-20 19:01:07 +04:00
nightwing
1d4d76b1ea use text-indent: -1em; to hide cursor on ie
as suggested in https://github.com/ajaxorg/ace/issues/1640
2013-10-20 19:01:07 +04:00
nightwing
b52a989bf8 [IME] pressing enter on ie reverts last input 2013-10-20 19:01:07 +04:00
Harutyun Amirjanyan
b0e40929b6 Merge pull request #1654 from asm2750/add-vhdl-syntax
Add vhdl syntax
2013-10-19 11:37:44 -07:00
Harutyun Amirjanyan
c60e95b5e6 Merge pull request #1653 from adamjimenez/patch-19
highlight option tags as form elements
2013-10-18 10:40:16 -07:00
asm2750
2ff1e1db6b Update vhdl_highlight_rules.js
Added license block
2013-10-17 10:19:34 -07:00
asm2750
e2441734ca Update vhdl.js
Added license block
2013-10-17 10:19:02 -07:00
OpenShift guest
d9fe4880dc Added VHDL syntax highlighting, and example code. issue #1642 2013-10-17 00:47:19 -04:00
OpenShift guest
9fd726a81c Revert "Added VHDL syntax highlighting, and example code. issue #1642"
This reverts commit 56a37a4053.
2013-10-17 00:37:16 -04:00
OpenShift guest
56a37a4053 Added VHDL syntax highlighting, and example code. issue #1642 2013-10-17 00:35:27 -04:00
Adam Jimenez
ea019da404 highlight option tags as form elements 2013-10-15 18:23:24 +01:00
Lennart Kats
7625c67ac9 Merge pull request #1648 from ajaxorg/highlighter
Improve static highlighter
2013-10-11 07:35:24 -07:00
nightwing
bb0298783c add "highlighter" build target 2013-10-11 16:14:17 +04:00
nightwing
51dc39bb95 add static highlighter highlight method 2013-10-11 16:06:24 +04:00
Harutyun Amirjanyan
a2244c6d01 Merge pull request #1645 from creationix/master
Add comment support for Jack mode
2013-10-07 15:37:52 -07:00
Tim Caswell
c6e125a816 Add comment support for Jack mode 2013-10-07 12:04:27 -05:00
Harutyun Amirjanyan
907a765546 Merge pull request #1616 from fangel/patch-1
The require() and define() methods for workers does not conform to the AMDJS spec
2013-10-07 07:54:38 -07:00
Morten Fangel
afcc9afecf Improved the WebWorker RequireJS shim, so it's closer to the AMDJS spec
Improvements:

 - It's now possible to list dependencies that gets loaded before calling the factory-function
 - Relative paths without folders (./foo) now works properly
 - The define()-behaviour is now tested by four unit-tests
2013-10-07 15:55:41 +02:00
Harutyun Amirjanyan
c830baa212 Merge pull request #1644 from plancien/master
replaced simple string errors with full Errors
2013-10-06 10:51:23 -07:00
Pierre Lancien
4d62c0810b replaced simple string errors with full Errors, in order to make debugging easier. 2013-10-06 19:46:32 +02:00
Lennart Kats
e316578832 Merge pull request #1641 from ajaxorg/newclient
sync with newclient
2013-10-06 03:51:34 -07:00
nightwing
5927184195 add ace_ prefix to selected row classname 2013-10-06 14:26:16 +04:00
nightwing
eb2cfdfdfd fix #1629 Not able to scroll smoothly with a Mac trackpad, when the pointer is inside the editor. 2013-10-06 14:05:35 +04:00
nightwing
bfd68fb1cf fix #1637 typo in vbscript mode 2013-10-05 16:45:58 +04:00
nightwing
aa76fffaf2 fix __defineGetter__ errors on ie 2013-10-05 14:00:15 +04:00
nightwing
0002bf4e4c tweak logo 2013-10-05 13:50:53 +04:00
Nicholas Breslow
55a947ec68 Fixed MEL Syntax Highlighter
Fixed grouping errors. Added mel.mel file to test.
2013-10-02 14:17:35 -04:00
Harutyun Amirjanyan
93673bbe8b Merge pull request #1635 from devoncarew/master
update Dart syntax highlighting
2013-10-02 11:07:00 -07:00
Harutyun Amirjanyan
f99d36b4b2 Merge pull request #1636 from creationix/master
Add Jack mode
2013-10-02 11:04:32 -07:00
DanyaPostfactum
9eef8dfb9e Fix issue with blinking cursor on drag over
This happens when dragging from another app. Editor can get focused on app icon hovering (on a Windows taskbar).
2013-10-02 02:52:49 +10:00
DanyaPostfactum
617d43bb13 Impove opera blank drag image workaround (stolen from codemirror) 2013-10-02 02:47:31 +10:00
Tim Caswell
3dd62918c5 Add Jack mode 2013-10-01 11:20:26 -05:00
devoncarew@gmail.com
5746c2001c update Dart syntax highlighting 2013-09-30 20:58:12 -07:00
Nicholas Breslow
c2f1838dca Added Autodesk Maya MEL 2013-09-30 16:43:05 -04:00
Harutyun Amirjanyan
87c14b6aa7 Merge pull request #1627 from gfxmonk/sjs
SJS (StratifedJS) support, inheriting from JS
2013-09-28 22:48:18 -07:00
nightwing
4e97b47838 update logo 2013-09-28 23:54:40 +04:00
nightwing
cc5ed60464 update to version from newclient 2013-09-28 23:44:43 +04:00
Tim Cuthbertson
55c3623877 SJS (StratifedJS) support, inheriting from JS 2013-09-26 15:55:29 +10:00
nightwing
c9077acbd5 add back commands.byName 2013-09-25 23:53:17 +04:00
nightwing
04cc031da6 add deprecation message for commmandKeyBinding 2013-09-25 23:26:18 +04:00
Harutyun Amirjanyan
cc2f80f8c1 Merge pull request #1626 from thomaswilburn/master
Rename "commmandKeyBinding" to have 33% less "m"
2013-09-25 12:09:57 -07:00
Thomas Wilburn
5023410c42 Typo of "commmand" is driving me nuts. 2013-09-25 10:36:54 -07:00
Ruben Daniels
f6bcd82c36 Merge pull request #1622 from ajaxorg/change-to-bsd
Change RStudio contributions to BSD
2013-09-25 06:35:32 -07:00
Lennart Kats
5f3ba2cfe2 Merge pull request #1595 from ajaxorg/highlighting/mixed
Improvements for highlighting mixed languages
2013-09-24 02:56:08 -07:00
Lennart Kats
373f24849b Merge remote-tracking branch 'origin/master' into highlighting/mixed
Conflicts:
	index.html
2013-09-24 11:51:58 +02:00
Lennart Kats
49f0f2dfbc Merge pull request #1623 from ajaxorg/ctrl-d
ctrl-alt-right shouldn't select second word at once
2013-09-24 02:48:23 -07:00
nightwing
14a4aa2715 set correct direction on first range 2013-09-24 00:21:55 +04:00
nightwing
d0208903de update test 2013-09-24 00:17:40 +04:00
nightwing
c1057e473f ctrl-alt-right shouldn't select second word at once 2013-09-23 23:50:11 +04:00
Garen Torikian
18ae721541 Change RStudio contributions to BSD 2013-09-23 11:48:35 -07:00
Lennart Kats
c3712554ea Merge pull request #1617 from ajaxorg/folding/csharp
Better folding for csharp and ini
2013-09-23 01:40:41 -07:00
nightwing
d22626771b improve csharp folding 2013-09-21 20:44:19 +04:00
nightwing
e47caa459b update site 2013-09-21 17:03:40 +04:00
nightwing
9a70c98fc4 ini fold mode 2013-09-21 15:38:06 +04:00
nightwing
58e1410adf fix #1614 Gutter tooltip not showing inside relative container 2013-09-21 14:55:53 +04:00
nightwing
f1b74a8916 small tweaks for nativednd 2013-09-20 17:15:55 +04:00
Lennart Kats
ee95161972 Merge pull request #1599 from danyaPostfactum/nativednd
Use native HTML5 Drag'n'Drop for text.
2013-09-20 06:11:43 -07:00
Lennart Kats
2ae8a967f4 Merge pull request #1612 from ajaxorg/small_bugs
Small bugs
2013-09-20 05:55:13 -07:00
nightwing
7d2795bc77 update mode.tmpl.js 2013-09-19 11:00:10 +04:00
nightwing
80b8f557f0 update mode docs 2013-09-19 00:24:00 +04:00
nightwing
df4b0c8d4c update site 2013-09-18 18:46:28 +04:00
DanyaPostfactum
8a841df6e2 Capture mouse on quadclick 2013-09-18 17:51:52 +10:00
DanyaPostfactum
8ebf34a385 Add autoscroll delay 2013-09-17 19:07:16 +10:00
DanyaPostfactum
e1ff382041 Fix IE autoscroll drop triggering issue
Add overlay (css ::before generated content) while dragging to prevent IE to trigger `drop` event while autoscrolling
2013-09-17 19:05:35 +10:00
DanyaPostfactum
ad4e57e600 Fix webkit fake mousemove event (breaking dnd) issue 2013-09-17 19:02:29 +10:00
nightwing
2ace399a8a better compositionUpdate on chrome 2013-09-17 11:35:07 +04:00
nightwing
0b4c56c5a7 fix string parsing in php worker 2013-09-17 11:35:07 +04:00
nightwing
eb7ed9862a Merge remote-tracking branch 'remotes/origin/master'
Conflicts:
	index.html
2013-09-16 11:53:05 +04:00
Lennart Kats
650cf8e5af Merge pull request #1607 from ajaxorg/small_bugs
Small bugs
2013-09-16 00:24:28 -07:00
DanyaPostfactum
b1ba675cfd Fix dbl/triple click issues of native dnd 2013-09-15 20:48:33 +10:00
DanyaPostfactum
cb7a0d5d47 Improve native selection prevention on dnd 2013-09-15 20:41:22 +10:00
DanyaPostfactum
165cec553a Add onMouseDrag method to the DragdropHandler 2013-09-15 01:25:40 +10:00
DanyaPostfactum
624eb7c117 Make editor container to be drop zone 2013-09-15 01:13:52 +10:00
nightwing
51b7cb67a6 update site and submodules 2013-09-14 18:47:34 +04:00
nightwing
414667916e always call setMode callback after the event 2013-09-14 14:55:41 +04:00
nightwing
4d8a31fd54 fix popup position flipping 2013-09-14 14:53:51 +04:00
nightwing
eecbe48695 replace ace global with getter in the demo
see 060e86d6
2013-09-14 00:52:09 +04:00
nightwing
3c6cd4d16f fix #1606 broken markdown snippets 2013-09-13 23:46:03 +04:00
nightwing
fbdcbd00a1 always call callback from setMode 2013-09-13 21:20:06 +04:00
nightwing
2c9dbced9b allow setting MaxTokenCount in tokenizer 2013-09-13 20:40:34 +04:00
nightwing
214c3a9b5d workaround for broken Object.create(null) on old opera
fixes https://github.com/ajaxorg/ace-builds/issues/13
2013-09-13 20:40:34 +04:00
Zef Hemel
4e748341fc [Golang] Forgot | 2013-09-13 16:14:44 +02:00
Zef Hemel
2a016e3890 Added another few missing builtin types and functions to the Go language. 2013-09-13 16:14:05 +02:00
DanyaPostfactum
b6dab9eb45 Fix Opera drag image issue. 2013-09-12 23:44:00 +10:00
Harutyun Amirjanyan
5806661f47 Merge pull request #1602 from matthewkastor/patch-1
fix broken demo.
2013-09-12 00:58:54 -07:00
Matthew Kastor
8a08d3fc0a fix broken demo. 2013-09-12 01:44:25 -04:00
nightwing
2efe7f203e fix #1598 Pipe '|' symbol breaks YAML Syntax highlighting 2013-09-11 23:36:29 +04:00
nightwing
e52a4250fe fix html demo 2013-09-11 23:36:29 +04:00
nightwing
b4628d450f use lazy getTokenizer in getNextLineIndent 2013-09-11 23:36:29 +04:00
nightwing
811d190c95 create tokenizer only when needed 2013-09-11 23:36:29 +04:00
nightwing
bc4b1324b7 commandline in demo remains hidden sometimes 2013-09-11 23:36:28 +04:00
nightwing
b4f8e47fe3 fix slim cursor setting 2013-09-11 23:36:28 +04:00
nightwing
4670e2201d fix running Makefile.dryice.js from another directory 2013-09-11 23:36:28 +04:00
nightwing
5ba0212ca2 simple soytemplate highlighter 2013-09-11 23:36:28 +04:00
nightwing
3be21b77e5 simple handlebars mode 2013-09-11 23:36:28 +04:00
nightwing
7b80bb793e cleanup 2013-09-11 23:36:28 +04:00
nightwing
37fc612756 generate doclist automatically based on modelist 2013-09-11 23:36:28 +04:00
Harutyun Amirjanyan
4c1497fc29 Merge pull request #1596 from breck7/master
Rebased on latest Ace. Added Coffee Fold Mode
2013-09-11 12:17:28 -07:00
DanyaPostfactum
ddf5d1ab45 Improve autoscroll behavior for text dragging 2013-09-12 02:48:46 +10:00
DanyaPostfactum
b7daccf9a9 Fix IE native drag'n'drop issues 2013-09-12 01:44:55 +10:00
Lennart Kats
4d18ae10b2 Merge pull request #1600 from ajaxorg/protobuf
Added a Google Protobuf mode
2013-09-11 05:59:22 -07:00
Zef Hemel
7c8d81333f Added a Google Protobuf mode 2013-09-11 14:37:50 +02:00
DanyaPostfactum
2993ae831f Set this context of event handlers for old IE. 2013-09-11 21:52:30 +10:00
Zef Hemel
3cd5ea654e Added inherit keyword to Nix mode 2013-09-10 14:13:21 +02:00
Lennart Kats
98d149f0b8 Merge pull request #1597 from ajaxorg/golang-bool
Golang: Added 'bool' type and 'select' keyword
2013-09-10 04:58:40 -07:00
DanyaPostfactum
8936861338 Use native HTML5 Drag'n'Drop for text. 2013-09-10 21:41:20 +10:00
Zef Hemel
347be370fe and select keyword 2013-09-10 10:55:14 +02:00
Zef Hemel
ff93d54adc Added 'bool' type. 2013-09-10 10:44:44 +02:00
Breck
b297a1ae02 Removed comment 2013-09-09 12:31:02 -07:00
Breck
0b5d78736f Rebased on latest Ace. Added Coffee Fold Mode 2013-09-09 11:46:03 -07:00
Mostafa Eweda
0f83322450 Merge pull request #1592 from ajaxorg/anchor_align_left
Add insert right mode for anchors and range_lists
2013-09-06 10:52:27 -07:00
nightwing
06d61cf239 add insert right mode for anchors and range_lists 2013-09-06 21:47:39 +04:00
Harutyun Amirjanyan
1728b50198 Merge pull request #1591 from rmsmith/wraplimitrange_bugfix
`EditSession.setWrapLimitRange` should set a new object to `this.$wrapLi...
2013-09-06 06:45:08 -07:00
rmsmith
b3443a0fab EditSession.setWrapLimitRange should set a new object to this.$wrapLimitRange
This fixes a bug where if you have 2 instances of EditSession and you
`setWrapLimitRange` on one of them it would affect the $wrapLimitRange
on all other instances of EditSession.
2013-09-06 16:16:15 +03:00
nightwing
43d2a6607f use same font size for completion popup and editor 2013-09-06 13:43:41 +04:00
Harutyun Amirjanyan
5b6a1df596 Merge pull request #1590 from ajaxorg/go
Improved Go highlighting, added builtin types and functions
2013-09-06 02:14:59 -07:00
Zef Hemel
1b5d023389 Fix test 2013-09-06 11:12:33 +02:00
nightwing
bf1c41808b fix infinite loop when selectOnHover is true 2013-09-06 13:11:31 +04:00
Zef Hemel
0dd731a882 Improved Go highlighting, added builtin types and functions and "range" keyword. 2013-09-06 11:05:01 +02:00
Zef Hemel
f860b88e51 Merge pull request #1583 from ajaxorg/autocomplete
improve autocomplete popup
2013-09-06 02:03:58 -07:00
nightwing
2df136beba use text shadow instead of bold 2013-09-06 12:50:55 +04:00
Zef Hemel
060e86d6ca ace.session does not exist (not in the no-conflict mode exist), so let's use this.editor.session instead. 2013-09-06 10:33:08 +02:00
Lennart Kats
e746383ec0 Merge pull request #1571 from ajaxorg/newclient
sync with newclient
2013-09-06 00:21:34 -07:00
nightwing
1fa691693e fix expansion of snippets with nested tabstops 2013-09-05 18:45:51 +04:00
nightwing
62c514135d fix snippet file parsing 2013-09-05 00:28:42 +04:00
nightwing
df261c6763 higher index for gutter tooltip 2013-09-04 18:38:17 +04:00
nightwing
94e4c2d6dd include -1 when cycling through popup items 2013-09-04 18:37:50 +04:00
nightwing
d6de4ee6aa fix popup selection marker 2013-09-04 18:37:08 +04:00
nightwing
dd057f3095 allow fractional scrollLeft 2013-09-04 17:04:37 +04:00
nightwing
1bf73980ae shadow looks ugly on firefox 2013-09-04 13:34:42 +04:00
nightwing
3e4e7303fc Merge pull request #1585 2013-09-04 13:22:13 +04:00
nightwing
00a640e473 fix highlighting of closing brace 2013-09-04 13:19:23 +04:00
nightwing
3fe075f2af fix getAllRanges in singleSelect mode 2013-09-04 13:11:09 +04:00
nightwing
94bea36cf1 Merge remote-tracking branch 'remotes/pull/1587' 2013-09-04 13:05:03 +04:00
nightwing
61d33f4269 tweak style 2013-09-04 13:04:39 +04:00
DanyaPostfactum
bde1acec75 Insert completion at each cursor 2013-09-04 13:34:30 +10:00
Zef Hemel
3812b20546 Nix mode 2013-09-03 20:46:27 +02:00
Zef Hemel
a44b053eab Initial Nix mode 2013-09-03 17:21:47 +02:00
nightwing
7edecc9f2a improve autocomplete popup 2013-09-02 00:21:51 +04:00
nightwing
8cb5b1f0e9 fix #1580 Mouse SelectByLines does not select ending char 2013-08-30 15:25:38 +04:00
Harutyun Amirjanyan
5f6dd8c89f Merge pull request #1577 from fatihacet/patch-1
Continue loop if we don't have a caption while populating autocomplete l...
2013-08-30 03:13:42 -07:00
Harutyun Amirjanyan
3deefcb2c7 Merge pull request #1575 from danyaPostfactum/domgutter
Use DOM methods to update gutter
2013-08-30 03:12:36 -07:00
Fatih Acet
29a011cc0a Continue loop if we don't have a caption while populating autocomplete list. 2013-08-29 14:48:11 +03:00
DanyaPostfactum
53440ea548 Use DOM methods to update gutter 2013-08-28 20:59:03 +10:00
nightwing
4492925305 fix erb comment highlighting 2013-08-28 12:15:12 +04:00
Harutyun Amirjanyan
9bf4827c78 Merge pull request #1550 from pterxiao/cvox
Accessibility Theme for Ace
2013-08-28 01:03:57 -07:00
nightwing
094fd85334 fix a typo 2013-08-27 13:43:07 +04:00
nightwing
e2b2f08c24 fix tests 2013-08-26 22:41:29 +04:00
nightwing
449bbfe406 improve batch highlighting 2013-08-26 21:59:17 +04:00
nightwing
c62e0d3062 add trimEmpty options to trimTrailingSpace, cleanup 2013-08-26 21:58:31 +04:00
nightwing
79fbec43b0 misc fixes 2013-08-26 21:57:22 +04:00
nightwing
3a23eacda2 fix foldAll 2013-08-26 21:55:34 +04:00
nightwing
3eef5f0a63 allow clicking through invisible mac scrollbars 2013-08-26 21:55:14 +04:00
nightwing
79c0f83e2c add input event, make doing multiple changes in one turn much faster 2013-08-26 21:52:38 +04:00
nightwing
2d6f56d8fd provide oldSize in resize event 2013-08-26 21:44:30 +04:00
nightwing
b2eac666e5 allow removing listener while event is dispatched 2013-08-26 21:41:18 +04:00
nightwing
6a76d63491 Merge pull 1554 2013-08-26 21:14:00 +04:00
nightwing
7fc575a47c fix formatting 2013-08-26 21:13:10 +04:00
Lennart Kats
dbff7216f0 Merge pull request #1570 from ajaxorg/papercuts
Small improvements to the api
2013-08-26 09:51:12 -07:00
nightwing
063aaed3a2 add @deprecated comment for getCopyText 2013-08-26 20:21:07 +04:00
nightwing
244e1462e8 add fixedWidthGutter option 2013-08-26 18:46:42 +04:00
nightwing
b23265ad72 allow any Range-like objects in session replace/remove 2013-08-26 18:37:50 +04:00
nightwing
3b5d742feb add editor getSelectedText method 2013-08-26 18:31:51 +04:00
nightwing
a44cbdc5c2 add renderer.setMouseCursor 2013-08-26 18:26:05 +04:00
nightwing
2cef7f4747 add scrollTo method 2013-08-26 18:09:31 +04:00
nightwing
27b91b44e0 update coffee script fixes #1568 2013-08-26 18:08:11 +04:00
Harutyun Amirjanyan
330b8a4a8e Merge pull request #1566 from ajaxorg/webkit-fractional-fix
Webkit fractional fix
2013-08-23 14:11:08 -07:00
Garen Torikian
d9c5921e48 Use lang.stringRepeat instead of a for loop 2013-08-23 14:02:26 -07:00
Garen Torikian
4b42933b8a Add comment explaining maths 2013-08-23 12:59:50 -07:00
Garen Torikian
a4ef760c7a Support fractional fixed-width fonts 2013-08-23 12:59:04 -07:00
Harutyun Amirjanyan
8bf4a0e604 Merge pull request #1564 from adamjimenez/patch-16
Include css rule name with lint results
2013-08-23 09:15:14 -07:00
Adam Jimenez
5c721c1103 Add cut or delete command shift+delete 2013-08-23 15:56:58 +01:00
nightwing
067efccb16 update list of real world users 2013-08-23 16:37:34 +04:00
nightwing
48e672b710 fix php heredoc highlighting inside array
fixes #1561
2013-08-23 11:46:49 +04:00
nightwing
c3491f4855 fix merge conflict 2013-08-22 15:29:17 +04:00
nightwing
f8f8b00c61 Merge remote-tracking branch 'remotes/pull/1560'
Conflicts:
	lib/ace/ext/language_tools.js
2013-08-22 13:32:14 +04:00
nightwing
e88dc7adc9 Merge branch origin/htmlcompleter 2013-08-22 13:28:41 +04:00
DanyaPostfactum
9475d7738b Add fuzzy matching for completions 2013-08-22 11:43:11 +10:00
DanyaPostfactum
2d0b980c65 Fix two broken javascript snippets 2013-08-22 11:38:57 +10:00
Harutyun Amirjanyan
fb66d49772 Merge pull request #1559 from ajaxorg/add-makefile-target
Add a simple incremental Makefile target
2013-08-21 06:06:02 -07:00
Lennart Kats
b4150a201c Don't require pre_build for basic job 2013-08-21 15:04:05 +02:00
Lennart Kats
29b6f8c875 Add a very simple incremental Makefile target 2013-08-21 14:54:02 +02:00
Harutyun Amirjanyan
bbabc6edc1 Merge pull request #1557 from mc10/master
Fix links in Readme.md
2013-08-18 15:05:47 -07:00
Kevin Ji
2885e6f90c Fix links in Readme.md 2013-08-18 14:43:45 -07:00
Peter Xiao
12d2c298bb Update old title. 2013-08-15 17:40:36 -07:00
Peter Xiao
ca1f431df4 Flush out extra unselected speech. 2013-08-15 17:20:36 -07:00
Peter Xiao
1a54f05075 Play earcon on empty or whitespace rows. Add support for selection. 2013-08-15 17:18:07 -07:00
Lennart Kats
fe1f945343 Merge pull request #1540 from ajaxorg/ie7
Ie7 support
2013-08-15 01:24:43 -07:00
Peter Xiao
23f62e015b Merge branch 'master' of https://github.com/ajaxorg/ace into cvox 2013-08-14 15:27:01 -07:00
Peter Xiao
5708ef899e Support for multiple editors, reorder rules, and use replace all. 2013-08-14 13:57:38 -07:00
Peter Xiao
1d7c9220ee No need to focus ace, add more expansions. 2013-08-14 13:29:34 -07:00
Peter Xiao
5ea65fe246 Add in expansion rules to speak more like how code is read. 2013-08-13 16:51:12 -07:00
Peter Xiao
16d13b6b59 Like tokens are now merged for more fluid TTS. 2013-08-13 15:39:01 -07:00
Peter Xiao
0f93b3098f Start merging tokens. 2013-08-13 15:34:22 -07:00
nightwing
269e8d976d remove useless stopPropagation on mouseup 2013-08-14 00:05:26 +04:00
Peter Xiao
41c82627f9 Update comment, remove code in chromevox ext demo. 2013-08-12 16:59:12 -07:00
Peter Xiao
c3a681abd1 Less aggressive filter for speaking tokens, add some docs. 2013-08-12 16:15:09 -07:00
Peter Xiao
38b42d20d3 Chromevox theme now an extension, added demo file, added findSearchBox event. 2013-08-12 15:58:09 -07:00
Peter Xiao
304b27954b Moved chromevox to ext 2013-08-12 13:04:12 -07:00
nightwing
7f6e94f021 Merge remote-tracking branch 'remotes/origin/html_completer' 2013-08-12 22:28:55 +04:00
Lennart Kats
0655f8a809 Merge pull request #1552 from ajaxorg/jshint
Jshint update
2013-08-12 07:58:32 -07:00
nightwing
0f2ca66d76 allow space separated list of globals 2013-08-12 18:32:36 +04:00
nightwing
14d540ddc7 update jshint again 2013-08-12 18:13:20 +04:00
nightwing
e5714c9dba Merge remote-tracking branch 'remotes/origin/gh-pages' into master 2013-08-11 13:17:22 +04:00
nightwing
54a2880634 small cleanup 2013-08-11 11:53:40 +04:00
Peter Xiao
6bbc1d6d41 Add chromevox theme. 2013-08-08 15:51:20 -07:00
nightwing
9bf8eac28c add persistent vscroll option to the demo 2013-08-09 00:12:52 +04:00
Lennart Kats
42d243df4b Merge pull request #1520 from ajaxorg/wrap
Wrapping issues
2013-08-07 07:10:21 -07:00
nightwing
d2318e99a2 add increase/decrease fontSize commands to the demo 2013-08-05 23:33:10 +04:00
nightwing
d884b44d48 better save in the demo 2013-08-04 13:58:50 +04:00
Adam Jimenez
9f8ed0db31 Include css rule name with lint results
This is similar to returning "raw" from JSHint, as it helps to identify the rule being applied.
2013-08-03 14:40:11 +01:00
nightwing
f782e59f76 update build 2013-08-01 23:29:53 +04:00
Lennart Kats
d1738b0eb2 Merge pull request #1539 from ajaxorg/misc
fix several small bugs
2013-07-31 15:04:55 -07:00
nightwing
c80ae070f7 small cleanup 2013-07-31 17:54:44 +04:00
nightwing
844502fae6 Merge branch 'origin/master' into misc
Conflicts:
	lib/ace/virtual_renderer.js
2013-07-30 22:17:38 +04:00
nightwing
d3cd46adff fix $# and %# highlighting in perl mode 2013-07-30 22:13:48 +04:00
nightwing
c911f4a761 fix tests 2013-07-30 01:09:52 +04:00
nightwing
ab438f2edc better demo 2013-07-30 00:47:09 +04:00
nightwing
f2944d4ced remove trailing commas 2013-07-30 00:28:05 +04:00
nightwing
95f0e7308f some more ie7 fixes 2013-07-30 00:23:09 +04:00
nightwing
4b4a5d045c add a test 2013-07-30 00:23:08 +04:00
nightwing
8d354e810c syntax highlighting in ie9 in ie8 mode 2013-07-30 00:23:08 +04:00
nightwing
d4dcdb7736 use snipetManager for expanding emmet snippets 2013-07-27 00:45:08 +04:00
nightwing
524930a2c7 force measure sizes if container is visible but width is 0 2013-07-26 23:17:12 +04:00
nightwing
4d9118e6fe add emmet demo 2013-07-26 15:10:59 +04:00
nightwing
ca1c27aa65 fix #1533 syntax highlighting of markdown links 2013-07-26 14:55:08 +04:00
nightwing
cacd51e2fe tweak jshint console mock 2013-07-24 22:57:46 +04:00
nightwing
62e7073b33 add wrapMethod:auto and fix tests 2013-07-24 17:49:42 +04:00
Luca Cipriani
c2692f42af Update CNAME 2013-07-24 14:53:17 +02:00
nightwing
9f068dc45d improve wrapping for markdown 2013-07-24 16:16:52 +04:00
nightwing
22de40bf6a resize editor only when tab is fully shown 2013-07-23 19:12:24 +04:00
nightwing
73d8eb5898 do not lose scheduled changes when render is canceled 2013-07-23 19:11:17 +04:00
nightwing
47b30f5db4 update submodules 2013-07-23 16:37:07 +04:00
Luca Cipriani
32035f68db Added CNAME file for redirect of giihubpages 2013-07-23 16:21:10 +04:00
nightwing
373693a1c4 fix weird ie8 bug 2013-07-23 15:54:15 +04:00
Lennart Kats
a4a30b6665 Merge pull request #1523 from ajaxorg/jshint
update jshint to 2.1.4
2013-07-23 00:19:43 -07:00
Lennart Kats
5bc96b69fc Merge pull request #1527 from ajaxorg/nc
renderer fixes backported from newClient
2013-07-22 12:30:02 -07:00
Lennart Kats
b204b53e78 Merge pull request #1526 from ajaxorg/site
Dogfood
2013-07-22 07:14:56 -07:00
Harutyun Amirjanyan
7294a35b3f Merge pull request #1528 from jdalegonzalez/master
Added parser support for traits, namespace declarations, namespace refer...
2013-07-22 03:39:23 -07:00
jdalegonzalez
c03df1f602 Added parser support for traits, namespace declarations, namespace references in class names (\) and the use keyword 2013-07-20 12:29:06 -04:00
nightwing
7f4d2dde8e add more users 2013-07-19 19:48:24 +04:00
nightwing
f447430c10 automatically hide activeLine highlight if editor height is one line 2013-07-19 17:59:37 +04:00
nightwing
4e86a104c2 fix autoresizing editor on ie 2013-07-19 17:52:33 +04:00
nightwing
650fe73386 clicking on scrollbar shouldn't focus the editor 2013-07-19 17:52:33 +04:00
nightwing
26329c2d76 scrollbars should start as hidden 2013-07-19 17:52:33 +04:00
nightwing
abf5f7492f recompute longestLine when vScroll changes 2013-07-19 17:52:33 +04:00
nightwing
7f8a47939c renderer changes from newclient 2013-07-19 17:52:33 +04:00
nightwing
e0ce741f5b convert multi_select to an option 2013-07-19 17:52:33 +04:00
nightwing
50ec54a7d8 use minified files 2013-07-19 03:39:01 +04:00
nightwing
71d382d43b Merge remote-tracking branch 'remotes/dp/htmlcompleter'
Conflicts:
	lib/ace/ext/language_tools.js
2013-07-19 03:16:28 +04:00
nightwing
a406b853f3 Merge branch 'highlighting/xml' 2013-07-19 03:04:34 +04:00
nightwing
ee74fe5a52 make doctype less bright 2013-07-19 03:02:59 +04:00
nightwing
8a22cf4873 enable autocompletion and snippets 2013-07-18 21:03:36 +04:00
nightwing
a69fce21f4 use ace static highlighter in the main site 2013-07-18 21:03:35 +04:00
nightwing
9f2a17fcf5 fix snippet editor in the demo 2013-07-18 13:11:08 +04:00
nightwing
77526749bc add emmet updater 2013-07-18 13:11:08 +04:00
nightwing
18c2a50726 fix typo in the demo 2013-07-18 13:11:07 +04:00
nightwing
1a94ace704 fix tests 2013-07-18 13:11:07 +04:00
nightwing
2a8619e7f5 enable moz in javascript worker 2013-07-18 13:10:43 +04:00
nightwing
6788031994 allow moz and es6 settings to work together 2013-07-18 13:09:08 +04:00
nightwing
41b0914299 remove huge console emulation code 2013-07-18 13:07:55 +04:00
nightwing
d76bc364e7 update jshint to v2.1.4 2013-07-18 13:05:00 +04:00
nightwing
987411423b update jshint updater 2013-07-18 13:03:59 +04:00
nightwing
e5ce9e7aee Merge pull request #1517: Update links 2013-07-14 13:41:13 +04:00
Adrian L Lange
24f6640f89 Update links
Files changed: index.html
2013-07-14 13:38:55 +04:00
nightwing
2270bd8c4b fix failing tests 2013-07-14 08:58:29 +04:00
nightwing
c7abff1856 use meta.tag.punctuation 2013-07-14 08:49:45 +04:00
nightwing
386f1ecade Merge branch 'highlighting/xmlrefactor' into master
Conflicts:
	lib/ace/ext/modelist.js
	lib/ace/mode/_test/tokens_luapage.json
2013-07-14 06:24:23 +04:00
Lennart Kats
aded11265f Merge pull request #1489 from ajaxorg/undo_merge
Undo merging
2013-07-12 00:04:40 -07:00
Ruben Daniels
6783f921c9 Merge pull request #1512 from ajaxorg/indent
fix #549 enter on start of indented line should keep indentation
2013-07-11 08:17:05 -07:00
nightwing
920031b877 fix #549 enter on start of indented line should keep indentation 2013-07-11 18:41:40 +04:00
nightwing
09d0044e1e fix undo selection range after delete 2013-07-11 17:35:29 +04:00
nightwing
ba0e17fd0d fix #1510 ace_invalid appears on correct diff 2013-07-11 16:50:02 +04:00
DanyaPostfactum
3c046d2ada Update highlighting tests 2013-07-11 00:31:39 +10:00
DanyaPostfactum
88d9a61dc2 Fix xml_highlight_rules qstring_inner state name 2013-07-10 14:35:24 +10:00
Lennart Kats
3009163083 Merge pull request #1509 from ajaxorg/hotfix/build
fix #1508: jshint is broken in build
2013-07-09 08:23:07 -07:00
nightwing
a41a06ff33 escape . in regexp 2013-07-09 19:20:53 +04:00
nightwing
49967c139a fix typo in noworker detection 2013-07-09 18:22:35 +04:00
nightwing
38dc22b421 fix tests 2013-07-08 15:02:29 +04:00
nightwing
c5378b54e1 fix #1508: jshint is broken in build 2013-07-08 13:58:57 +04:00
nightwing
e3d14ab620 turn scrollPastEnd off by default 2013-07-07 14:40:53 +04:00
Ruben Daniels
a25a685d11 Merge pull request #1507 from ajaxorg/scroll_past_end
[WIP] scrollPastEnd
2013-07-07 02:31:37 -07:00
nightwing
1ad2602f8b add scrollPastEnd to demo 2013-07-07 13:02:57 +04:00
nightwing
8a6320bfd1 resize scrollbar for scrollPastEnd only when needed 2013-07-07 12:50:24 +04:00
nightwing
b97496009b scrollPastEnd 2013-07-07 12:48:53 +04:00
Lennart Kats
5585535d98 Merge pull request #1504 from ajaxorg/fix/build
Fix snippet loading in build
2013-07-07 01:03:44 -07:00
Lennart Kats
b1439f2bf8 Merge pull request #1487 from ajaxorg/highlighting/update
update sh and go highlighting
2013-07-07 01:00:56 -07:00
Ruben Daniels
65713e974b Merge pull request #1502 from ajaxorg/scrolling_issues
fix several small issues on mac
2013-07-06 03:48:01 -07:00
Ruben Daniels
62653ea5ba Merge pull request #1473 from ajaxorg/bgTokenizer
bgTokenizer worker should not redraw unnecessarily
2013-07-06 03:47:30 -07:00
Ruben Daniels
95e0f2fffd Merge pull request #1467 from ajaxorg/jshint
update jshint and coffee
2013-07-06 03:47:08 -07:00
nightwing
bbe87e41fa update tests 2013-07-04 14:42:40 +04:00
nightwing
d2be8aefc0 fix snippet loading in build 2013-07-04 14:31:42 +04:00
nightwing
3139b3964d fix #1500 too enthusiastic String replace in config.moduleUrl 2013-07-04 14:30:35 +04:00
nightwing
dd0880afb6 fix typo 2013-07-03 17:42:46 +04:00
nightwing
a8ac1b1e9a fix horizontal scrolling 2013-07-02 15:25:36 +04:00
DanyaPostfactum
98d6fac8fa Move html completion logic to html_completions.js 2013-07-02 19:42:43 +10:00
nightwing
1400d82d34 pull back changes from cloud9 2013-07-02 12:13:30 +04:00
Lennart Kats
cc0b6386aa Merge pull request #1496 from ajaxorg/fix/build
Fix build
2013-07-01 02:24:03 -07:00
nightwing
403e45a5dd fix vim folding commands 2013-07-01 00:09:15 +04:00
Tenor Biel
5f1a69a38e Add vim commands for folding 2013-07-01 00:01:30 +04:00
nightwing
4b8ab8eab9 fix ^ in vim mode on swedish keyboard on mac 2013-06-30 23:45:47 +04:00
nightwing
f6f3425cce use wheel event on new versions of Firefox
fixes #1466
2013-06-30 22:07:23 +04:00
DanyaPostfactum
297dbe63db Append empty value to inserted html attribute on completion 2013-07-01 04:05:22 +10:00
Harutyun Amirjanyan
6a87d9782b Merge pull request #1494 from danyaPostfactum/snippetcompleter
Show snippets in suggestion list
2013-06-30 10:07:24 -07:00
DanyaPostfactum
e1c86f453f add html completion 2013-07-01 01:43:05 +10:00
DanyaPostfactum
a5f4ecf597 add .getCompletions method to text mode 2013-07-01 01:42:40 +10:00
DanyaPostfactum
7ce86e24f1 use data.snippet in completions for snippet insertion 2013-07-01 01:23:14 +10:00
Harutyun Amirjanyan
2a40b37590 Merge pull request #1493 from buildersbrewery/master
Updates to LSL mode
2013-06-30 07:45:36 -07:00
Harutyun Amirjanyan
b860c2293c Merge pull request #1495 from ajaxorg/static_highlighter
fix #1492 $' breaks static-highligher
2013-06-30 07:44:33 -07:00
DanyaPostfactum
d276f10bcd add snippet completer 2013-06-30 04:07:24 +10:00
DanyaPostfactum
ca97c230f0 Proper comment rules in js syntax. 2013-06-29 17:41:16 +10:00
Lennart Kats
76fd4b1358 Merge pull request #1464 from ajaxorg/highlighting/markdown
Tweak heading and list highlighting in markdown mode
2013-06-28 15:15:25 -07:00
Lennart Kats
3e6d25c38f Merge pull request #1463 from ajaxorg/altgr
Do not capture alt-gr key
2013-06-28 15:14:34 -07:00
Builders Brewery
8c3527ec5b updated LSL mode
- added changes from
wiki.secondlife.com/wiki/Release_Notes/Second_Life_RC_LeTigre/13#13.06.21.277682
to highlight rules and snippets
- reviewed invalid grammar and text mode test
2013-06-28 17:42:57 +02:00
nightwing
2143c4daed make minified files ascii compatible 2013-06-28 19:38:02 +04:00
nightwing
c6143cf587 include theme/textmate in build 2013-06-28 19:38:02 +04:00
nightwing
adf7eebb5f fix tests 2013-06-28 19:22:21 +04:00
nightwing
071b936323 fix conflict between static highlighter and ace styles 2013-06-28 18:17:10 +04:00
nightwing
8068b01f21 fix #1492 $' breaks static-highligher 2013-06-28 18:15:54 +04:00
Ruben Daniels
81f7dd7fbb Merge pull request #1488 from ajaxorg/renderer
Renderer improvements
2013-06-27 07:55:22 -07:00
nightwing
f1e809294c fix #1490 Parsing Lua comments in the middle of line 2013-06-26 20:23:58 +04:00
nightwing
78585a9c5d add demo/autoresize.html 2013-06-25 23:50:00 +04:00
nightwing
0479acfea7 add option to autoresize editor vertically 2013-06-25 20:59:06 +04:00
DanyaPostfactum
969f94d98c Paint xml tag angle brackets in white (monokai theme) 2013-06-24 21:08:22 +10:00
DanyaPostfactum
722374581a Update svg Highlight rules 2013-06-24 21:06:54 +10:00
DanyaPostfactum
e2359b2f9f Let JS line comment rules be not greedy 2013-06-24 21:06:32 +10:00
DanyaPostfactum
25853c11a1 Use push/pop in css highlight rules 2013-06-24 21:04:28 +10:00
DanyaPostfactum
a6ba61e11a Inherit all HTML+server_side_directives rules from HTML rules. 2013-06-24 21:03:49 +10:00
DanyaPostfactum
7c6f40e41e Html HL rules now is extended xml rules 2013-06-24 20:56:33 +10:00
DanyaPostfactum
d358fe61b9 Allow no prefix in TextHighlightRules.addRules() 2013-06-24 20:53:37 +10:00
DanyaPostfactum
ed223cb7fd Rewrite xml rules. 2013-06-24 18:55:07 +10:00
DanyaPostfactum
5f2ee8b32b Prevent double prefixing of "included" rules 2013-06-24 18:53:09 +10:00
DanyaPostfactum
5a1948a695 Fix FreeMarker in ext/modelist 2013-06-24 18:42:40 +10:00
DanyaPostfactum
91884280e2 More stuff for twig sample 2013-06-24 18:41:57 +10:00
nightwing
b3e4d33e02 update scrollbar when inserting new line in the middle of the document
fixes regression from 9f1d8af937
2013-06-24 00:18:51 +04:00
nightwing
43f1788ad4 use fake horizontal scrollbar 2013-06-23 23:58:32 +04:00
nightwing
a6654eee9e update tests 2013-06-23 22:35:23 +04:00
nightwing
b9190d1e8d fix go string highlighting 2013-06-23 22:27:02 +04:00
nightwing
4b398798c0 highlight escapes in sh mode 2013-06-22 22:39:18 +04:00
Ruben Daniels
ea591e2149 Merge pull request #1479 from ajaxorg/pulreq
Fix timing issue with setting modes
2013-06-20 07:08:11 -07:00
nightwing
3667a15e8d add callback to setTheme as well 2013-06-20 18:04:36 +04:00
nightwing
855853139a small cleanup 2013-06-20 18:00:50 +04:00
nightwing
b01d4d5a6b treat whitespace words of length 1 the same as others
without this multicursor doesn't work in cases like

foo: bar
a:   baz
2013-06-20 17:57:10 +04:00
nightwing
4b51b9288f timing issue with setting modes 2013-06-20 17:57:09 +04:00
nightwing
2d9225326c cleanup 2013-06-19 21:38:11 +04:00
nightwing
2852638c45 fix initial highlighting in hidden editor 2013-06-19 21:25:39 +04:00
nightwing
0ba027c8bf fix failing test 2013-06-17 16:54:43 +04:00
nightwing
9197cc983c enable undo coalescence by default 2013-06-17 16:38:27 +04:00
nightwing
db4953c976 use operations for undo coalescence 2013-06-17 16:38:00 +04:00
nightwing
52e0b2d163 pressing ctrl+home second time should restore selection 2013-06-17 16:35:22 +04:00
nightwing
ec8b42c5e0 add start/endOperation 2013-06-17 16:30:09 +04:00
nightwing
b18b86b6c9 make undo coalescence configurable
off by default
2013-06-17 02:06:28 +04:00
Harutyun Amirjanyan
132d44462e Merge pull request #1475 from buildersbrewery/master
Update LSL mode
2013-06-16 14:47:51 -07:00
nightwing
ef2e2cdd11 move undo delta merging to the editor 2013-06-17 01:30:42 +04:00
DanyaPostfactum
277675525b Almost working draft of basic undo coalescence 2013-06-17 01:08:03 +04:00
nightwing
7798de7bd3 add selection.toJSON method 2013-06-17 00:58:11 +04:00
nightwing
f82c4df96a [Autocomplete] fix insertion of words containing - sign 2013-06-17 00:53:12 +04:00
nightwing
3026d78395 do not allow Replace after setReadOnly
fixes #1468
2013-06-17 00:53:12 +04:00
Builders Brewery
71d127f5fa updated LSL mode
lsl_highlight_rules.js:
- added stuff from RC Le Tigre 13.06.06.277104
- made stuff more readable while staying within 80 columns width

snippets.lsl
- sorted
- added stuff from RC Le Tigre 13.06.06.277104
2013-06-16 21:13:17 +02:00
nightwing
f45980feb7 fix FreeMarker mode name in modelist 2013-06-16 16:38:09 +04:00
nightwing
cdd122a540 fix hljs undefined error in main site 2013-06-16 11:46:54 +04:00
nightwing
6887c84b71 fix #1474 IE8: double click anywhere issues script error. 2013-06-16 11:45:58 +04:00
nightwing
774098f243 event target isn't defined on ie8 2013-06-13 23:42:41 +04:00
nightwing
069bbda6a6 bgTokenizer worker should not redraw unnecessarily 2013-06-13 21:57:29 +04:00
nightwing
d2f7247e58 add missing snippets.tmpl.js 2013-06-11 22:06:00 +04:00
nightwing
7df0b59c13 fix tests 2013-06-11 14:57:31 +04:00
nightwing
505847681d update jshint and coffee 2013-06-11 14:24:57 +04:00
Lennart Kats
fa13f377e1 Merge pull request #1189 from ajaxorg/feature/codecomplete
Implement basic code completion
2013-06-10 17:09:18 -07:00
nightwing
db1118c258 fix typo 2013-06-09 18:57:49 +04:00
nightwing
156d9a7eeb load snippet files automatically 2013-06-09 18:11:45 +04:00
nightwing
af2a2e272b revert change to config.js 2013-06-09 01:09:48 +04:00
nightwing
917e4b925c fix typo in clojure mode 2013-06-09 01:06:25 +04:00
Harutyun Amirjanyan
89c42264c0 Merge pull request #1427 from gbedardsice/master
Text mode keeps indentation
2013-06-08 13:57:53 -07:00
nightwing
b36c4c67b2 include split in build 2013-06-09 00:55:57 +04:00
nightwing
ac9bb727cc revert to simpler range tracking model for now 2013-06-09 00:50:25 +04:00
nightwing
35a9dc5ba1 hide the popup when editor is scrolled 2013-06-09 00:29:21 +04:00
nightwing
b46250ffa1 update markdown test 2013-06-08 18:49:44 +04:00
nightwing
186e6b1b86 use markup.heading for # and heading for the defaultToken
fixes #1457
2013-06-08 18:34:42 +04:00
nightwing
6479dd998f move underline to core styles 2013-06-08 18:26:45 +04:00
nightwing
d4bdfe3300 do not capture alt-gr key 2013-06-08 17:17:48 +04:00
Gabriel Bédard Sicé
6e9653451c Fix #1427 Added plain text mode that does not keep indentation 2013-06-06 15:28:56 -04:00
nightwing
36c166b9ed force using tabs in makefile and snippets modes 2013-06-05 23:35:15 +04:00
nightwing
c223f59e1a add scope to snippets.js files 2013-06-05 23:35:15 +04:00
nightwing
c2b7d1f082 better style for match highlight in popup 2013-06-05 23:35:15 +04:00
nightwing
f6f475747b style improvements 2013-06-05 23:35:15 +04:00
nightwing
a399d1440a cleanup 2013-06-05 23:35:14 +04:00
nightwing
df115ba659 add snippets placeholder files for all languages 2013-06-05 23:35:14 +04:00
nightwing
68ebf08e8c cleanup 2013-06-05 23:35:14 +04:00
nightwing
dc198344d5 revert changes to worker 2013-06-05 23:35:14 +04:00
nightwing
5c1db2dbcc tweak the popup some more 2013-06-05 23:35:14 +04:00
nightwing
7293bb142f fix popup 2013-06-05 23:35:14 +04:00
Garen Torikian
06c10fb934 One more test fix 2013-06-05 23:35:14 +04:00
Garen Torikian
6f17611ebf Fix failing test 2013-06-05 23:35:14 +04:00
Garen Torikian
b811f1dc3f Fix rerender on text insertion 2013-06-05 23:35:14 +04:00
Garen Torikian
cd19233b31 Improve UX, drop dead code 2013-06-05 23:35:13 +04:00
Garen Torikian
69e41521e6 Add autocompletion for language keywords
Conflicts:

	lib/ace/edit_session.js
2013-06-05 23:35:13 +04:00
Garen Torikian
818dba5dba Some added UX behaviors 2013-06-05 23:35:13 +04:00
Garen Torikian
ef19fdbcb5 First pass at Haurtyun UI + C9 doc parsing 2013-06-05 23:35:13 +04:00
Garen Torikian
e43bee07e2 Get rid of my junk 2013-06-05 23:35:13 +04:00
Garen Torikian
dcdcd81584 Fix it up 2013-06-05 23:35:13 +04:00
Garen Torikian
b1322002ab Merge updates 2013-06-05 23:35:13 +04:00
Garen Torikian
5fa87f83e7 Bring in Harutyun's code 2013-06-05 23:35:13 +04:00
nightwing
a640e4ce05 add autocompleter 2013-06-05 23:35:12 +04:00
Garen Torikian
dbca4444bf Implement keybindings and such 2013-06-05 23:35:12 +04:00
Garen Torikian
808bb95538 Let us begin 2013-06-05 23:35:12 +04:00
nightwing
290cf191d5 update documentation 2013-06-04 23:17:35 +04:00
Mostafa Eweda
1e2ab5de00 Merge pull request #1454 from ajaxorg/theme_update
Set background color on the root element instead of scroller
2013-06-03 09:31:28 -07:00
Harutyun Amirjanyan
0c3c29d08a Merge pull request #1456 from buildersbrewery/master
Moved constants URL_REQUEST_DENIED and URL_REQUEST_GRANTED within LSL Mode to correct type group
2013-06-03 09:01:19 -07:00
Builders Brewery
8aed2b0b16 moved not-yet-implemented constants 2013-06-02 18:45:26 +02:00
Builders Brewery
f86f3ecebf minor bug fix 2 2013-06-02 15:42:44 +02:00
Builders Brewery
99826bcbed minor bug fix 2013-06-02 15:36:47 +02:00
Builders Brewery
9c1280fe5a moved URL_REQUEST_DENIED and URL_REQUEST_GRANTED to string constants group 2013-05-31 22:24:40 +02:00
Harutyun Amirjanyan
0a1aceda25 Merge pull request #1432 from buildersbrewery/master
LSL updates
2013-05-30 14:46:52 -07:00
Builders Brewery
78ca93fb16 updated LSL mode
...
2013-05-30 22:42:01 +02:00
Lennart Kats
cb6fce18b3 Merge pull request #1449 from ajaxorg/newclient_update
changes from newclient
2013-05-30 02:49:46 -07:00
nightwing
0c1a22b3db softer colors for indentguides 2013-05-29 21:32:14 +04:00
nightwing
9bed019fee prefer // comment in php 2013-05-29 16:08:57 +04:00
nightwing
968688fb40 move background color to the root element 2013-05-29 00:22:30 +04:00
nightwing
261e6cfc05 fix ruby unindent behavior
fixes #1451
2013-05-28 23:49:38 +04:00
Harutyun Amirjanyan
0e1d74622b Merge pull request #1446 from LivelyKernel/emacs-fixes
Emacs fixes
2013-05-27 13:15:55 -07:00
Harutyun Amirjanyan
d40a9a228f add changes from newclient 2013-05-27 12:27:06 -04:00
Harutyun Amirjanyan
cc27ed4efa add action attribute to changeFold events 2013-05-27 12:12:55 -04:00
Harutyun Amirjanyan
9a170dcd03 do not throw if require.toUrl is missing 2013-05-27 12:08:45 -04:00
Harutyun Amirjanyan
60c882738c fix tag highlighting in velocity mode 2013-05-27 11:51:55 -04:00
Harutyun Amirjanyan
8530e3837a add wrap_with_abbreviation emmet command 2013-05-27 11:49:38 -04:00
Robert Krahn
5c219162cc emacs: push mark of isearch start when isearch successful 2013-05-27 07:35:01 -07:00
Robert Krahn
766b07e330 emacs: less eager pushMark 2013-05-27 07:34:19 -07:00
Robert Krahn
5b2ee4f789 emacs: fix typo 2013-05-26 22:19:35 -07:00
Robert Krahn
b11e88885d emacs: allow count prefixes bigger than 9
example: C-1 C-8 C-f to move 18 chars forward
2013-05-26 22:02:12 -07:00
Robert Krahn
a16380eaea emacs: fix bindKey
register all partial key combos as null commands
to be able to activate key combos with arbitrary length
Example: if keyPart is "C-c C-l t" then "C-c C-l t" will
get command assigned and "C-c" and "C-c C-l" will get
a null command assigned
2013-05-26 21:27:57 -07:00
Robert Krahn
0ea9428cd8 emacs: C-u C-x C-x fix (exchangePointAndMark) 2013-05-26 21:27:57 -07:00
Robert Krahn
e3ea71bb12 emacs: C-u C-space fix (setMark) 2013-05-26 21:27:57 -07:00
Robert Krahn
ab2021bdd8 emacs: fix handling of universalArgument, it sets data.count to 4 2013-05-26 21:27:57 -07:00
Robert Krahn
c084a8a34a emacs: fix copy event handler 2013-05-26 21:27:57 -07:00
Robert Krahn
6b01dde666 emacs: use mark ring instead of single mark 2013-05-26 21:27:56 -07:00
Robert Krahn
353958b98c emacs: exchangePointAndMark uses last mark if selection empty 2013-05-26 21:27:56 -07:00
Robert Krahn
1172f5cb3d emacs: adding mark-ring 2013-05-26 21:27:56 -07:00
Robert Krahn
0a774fbb37 emacs: deactivate mark on kill-ring-save 2013-05-26 21:27:56 -07:00
Robert Krahn
ee76ccad19 emacs: add contents of copy/cut editor events to killring 2013-05-26 21:27:56 -07:00
Robert Krahn
259d48ea1a fix exitMultiSelectMode 2013-05-26 21:27:56 -07:00
Robert Krahn
a7cccae039 fixing emacs multiselect cut/copy/paste 2013-05-26 21:27:56 -07:00
Lennart Kats
e97d7609b9 Merge pull request #1445 from ajaxorg/highlighting/bugfix
Add more modes
2013-05-26 00:32:07 -07:00
nightwing
82ee67d49b add more modes 2013-05-26 11:08:11 +04:00
Harutyun Amirjanyan
908c29502d Merge pull request #1443 from abramadams/master
Added highlighting for cfscript blocks
2013-05-23 06:52:47 -07:00
Abram Adams
eee8d5d37f Added highlighting for cfscript blocks 2013-05-22 15:31:54 -07:00
nightwing
d7501b5b1a fix #1315 '#' symbol and preprocessor directive can be separated with spaces 2013-05-21 22:41:27 +04:00
nightwing
2f5ef19f83 fix #1326 L|UL|ULL highlighting in c++ numbers 2013-05-21 22:41:26 +04:00
Ruben Daniels
133d132c61 Merge pull request #1392 from ajaxorg/toggleComment
try to not remove spaces from indentation when uncommenting
2013-05-21 04:02:53 -07:00
nightwing
a5e7d5d1f1 fix comment toggling on lines with wrong indentation 2013-05-20 19:38:42 +04:00
Lennart Kats
d14888a8a0 Merge pull request #1438 from ajaxorg/keyboard/meta
add support for meta key modifier on windows
2013-05-20 08:06:41 -07:00
Lennart Kats
a461d49809 Merge pull request #1439 from ajaxorg/vim/ctrl_c
vim ctrl-c acts as esc
2013-05-20 08:04:47 -07:00
nightwing
8fe616edb1 add more modes 2013-05-20 18:00:48 +04:00
nightwing
4524faae04 update list of sites using ace 2013-05-18 16:06:22 +04:00
nightwing
4e3506244b [markdown mode] recognize escapes
fixes #1434
2013-05-18 11:02:09 +04:00
nightwing
c0080911e5 vim ctrl-c 2013-05-18 01:38:05 +04:00
Lennart Kats
7ce0ee557b Merge pull request #1415 from ajaxorg/highlighting/bugfix
Highlighting bugfix
2013-05-17 08:39:14 -07:00
Ruben Daniels
62a3954b22 Merge pull request #1430 from ajaxorg/misc
several small bugs
2013-05-15 09:33:22 -07:00
nightwing
40775f68b1 fix config test 2013-05-14 20:12:49 +04:00
nightwing
ebafdd419d fix animated scroll in multiselect mode 2013-05-14 19:18:59 +04:00
nightwing
38c97ee467 do not use Object.create in loader. It runs before fixoldbrowsers.js
fixes #1428
2013-05-14 14:20:39 +04:00
Harutyun Amirjanyan
f68b8b9719 Merge pull request #1425 from danyaPostfactum/misc
Micro bug fixes (IE8 issues and mistypes)
2013-05-12 11:19:05 -07:00
DanyaPostfactum
4f17b1ff09 Mistype fixes 2013-05-12 22:17:02 +10:00
DanyaPostfactum
a2260740ad Minor IE8 fixes 2013-05-12 22:16:33 +10:00
nightwing
127b769c50 fix typo 2013-05-11 16:38:58 +04:00
Lennart Kats
527cb626c5 Merge pull request #1416 from ajaxorg/insertlines
fix insert/removeLines at the document edges
2013-05-11 05:31:57 -07:00
Lennart Kats
ef580c11ed Merge pull request #1409 from ajaxorg/changelog
Update ChangeLog
2013-05-11 05:28:19 -07:00
Lennart Kats
e6255c43f8 Update ChangeLog.txt 2013-05-11 15:27:52 +03:00
nightwing
055a9a5f84 add cursor: pointer; to foldWidgets 2013-05-11 14:33:08 +04:00
nightwing
441dfbad30 fix getOptions 2013-05-11 13:05:25 +04:00
nightwing
9d81d0e6bb fix typo 2013-05-11 13:05:25 +04:00
Harutyun Amirjanyan
8ed6eabc12 Merge pull request #1418 from Joonsoo/master
Dirty check bug fixed
2013-05-10 11:43:26 -07:00
Harutyun Amirjanyan
43e4184fa8 Merge pull request #1421 from ajaxorg/better-marker
add extraStyle parameter to marker layer
2013-05-10 11:41:55 -07:00
Mostafa Eweda
50fbdac285 add extraStyle parameter to marker layer 2013-05-10 11:25:27 +02:00
nightwing
d9aa73792c update ChangeLog 2013-05-09 21:31:34 +04:00
nightwing
a09165c64b fix #1417 vbFalse typo 2013-05-09 19:50:14 +04:00
nightwing
da16d98db6 fix broken link in documentation 2013-05-09 17:38:19 +04:00
nightwing
e84ec9e27a do not autoclose tags inside of strings 2013-05-09 15:22:14 +04:00
nightwing
c4aa28793f fix tests 2013-05-09 15:10:46 +04:00
nightwing
790bc5e87a add erb mode 2013-05-09 15:10:46 +04:00
nightwing
d3cc3ab5aa do not autoclose tags after %#? etc 2013-05-09 15:10:46 +04:00
nightwing
495318ef6b fix #1413 Invalid number value breaks CSS mode 2013-05-09 15:10:46 +04:00
nightwing
d7b62038c0 disable broken r behaviors 2013-05-09 15:10:46 +04:00
nightwing
5e2ee7a45e update tests 2013-05-09 15:10:46 +04:00
nightwing
e0334c6f6c fix embedding of rules with push/pop 2013-05-09 15:10:46 +04:00
nightwing
2adc4c7c96 fix python string highlighting 2013-05-09 15:10:46 +04:00
nightwing
5c9ebf6ce8 insert/removeLines at the document edges create deltas with wrong range 2013-05-09 14:08:22 +04:00
nightwing
c2a50de10e fix tests 2013-05-09 13:47:21 +04:00
nightwing
d7ea9d6a52 try to not remove spaces from indentation when uncommenting 2013-05-09 13:47:21 +04:00
nightwing
59f4c367dd code style 2013-05-09 13:41:18 +04:00
nightwing
5fc0e0b26e do not call unshift in getTextRange 2013-05-09 13:41:18 +04:00
Joonsoo Jeon
f7a4338ae0 dirty counter bug fixed 2013-05-09 16:12:34 +09:00
nightwing
912b379848 add support for meta key modifier on windows 2013-05-08 19:05:12 +04:00
Lennart Kats
4eff803f31 Merge pull request #1411 from ajaxorg/emmet
Emmet bugfix
2013-05-07 04:52:38 -07:00
Harutyun Amirjanyan
8995ac1965 Merge pull request #1410 from Joonsoo/master
Dirty check functionality added into UndoManager
2013-05-07 04:33:44 -07:00
Joonsoo Jeon
2baffd3256 indentation fixed 2013-05-06 10:25:12 +09:00
Joonsoo Jeon
62e31657ca markClean and isClean added into UndoManager 2013-05-03 17:51:13 +09:00
nightwing
a1fdd1bebc allow canceling commands in multi_select mode 2013-05-02 19:37:11 +04:00
nightwing
db4bd7ffd1 display emmet shortcuts in keybindings menu 2013-05-02 19:36:55 +04:00
nightwing
563a38700d fix #1407 Emmet breaks blockindent 2013-05-02 19:36:24 +04:00
nightwing
01224f9509 more sites using ace 2013-05-02 19:36:23 +04:00
nightwing
d300d0402e fix missing var in modelist 2013-05-02 19:32:12 +04:00
Harutyun Amirjanyan
7a6fa8abb5 Merge pull request #1408 from SourceR85/master
Fix errors in demo-files
2013-05-02 08:01:59 -07:00
Steven John Lange
fc67023ff2 Update settings_menu.html
insert ext-settings_menu.js
2013-05-02 05:14:11 +03:00
Steven John Lange
ae3770b38e Update modelist.html 2013-05-02 05:12:49 +03:00
Lennart Kats
28c810bbce Merge pull request #1355 from ajaxorg/highlighting/tmmodes
add several new modes autoconverted from textmate
2013-05-01 06:08:17 -07:00
Lennart Kats
60f49118c0 Merge pull request #1403 from ajaxorg/mini_require
compatibility with architect-build
2013-05-01 06:07:20 -07:00
Lennart Kats
342bb71a3a Merge pull request #1406 from ajaxorg/ime
fix chinese Ime handling on windows
2013-05-01 06:06:37 -07:00
Lennart Kats
cf4a34e7f7 Merge pull request #1405 from ajaxorg/stop_keypress
fix ctrl-tab keybinding on firefox
2013-05-01 06:05:40 -07:00
nightwing
4d2afc9d1c fix ctrl-tab keybinding on firefox 2013-05-01 14:12:30 +04:00
nightwing
71ae26759a fix typo 2013-04-30 23:10:49 +04:00
nightwing
af77bb00f8 increase requirejs waitSeconds 2013-04-30 16:42:38 +04:00
Harutyun Amirjanyan
855426e2f5 Merge pull request #1404 from rgriffith/velocity_mode_lt_operator_improvements
Fixed another regex for keyword.operator to include <
2013-04-30 04:34:56 -07:00
Ryan Griffith
2bad571374 Fixed another regex for keyword.operator to include < 2013-04-30 07:28:20 -04:00
nightwing
a443507f00 add more sites 2013-04-30 13:46:44 +04:00
nightwing
6d4b91f89f linux ime 2013-04-30 13:29:29 +04:00
nightwing
09bc6119d4 fix ime issues 2013-04-30 12:19:04 +04:00
Harutyun Amirjanyan
9ccdc8c484 Merge pull request #1402 from rgriffith/velocity_mode_lt_operator_improvements
Velocity mode less than operator improvements
2013-04-29 14:34:39 -07:00
nightwing
ea31c9fac6 simplify require used in worker 2013-04-30 01:30:44 +04:00
nightwing
23f9f6f849 allow exporting function in mini_require.js 2013-04-30 01:04:00 +04:00
Ryan Griffith
14c897972c Fixed regex for keyword.operator to include <. Adjusted regex for meta.tag due to issue where any < sign is treated as a meta.tag, including conditionals within Velocity. 2013-04-29 16:53:05 -04:00
nightwing
846f712969 cleanup and merge pull #1370 update lsl mode 2013-04-29 23:40:38 +04:00
nightwing
22d6d4132c fix lsl string escapes 2013-04-29 23:38:17 +04:00
Builders Brewery
d15dfadbd3 added "print" to invalid.illegal 2013-04-29 23:20:26 +04:00
Builders Brewery
2a089797c6 added constants from RC MAGNUM 13.04.19.274352
CONTENT_TYPE_ATOM, CONTENT_TYPE_FORM, CONTENT_TYPE_JSON,
CONTENT_TYPE_LLSD, CONTENT_TYPE_RSS, CONTENT_TYPE_XHTML,
CONTENT_TYPE_XML
2013-04-29 23:20:26 +04:00
Builders Brewery
fe46c0fee7 added ATTACH_AVATAR_CENTER and ATTACH_NECK 2013-04-29 23:20:26 +04:00
Builders Brewery
745ee98e4a ... 2013-04-29 23:20:26 +04:00
Builders Brewery
bbd8721a02 trying to fix udf regex for LSL 2013-04-29 23:20:25 +04:00
Builders Brewery
e0e6c38d17 fixed regex to match user defined function in LSL 2013-04-29 23:20:25 +04:00
Builders Brewery
36083cbfe8 unindented back as before 2013-04-29 23:20:25 +04:00
Builders Brewery
a39212bd0d added missing comma and fixed call in lsl.js .....now still have to fix regex line 311 in lsl_highlight_rules.js 2013-04-29 23:20:25 +04:00
Builders Brewery
b1d7fc7557 attempting to fix LSL for Ace 2013-04-29 23:20:25 +04:00
nightwing
f7a17ac67d smaller demo file 2013-04-29 23:19:25 +04:00
Harutyun Amirjanyan
9b8090bf0b Merge pull request #1383 from rgriffith/velocity_mode_improvement
Improvement to HTML comments
2013-04-29 01:58:42 -07:00
Ryan Griffith
f380abf51c Adjusted to comment section tokens based on recommendation. 2013-04-26 14:57:17 -04:00
Harutyun Amirjanyan
d25dcebc12 Merge pull request #1399 from joelmoss/patch-1
Fixed require path in settings menu demo
2013-04-26 05:28:00 -07:00
Joel Moss
5d5f509bf1 Fixed require path in settings menu demo 2013-04-26 14:25:09 +02:00
Harutyun Amirjanyan
ce9adfe4ee Merge pull request #1395 from ajaxorg/fix/searchAll
Fix for replaceAll in a range. Fix for no session ace
2013-04-25 03:07:30 -07:00
Ruben Daniels
9796369696 Fix for replaceAll in a range. Fix for no session ace 2013-04-24 21:12:48 +00:00
Harutyun Amirjanyan
f7d70f4a8c Merge pull request #1387 from rgriffith/folder-widget-css-improvement
Adjust fold-widget visibility based on folding-enabled
2013-04-24 13:07:07 -07:00
Harutyun Amirjanyan
0c4ca1872c Merge pull request #1394 from rgriffith/ie8_xml_folding_fix
Addresses an issue where IE8 does not properly handle the RegExp in _par...
2013-04-24 13:04:33 -07:00
Ryan Griffith
73ad243936 Addresses an issue where IE8 does not properly handle the RegExp in _parseTag, causing folding not to work for the XML mode (or modes that inherit XML). Tested XML mode in IE8/9 and major browsers. Should resolve ajaxorg/ace#1384 2013-04-24 15:23:48 -04:00
Lennart Kats
985566b38d Merge pull request #1391 from ajaxorg/cleanup
Cleanup
2013-04-24 03:49:41 -07:00
Ryan Griffith
365dba6006 Adjust fold-widget visibility based on folding-enabled
Slight adjustment to the visibility of `.ace_fold-widget` so that when the `.ace_folding-enabled` flag is toggled, so is the widget's visibility. This addresses the issue where the left-most edge of the folding widgets may still be visible after disabling code. folding
2013-04-23 10:16:28 -03:00
nightwing
9d453a158d Insert charset utf8 for static highlighter demo
fixes #1385
2013-04-23 09:17:49 +04:00
Ryan Griffith
d0709fea87 Improvement to HTML comments
Fixed issue where HTML comments were not properly ending, causing all code after the start comment tag to appear commented out.
2013-04-22 11:18:24 -03:00
nightwing
796fb32cc2 some coffeescript errors can be detected only with compile 2013-04-20 18:27:06 +04:00
nightwing
6e8989095c add MultiPlay.io to the list of sites 2013-04-20 17:00:30 +04:00
nightwing
12bb135b54 update perf-test.html 2013-04-20 16:57:20 +04:00
nightwing
9dd309469c fix typo in getFontSize 2013-04-20 16:49:34 +04:00
Harutyun Amirjanyan
b85c899755 do not include spaces in clojure symbols 2013-04-19 19:10:56 +04:00
Ruben Daniels
076eeb8cab Merge pull request #1345 from ajaxorg/toggleComment
Toggle comments
2013-04-18 08:48:08 -07:00
Ruben Daniels
ef2b2bd1be Merge pull request #1368 from ajaxorg/multiselect_paste
Fix multiselect copy and paste
2013-04-18 08:47:19 -07:00
nightwing
758f500b4a Merge pull request #1378 update coffeeScript 2013-04-18 18:09:58 +04:00
nightwing
c6e4e4fa1d add more tests 2013-04-18 18:07:14 +04:00
nightwing
4dd3475fd9 pass line information from coffee parseErrors to the worker 2013-04-18 17:31:01 +04:00
nightwing
2f9a6e5ba7 update require and luaparse 2013-04-18 16:52:10 +04:00
nightwing
cf9ef326ae fix modecreator 2013-04-18 16:51:25 +04:00
Michal Srb
5a5439fd05 updated CoffeeScript to 1.6.2 2013-04-18 14:13:17 +02:00
nightwing
03f6c8fda8 tweak clojure symbol highlighting 2013-04-18 10:20:41 +04:00
nightwing
94e919ad82 fix #1372 . in clojure symbols isn't highlighted 2013-04-17 22:20:50 +04:00
nightwing
834d0aee9f update tests 2013-04-17 16:28:59 +04:00
nightwing
35563c5e84 update modelist extension 2013-04-17 16:15:58 +04:00
nightwing
635da1f2ea temporary workaround for tokenizer not working for rules ending with $ 2013-04-17 16:12:44 +04:00
nightwing
b54a00cb4d add ini mode 2013-04-17 15:52:56 +04:00
nightwing
689ebf8b48 highlight last search result when searchbox is focused 2013-04-16 22:24:40 +04:00
nightwing
cc01912250 rename snippets syntax highlighter 2013-04-16 22:23:48 +04:00
nightwing
4a5fe215c4 Merge remote-tracking branch 'remotes/origin/highlighting/tmmodes' into master
Conflicts:
	demo/kitchen-sink/modelist.js
2013-04-16 19:09:00 +04:00
nightwing
62a25b0ce6 fix setting for keybinding 2013-04-15 11:03:44 +04:00
nightwing
63551228ee update styling and clean up demos 2013-04-15 00:19:08 +04:00
nightwing
5894667b41 update code formatting, and general cleanup 2013-04-13 23:07:36 +04:00
nightwing
95f822c6d8 Merge branch modelist 2013-04-13 22:31:44 +04:00
nightwing
919c8221ab Merge branch setting_menu 2013-04-13 22:31:10 +04:00
nightwing
41e1f08dfe Merge remote-tracking branch 'remotes/origin/statusbar' 2013-04-13 22:30:24 +04:00
nightwing
734a5b32f2 Merge remote-tracking branch 'remotes/origin/static_highlighter' 2013-04-13 22:29:34 +04:00
Matthew Kastor
8d0183f397 kitchen_sink & mode_creator using modelist extension
I refactored all requires to point at `ace/ext/modelist` deleted the
build directory and did a full rebuild. In both the kitchen sink and the
mode creator I was able to use the mode lists and see an immediate
reaction in the applications. I think it worked out. :D
2013-04-13 20:55:08 +04:00
Matthew Kastor
9702e8d4d3 change title of modelist demo page 2013-04-13 20:55:08 +04:00
Matthew Kastor
75a55d5efa rename modelist demo 2013-04-13 20:55:08 +04:00
Matthew Kastor
3d222a773a better example code for modelist demo 2013-04-13 20:55:08 +04:00
Matthew Kastor
e306b09232 adds modelist demo 2013-04-13 20:55:08 +04:00
Matthew Kastor
a37b9ac53a adds modelist to extensions
I copied the modelist.js file from the kitchen sink demo and added doc
comments to the exported methods.

This module would be extremely helpful to anyone implementing a menu
system or who wanted to programatically switch rendering modes based on
the file extension of the file loaded into ace. I can think of several
use cases for it already. (1) in the settingsMenu branch. (2) in
supporting theme switching for anyone implementing drag and drop support
for loading files into the editor (3) in supporting theme switching for
sites implementing their own file picker dialogues and loading content
into ace through xmlhttprequest (4) in supporting filebrowser / editor
applications where a server could be set up to display file contents in
an ace editor as users browsed to arbitrary files. (5) etc. etc.

Had I known about it when I began writing the settingsMenu branch I
would have used it.
2013-04-13 20:55:07 +04:00
Matthew Kastor
408b190bb0 refactored settings menu extension 2013-04-13 20:53:41 +04:00
Matthew Kastor
60616deec0 add_editor_menu_options uses themelist to generate theme options 2013-04-13 20:53:41 +04:00
Matthew Kastor
5ea87bd96d themelist consumes themes.js & mimics modelist 2013-04-13 20:53:41 +04:00
Matthew Kastor
2107796de5 autogenerated themes.js during build 2013-04-13 20:53:41 +04:00
Matthew Kastor
dd33d82528 build now generates themes.js
This module simply exports an array of themes available so we can use
it.
2013-04-13 20:53:41 +04:00
Matthew Kastor
47329e944f Merge modelist branch & use it
This branch now depends on the modelist being pulled in as a module. I'm
using the modelist to generate the menu options for switching modes
because it's redundant to have the same massive list in two places.

The modelist module also has some awesome features so I choose it over
my silly list. :D
2013-04-13 20:53:41 +04:00
Matthew Kastor
1a4af9aff9 example code explains extension 2013-04-13 20:52:58 +04:00
nightwing
3adba8eb21 adds demo show_settings_menu
adds keyboard shortcut on init

adds keyboard shortcut on init
2013-04-13 20:52:58 +04:00
Matthew Kastor
7aac105a07 augments Editor.prototype 2013-04-13 20:52:50 +04:00
Matthew Kastor
f5500fefc4 adds demo show_keyboard_shortcuts 2013-04-13 20:52:50 +04:00
Matthew Kastor
d531866663 augments Editor.prototype 2013-04-13 20:52:50 +04:00
Matthew Kastor
b1ac371387 fixes esc event listener removal 2013-04-13 20:52:50 +04:00
nightwing
fb9bc6d3f4 prettifies menu option labels
removes "set" adds space before uppercase letters.

focus handling

focus handling
2013-04-13 20:52:50 +04:00
Matthew Kastor
9e9cdb3c48 removes commands from default commands 2013-04-13 20:52:22 +04:00
Matthew Kastor
0631a708bc removes requires from Editor 2013-04-13 20:49:46 +04:00
Matthew Kastor
b0e496de88 moved utilities to subdirectory 2013-04-13 20:49:46 +04:00
Matthew Kastor
ccae5bd8d5 remove console.log 2013-04-13 20:49:46 +04:00
Matthew Kastor
be52f7316a fix typo 2013-04-13 20:49:46 +04:00
Matthew Kastor
8244231254 adds support for closing menus by pressing esc 2013-04-13 20:49:46 +04:00
Matthew Kastor
0a289d2468 removed left property assignment
When the editor takes up the entire window and the window is only half
the size of my screen, the menus get crunched up horribly.  I'll provide
for closing the overlay by pressing esc in case the overlay's contents
take up the entire screen.

If ace is to be used in very small frames then implementors will need to
provide styling information in css to control how the settings menu
looks.
2013-04-13 20:49:46 +04:00
Matthew Kastor
24a00578c6 removed unnecessary function
since I've moved the functions to the editor and session objects
themselves I can get rid of this.
2013-04-13 20:49:46 +04:00
Matthew Kastor
b0c08dced1 adds setWrapLimit to session 2013-04-13 20:49:45 +04:00
Matthew Kastor
340f004fd0 adds getFontSize to editor 2013-04-13 20:49:45 +04:00
Matthew Kastor
1518a460ae adds description to kb & settings menu methods 2013-04-13 20:49:45 +04:00
Matthew Kastor
f6d1c1167c adds show kb & settings menu to editor 2013-04-13 20:49:45 +04:00
Matthew Kastor
c9f0439cf3 add license block 2013-04-13 20:48:57 +04:00
Matthew Kastor
c695db475a set wrap limit wraps within 20 chars 2013-04-13 20:48:57 +04:00
Matthew Kastor
6b1e90fbc7 fixed position to avoid scrolling away
The overlay menu should remain visible when scrolling a long page.  The
intention is to present information on demand and not leave the menu on
screen. If allowed to scroll away the remaining element could interfere
with the page.
2013-04-13 20:48:57 +04:00
Matthew Kastor
cc4d524a8a prettified settings menu 2013-04-13 20:47:21 +04:00
Matthew Kastor
52a1dffa9f menus will open only 1 at a time per menu. 2013-04-13 20:47:21 +04:00
Matthew Kastor
4ec0a6e706 prettified kb menu 2013-04-13 20:46:24 +04:00
Matthew Kastor
3bca16ac73 fix top margin on kb shortcuts menu 2013-04-13 20:46:24 +04:00
Matthew Kastor
fb7152cb10 prettified generic menu 2013-04-13 20:46:24 +04:00
Matthew Kastor
baaf4dd0b4 Separated logic from presentation, lowercased file names
I pulled the code for generating the menu out into its own module called
overlay_page. I pulled the code for generating a menu, using
overlay_page, out into its own module called show_keyboard_shortcuts.
The logic for getting a list of keyboard shortcuts pertinent to the
current operating system is by itself in the module
get_editor_keyboard_shortcuts. This should make it easy for anyone to
change the appearance of the menu without worrying about breaking the
code which fetches the data.
2013-04-13 20:42:55 +04:00
Matthew Kastor
d4f4758b17 adds keyboard shortcuts menu
I'm not set on the keybinding or the aesthetics of this. please change
them at will. The main goal here is to provide some method to list all
the keyboard shortcuts dynamically. I mean that when new shortcuts are
added they should automatically be put into this menu without anyone
writing any extra code. The menu provides a way for end users to easily
discover the many built in functions accessible through the keyboard.

Admittedly the current keybinding to display this menu is not very
convenient or easily guessed. I like the way that the textarea version
of ace presents a single clickable corner that is easily identified by
users. It would be cool to make this pretty and obvious.
2013-04-13 20:42:08 +04:00
Matthew Kastor
cd2bef9754 clarified comment on createNewEntry 2013-04-13 20:40:06 +04:00
Matthew Kastor
2ea0faf97b fixed typo in comment 2013-04-13 20:40:06 +04:00
Matthew Kastor
1d631b5ca1 Separated logic & presentation, lowercased file names
I lowercased the file names. I've separated the code to generate an
overlay menu out into a module called overlay_page, it is the same code
as is in my other pull request for the keyboard shortcuts menu. It
should be easy enough to change the way it looks and behaves without
worrying about breaking anything. I've pulled code out into a module
called element_generator because it is pretty generic and isn't
concerned with gathering data for the settings menu. The element
generator can be reused and augmented but there is the possibility that
modules depending on it could break. show_settings_menu depends on the
element_generator. As it collects data it generates generic elements and
attaches event listeners to them.  The massive list of options has been
moved into its own module for two reasons (1) it makes maintaining
show_settings_menu much easier and (2) this is the only part of the menu
which has to be updated manually. We may be able to add something to the
build system to automatically generate this module based on which modes
and themes are found to alleviate us from having to remember to add said
options in when new themes and modes are added.
2013-04-13 20:40:06 +04:00
Matthew Kastor
09266196ab adds settings menu to ace
I'm not stuck on the keybinding or aesthetics of this, please change
them at will. All I really want is the ability to display a menu where I
can change the editor's settings from and I want the menu to be smart
enough to automatically know about new settings. This pretty much works
except there isn't a registry for themes and modes so every new theme or
mode has to be added to the internal list by hand...
2013-04-13 20:40:06 +04:00
nightwing
3c46895f8c cleanup 2013-04-13 20:37:47 +04:00
Matthew Kastor
d0d3ca2de8 kitchen sink using statusbar extension
I refactored the kitchen sink to use the statusbar extension, deleted
the build directory, did a full rebuild and it works. :D
2013-04-13 19:50:04 +04:00
Matthew Kastor
2b362a2fa1 changed demo title 2013-04-13 19:50:04 +04:00
Matthew Kastor
43250dd064 adds statusbar demo 2013-04-13 19:50:04 +04:00
Matthew Kastor
603e4d52c0 adds inline style "display: inline-block;" 2013-04-13 19:50:04 +04:00
Matthew Kastor
640c72f44a adds statusbar to extensions
the only thing changed is the statusbar's inline styling has been
removed.
2013-04-13 19:50:04 +04:00
nightwing
8a75cdca13 cleanup 2013-04-13 19:42:14 +04:00
nightwing
978d32eca3 Create client-noconflict.html
Is this the right way to use the static highlighter with the 
noconflict build?

Edit as necessary. This is about as good as I can get it...

loads modules from script tags

makes div visible after highlighting

fixes display (sort of)

codeEl margin & padding 0

editor overflow auto, gutter position relative

replace code element with div

mode can be specified as a string

mode and theme may be specified as strings

This preserves the behavior of this method when specifying mode and
theme as objects. It adds the ability to specify mode and theme as
module paths. When specifying mode and / or theme as a module path you
must provide a callback function. The callback function will receive the
same value as the return value previously returned when specifying mode
and theme as objects.

Good stuff.

multiple elements with different modes and themes

The example shows multiple elements highlighted with different modes and
themes all in the same page. The pre element isn't ideal.

The example shows how to transfer the computed width and height of the
element into its inline style so that it won't dramatically change shape
and disrupt the page once it's had highlighting applied. It would
probably be better to replace the elements entirely and apply sizing
styles to the replacement elements but that isn't always an option.
2013-04-13 19:41:53 +04:00
nightwing
859d5c8cd9 Merge pull request #1365 from wcandillon/master
Add JSONiq mode
2013-04-13 18:11:41 +04:00
William Candillon
e099044630 Add JSONiq mode. 2013-04-13 18:10:01 +04:00
Harutyun Amirjanyan
24e09e8056 Merge pull request #1369 from nguillaumin/properties-mode
Added .properties files mode
2013-04-13 06:35:34 -07:00
Nicolas Guillaumin
8f0b5abb3a Cleanup + fix typo on export 2013-04-13 10:57:16 +10:00
Nicolas Guillaumin
258d00dcff Added .properties files mode 2013-04-13 10:05:39 +10:00
nightwing
fcf3330d66 fix #1027 Eclipse XML bad color 2013-04-12 16:10:48 +04:00
nightwing
7fa644f7c3 multiselect getCopyText should be empty when all ranges are empty 2013-04-12 15:55:24 +04:00
nightwing
f389660100 fix pasting 2 lines in multiselect mode 2013-04-12 15:54:40 +04:00
nightwing
48aa35c081 put cursor at the end of selected line on trippleclick 2013-04-12 15:54:40 +04:00
nightwing
73ad918a6b add batch_file highlighting 2013-04-12 15:27:08 +04:00
Mostafa Eweda
19dd921127 Merge pull request #1364 from ajaxorg/worker
Queue events before sending to the worker
2013-04-11 04:07:12 -07:00
nightwing
886da0d0dc fix setDefaultValue for useWorker 2013-04-09 22:14:30 +04:00
nightwing
13c8ef5f5c update site 2013-04-09 21:41:09 +04:00
Lennart Kats
ba015bb251 Merge pull request #1333 from ajaxorg/ime
Improve ime handling
2013-04-09 06:38:02 -07:00
nightwing
477d381185 do not send deltas to worker synchronously since it is slow and crashes chrome 2013-04-09 16:44:17 +04:00
nightwing
e04b37c062 add cursorStyle option 2013-04-09 14:37:14 +04:00
Harutyun Amirjanyan
5f8f3bf925 Merge pull request #1361 from rgriffith/ie_fix
Removed trailing commas that cause errors in IE
2013-04-08 13:42:31 -07:00
Ryan Griffith
3557eba166 Removed trailing commas that cause errors in IE 2013-04-08 16:29:50 -04:00
Harutyun Amirjanyan
bf4e49668a Merge pull request #1360 from chhochreiner/master
minor tcl mode cleanup
2013-04-08 06:05:41 -07:00
Christoph Hochreiner
bc66204d59 remove not necessary/worng comments and not tcl specific rule for variables (is only valid for the tcl extension xotcl 2013-04-08 14:45:58 +02:00
Harutyun Amirjanyan
5fb95ca184 Merge pull request #1358 from ajaxorg/dart-based-on-c
Based Dart mode on C/C++ mode so that at least the indentation basics
2013-04-08 04:52:55 -07:00
Zef Hemel
712818b49e Removed outdated keywords 2013-04-08 13:48:19 +02:00
Zef Hemel
149bef7051 Fix Dart test 2013-04-08 13:27:51 +02:00
Zef Hemel
6d8c810581 of keyword 2013-04-08 13:24:23 +02:00
Zef Hemel
835f2e3690 Fixed some higlighting rules to match modern Dart. 2013-04-08 13:22:02 +02:00
Zef Hemel
63930b52d1 Based Dart mode on C/C++ mode so that at least the indentation basics
are acceptable (e.g. indentation after curly braces).
2013-04-08 12:13:18 +02:00
nightwing
6c7ea4a2f7 remove whitespace from css during the build 2013-04-06 16:10:39 +04:00
Harutyun Amirjanyan
e0a2d5688c Merge pull request #1350 from rgriffith/snippet_newline_fix
Fix newlines for text files
2013-04-06 05:10:19 -07:00
Harutyun Amirjanyan
251719f85b Merge pull request #1351 from rgriffith/velocity_mode
Add Velocity highlighter
2013-04-06 04:48:37 -07:00
Harutyun Amirjanyan
0f6706f29d Merge pull request #1354 from machee/master
fix php worker bogus error on use keyword
2013-04-06 04:46:18 -07:00
nightwing
2868df4b28 cleanup and fix tests 2013-04-06 15:17:41 +04:00
nightwing
f40cc1c31d fix #510 #{} highlighting for CoffeeScript 2013-04-06 15:00:06 +04:00
nightwing
743aad3ad4 Add AutoHotKey/AutoIT syntax highglight fixes #886 2013-04-06 14:58:47 +04:00
nightwing
ab1ed57d55 remove half working fortran and html_twig 2013-04-06 14:21:42 +04:00
nightwing
73f299d3f0 add demo docs 2013-04-06 14:21:42 +04:00
nightwing
5d63adb2a7 workaround for unsupported regex features 2013-04-06 14:21:42 +04:00
nightwing
03fe8a3576 add several autoconverted modes 2013-04-06 14:21:42 +04:00
Mark Achee
d308803fbe fix php worker bogus error on use keyword 2013-04-06 06:01:04 +02:00
Ryan Griffith
06a74d59dd Slight adjustment to the newline fix
I also had to remove this line to get things to work.
2013-04-05 16:45:20 -03:00
Ryan Griffith
a22dda79fc Added comment settings to add comment shortcut (ctrl+/) 2013-04-05 14:46:53 -04:00
Ryan Griffith
31aede445d Added velocity mode and sample doc to demo 2013-04-05 14:45:22 -04:00
nightwing
538359ccd6 meta scope isn't for styling 2013-04-05 19:29:59 +04:00
nightwing
826105b5e9 make generated statenames nicer 2013-04-05 19:29:59 +04:00
nightwing
a23bdb49a2 workaround for chrome not displaying middle of very long lines 2013-04-05 19:29:58 +04:00
Ryan Griffith
646b0442b6 Fixed matching of single line comments 2013-04-05 10:39:17 -04:00
Ryan Griffith
2463471b39 Add Velocity highlighter 2013-04-05 08:08:23 -04:00
Ryan Griffith
7dcd7c0cb9 Fixing newline character for text files
This addressed an issue where the newlines generated when including snippet files does not contain newline characters, this causes SnippetManager.parseSnippetFile to always return empty.

Instead, of creating actual newlines and a multiline string with \, this adds newline characters.
2013-04-05 08:54:31 -03:00
Lennart Kats
202ecaac90 Merge pull request #1346 from ajaxorg/tmSnippets
snippet bugfix
2013-04-05 00:52:51 -07:00
nightwing
9409ae8090 fix typo 2013-04-04 23:27:26 +04:00
nightwing
c4c308211e do not use split with capturing regex to not break old ie 2013-04-04 23:17:39 +04:00
nightwing
28943dcf1d snippetManager should be lowercase 2013-04-04 22:59:06 +04:00
nightwing
57fd7dabf2 update tests 2013-04-04 10:07:55 +04:00
nightwing
782178ecbe add toggle line comment for css/html 2013-04-02 02:33:31 +04:00
nightwing
5cda3a7be7 add toggleBlockComment ctrl+shift+/ 2013-04-02 01:55:55 +04:00
nightwing
9a59b084cc update lsl test 2013-04-01 20:56:44 +04:00
Harutyun Amirjanyan
83de4e32e7 Merge pull request #1336 from buildersbrewery/master
updated lsl syntaxhighlight
2013-04-01 09:56:05 -07:00
nightwing
ad9f919eed fix toggleComment with blank lines 2013-03-31 20:51:13 +04:00
Builders Brewery
7e9e425f84 added llGetAnimationOverride, llResetAnimationOverride, llSetAnimationOverride 2013-03-30 23:19:27 +01:00
Builders Brewery
f310c09502 added PERMISSION_OVERRIDE_ANIMATIONS 2013-03-30 22:45:49 +01:00
Builders Brewery
1361ee6579 removed a , 2013-03-30 19:31:22 +01:00
Builders Brewery
3681dbeaea added missing , and condensed regex 2013-03-30 19:18:41 +01:00
Builders Brewery
7a6fd89bfc rollback 2013-03-30 18:29:46 +01:00
Builders Brewery
346712c6ca fixed typo from pasting no2 2013-03-30 18:18:37 +01:00
Builders Brewery
eadd4e4b39 fixed typo from pasting 2013-03-30 18:13:32 +01:00
Builders Brewery
66ddb8d25b added left shift, right shift, bitwise xor to keyword.operator and condensed regex match 2013-03-30 18:05:30 +01:00
Builders Brewery
93c57928d3 updated keyword.operator and moved indentation to the left 2013-03-30 17:30:41 +01:00
Lennart Kats
ac1835e54d Merge pull request #1311 from ajaxorg/emmet
Add Emmet extension
2013-03-30 09:17:56 -07:00
nightwing
61155649b9 remove console.log 2013-03-30 19:57:10 +04:00
nightwing
ec9984acbd add link to chocolatejs 2013-03-30 18:27:18 +04:00
nightwing
55af92676f add emmet extension 2013-03-30 18:12:52 +04:00
nightwing
5b6a826383 add divshot to list of sites using ace 2013-03-30 18:10:03 +04:00
nightwing
d92505e1c9 autodetect platform in HashHandler 2013-03-30 18:08:41 +04:00
nightwing
841dbf7890 add EventEmitter.off 2013-03-30 18:07:17 +04:00
nightwing
f531bceabe pass target to eventListener as a second argument 2013-03-30 18:07:17 +04:00
Lennart Kats
5a367bafb3 Merge pull request #1340 from ajaxorg/wrap_bug
fix #1337
2013-03-30 05:21:41 -07:00
nightwing
10bbd842a3 fix test 2013-03-30 16:02:55 +04:00
nightwing
4be0153e2b fix #1337 bad interaction of removeFolds and updateWrapData 2013-03-30 15:47:27 +04:00
nightwing
cf74db8e1d cleanup 2013-03-30 15:46:52 +04:00
Harutyun Amirjanyan
5fd8d7bbc8 Merge pull request #1334 from LivelyKernel/occur-with-isearch
Occur with isearch
2013-03-30 02:53:37 -07:00
Builders Brewery
1cc09de7b7 updated lsl syntax highlight 2013-03-29 17:25:35 +01:00
Robert Krahn
227f500a2c occur+isearch: fixing tests 2013-03-28 14:21:12 -07:00
Robert Krahn
eb25810456 occur+isearch: adding occurisearch command and binding it to Ctrl-o by default 2013-03-28 14:13:26 -07:00
Robert Krahn
e8c8cfeda4 occur+isearch: fixing highlighting for big font sizes 2013-03-28 12:24:37 -07:00
Harutyun Amirjanyan
7ee9300df3 Merge pull request #1332 from akumpf/patch-1
Update Chaos.css to include indent-guide and fold
2013-03-28 11:30:32 -07:00
nightwing
bf34500927 fix #906 can't input chinese in ie9 2013-03-28 21:25:06 +04:00
nightwing
b0a43790b4 do not overlay editor text when ime is active
fixes #1112
2013-03-28 21:25:05 +04:00
nightwing
0f4fd999ee allow delete command only after opening contextmenu
this will break delete from browser edit menu, but it is not as important as ime textinput
  fixes #1325
2013-03-28 21:25:05 +04:00
Adam Kumpf
3d2e291c0c Update Chaos.css to include indent-guide and fold
Add indent guide to theme.
Modify ace_fold to be more subtle (the big inline ace_fold widgets are a bit distracting on this dark theme).
This is true to the original Chaos theme (Space Editor).
2013-03-28 11:12:17 +01:00
Lennart Kats
f118db4560 Merge pull request #1329 from ajaxorg/searchbox
logiQL
2013-03-27 08:41:33 -07:00
nightwing
74a66575f3 restart search after toggling option 2013-03-27 15:41:15 +04:00
nightwing
57cb18fa00 fix typo 2013-03-27 15:41:15 +04:00
nightwing
74f38ffd6a add autoindent after { and brace pairing for logiql 2013-03-27 15:41:15 +04:00
nightwing
41438b75b7 early error on tokenLength/matchCount mismatch 2013-03-27 15:41:15 +04:00
nightwing
7f76f0b81c fix setAutoScrollEditorIntoView and use in demo page 2013-03-27 15:41:15 +04:00
nightwing
dce629169d tweak searchbox options 2013-03-27 15:41:14 +04:00
Matthew Kastor
38a96a2a32 Adds search options to find / find&replace
I use regex searches all the time for finding and replacing text
so I changed the searchbox extension a little bit to do what I want.
I added in the whole word and case sensitive options too. It works
nicely and updates the highlighted bits when the checkboxes change.
2013-03-27 15:41:14 +04:00
Harutyun Amirjanyan
b04a519b9c Merge pull request #1327 from ajaxorg/dont_build_on_install
don't build on install
2013-03-27 04:35:32 -07:00
Fabian Jakobs
7db53313b7 don't build on install 2013-03-26 12:39:45 +00:00
Lennart Kats
dd5c9954db Merge pull request #1192 from ajaxorg/tmSnippets
Add support for TextMate snippets
2013-03-25 11:41:05 -07:00
Ruben Daniels
0d303296fe Merge pull request #1318 from ajaxorg/hotfix/ie8
Hotfix/ie8
2013-03-24 09:35:44 -07:00
Ruben Daniels
91afcc5800 Merge pull request #1323 from ajaxorg/newclient
Newclient
2013-03-24 09:35:25 -07:00
nightwing
5d97f70a4e properly remove old selectionMarkers 2013-03-24 19:29:40 +04:00
nightwing
2d90f50491 properly cleanup multiselect when changing session 2013-03-24 19:29:40 +04:00
nightwing
9cc74437c2 fix theme==undefined in cloud9 splitview 2013-03-24 19:29:40 +04:00
nightwing
339bf10335 fix infinite loop when editor height is 0
fixes #1322
2013-03-24 19:29:40 +04:00
nightwing
771d861bd5 remove styles for occur-highlight from editor.css 2013-03-23 17:47:18 +04:00
nightwing
98b3bded77 Merge pull request #1314
Add Occur mode
2013-03-23 16:25:43 +04:00
nightwing
9d4faf8911 Merge pull request #1293
Incremental search
2013-03-23 16:21:35 +04:00
nightwing
d091abc397 Merge pull request #1277 from h3rb/master
Simply adding 1 more mode for Tiny Mushcode (a common research language like LISP)
2013-03-23 15:55:41 +04:00
nightwing
311e708da3 remove unneeded margin for brackets in terminal.css 2013-03-23 15:48:56 +04:00
h3rb
bac45dd0bb Fixed misnomer
ace_bracket-bad -> ace_bracket-unmatched
2013-03-23 15:33:21 +04:00
h3rb
f7a542a86c Naming / color updates to bracket-related css 2013-03-23 15:30:02 +04:00
h3rb
00c5b8cecc Refinement
Includes proper MUSH substitution/register highlighting
2013-03-23 15:29:49 +04:00
h3rb
7099a2604c Added support to terminal theme for bad/start brace 2013-03-23 15:28:59 +04:00
h3rb
9e3f1e663d Update tmtheme.js
Adding "Terminal" theme support
2013-03-23 15:23:59 +04:00
h3rb
7809bff119 Update mode_creator.js
Adding "Terminal" theme support
2013-03-23 15:23:59 +04:00
h3rb
b059930cba Update perf-test.html
Adding Terminal theme support
2013-03-23 15:23:59 +04:00
h3rb
6e62f2f0a5 Update scrollable-page.html
added terminal theme to "dark"
2013-03-23 15:23:59 +04:00
h3rb
6f6ec76f7b Create terminal.js
Adding new theme "Terminal"
2013-03-23 15:23:59 +04:00
h3rb
1042f2a106 Create terminal.css
Adding new theme "Terminal"
2013-03-23 15:23:59 +04:00
h3rb
c17238765b Update mushcode.js
Typo
2013-03-23 15:23:59 +04:00
h3rb
3637c8d87b Update doclist.js
Modified name of file
2013-03-23 15:23:59 +04:00
h3rb
84f167b828 Create tinymush.mc
Example MUSHcode
2013-03-23 15:23:58 +04:00
h3rb
cb3abb8257 Update doclist.js
Added to docs as per ace docs for TinyMUSH code hilighter
2013-03-23 15:23:58 +04:00
h3rb
69ea968649 Update modelist.js
Added MUSHCode to ModeList in Kitchensink
2013-03-23 15:23:58 +04:00
h3rb
f5cd45b925 Create mushcode.js
Current borrows off the python folding rules.  Folding doesn't really help mushcode unless you are using a code minimizer.
2013-03-23 15:22:57 +04:00
h3rb
fad204c007 Create mushcode_high_rules.js
Adding support for TinyMUSH
2013-03-23 15:22:57 +04:00
h3rb
7efe8c933b Update modelist.js
Included MUSHcode in Mode List
2013-03-23 15:22:57 +04:00
Harutyun Amirjanyan
86dda8b5a5 Merge pull request #1321 from matthewkastor/patch-1
fixed getShowPrintMargin
2013-03-22 01:14:41 -07:00
Matthew Kastor
b8607e861c fixed getSowPrintMargin
getShowPrintMargin always returned undefined.
2013-03-22 05:08:29 -03:00
nightwing
691b52cd92 remove trailing commas 2013-03-21 23:50:36 +04:00
nightwing
dda65a5585 do not use uppercase in file names
mend
2013-03-20 18:43:09 +04:00
nightwing
a3de845615 fix Tokenizer.createSplitterRegexp and add tests
fixes #1317
2013-03-20 11:44:32 +04:00
nightwing
e7fa7eb390 do not merge newLine tokens 2013-03-20 10:48:08 +04:00
nightwing
f9ed205557 add a way to unregister snippets 2013-03-20 02:38:57 +04:00
nightwing
19ea0fe979 add snippet editor to the demo 2013-03-19 18:41:41 +04:00
nightwing
4b3d5fd52b remove unchecked for-in loop from detectIndentation 2013-03-19 16:11:50 +04:00
nightwing
d97de5c149 use delayedCall instead of setTimeout 2013-03-18 21:54:39 +04:00
nightwing
3a781ed2c2 small cleanup 2013-03-18 17:01:10 +04:00
nightwing
336e30c62d implement linked tabstops 2013-03-18 13:57:20 +04:00
Mostafa Eweda
cc1cee2c23 Merge pull request #1312 from ajaxorg/detectIndents
add addon for whitespace manipulation
2013-03-18 00:53:20 -07:00
nightwing
cc7c023e7a remove unnecessary comparison with second match 2013-03-18 11:06:42 +04:00
nightwing
e3c001b79f fix tests 2013-03-18 10:33:16 +04:00
nightwing
47ba638f4b fix formatstrings 2013-03-18 10:07:21 +04:00
Robert Krahn
b974de5e0a [occur] removing debug code 2013-03-17 19:08:44 -07:00
Robert Krahn
5d28dbfb44 [occur] keep highlights when exiting recursive occur session 2013-03-17 19:06:04 -07:00
Robert Krahn
d75845f3aa [occur] fixing recursive occurs 2013-03-17 19:06:04 -07:00
Robert Krahn
96bca7ed95 [occur] proper session replacement 2013-03-17 19:06:03 -07:00
Robert Krahn
4b0b579bf4 [occur] towards better occur session display 2013-03-17 19:06:03 -07:00
Robert Krahn
6f68042545 [occur] highlighting occur search term in occur mode 2013-03-17 19:05:46 -07:00
Robert Krahn
f351c9de38 [occur] allowing other commands 2013-03-17 19:05:05 -07:00
Robert Krahn
fe3e92a3f9 fix for setReadOnly 2013-03-17 19:05:05 -07:00
Robert Krahn
313c4f77f7 [occur] cleanup 2013-03-17 19:05:05 -07:00
Robert Krahn
204e6b5ab0 [occur] entering and exiting occur: position is translated 2013-03-17 19:05:05 -07:00
Robert Krahn
1483264033 [occur] options fix 2013-03-17 19:05:05 -07:00
Robert Krahn
ecf258f2a0 oop.mixin returns object 2013-03-17 19:05:04 -07:00
Robert Krahn
0aee413754 [occur] make occur doc react to keyboard evts / highlight it 2013-03-17 19:05:04 -07:00
Robert Krahn
8102b6579f [occur] fixing occur lines 2013-03-17 19:05:04 -07:00
Robert Krahn
7f1e926f3c [occur] highlighting occur doc 2013-03-17 19:05:04 -07:00
Robert Krahn
2ba388ed04 [occur] command cleanup 2013-03-17 19:05:04 -07:00
Robert Krahn
887aa24ceb [occur] starting with simple occur functionality 2013-03-17 19:05:04 -07:00
Robert Krahn
69b125db10 [incremental search] isearch highlight cleanup 2013-03-17 17:38:33 -07:00
Mostafa Eweda
8c2e30db8d Merge pull request #1313 from ajaxorg/searchbox
fix #1309
2013-03-17 12:49:52 -07:00
nightwing
943e690bf6 bugfix 2013-03-17 21:04:31 +04:00
nightwing
f87f542c8e use ace/tokenizer for parsing snippets 2013-03-17 21:03:16 +04:00
nightwing
3d43f42f8a more work on snippet manager 2013-03-17 21:03:15 +04:00
nightwing
d16daddc5e add snipmate snippets 2013-03-17 21:03:15 +04:00
nightwing
b8eb5a1fec add support for TextMate snippets 2013-03-17 21:03:14 +04:00
nightwing
485b243902 remove one letter names from list of ruby builtinFunctions 2013-03-17 21:01:40 +04:00
nightwing
84b130acdb add whitespace addon 2013-03-17 19:51:20 +04:00
Robert Krahn
a11c06a589 [incremental search] using showCommandLine() 2013-03-17 06:22:50 -07:00
Robert Krahn
236a1e5f7b [incremental search] cleaner render update 2013-03-17 06:10:32 -07:00
Robert Krahn
832d30c97c [incremental search] fixing status-message-remove-last-char bug 2013-03-17 06:04:19 -07:00
Robert Krahn
9f7cfde308 [incremental search] moving emacs specific code to emacs.js 2013-03-17 05:52:20 -07:00
Robert Krahn
e5fc2ea853 [incremental search] cleanup && fixing module dependencies 2013-03-17 04:59:18 -07:00
Robert Krahn
5cc2c50ebb [incremental search] emacs uses isearch by default 2013-03-17 04:43:34 -07:00
Robert Krahn
569563aa5f [incremental search] quit isearch on mousedown 2013-03-17 04:43:34 -07:00
Robert Krahn
0bbfdafec3 remove debug code 2013-03-17 04:43:34 -07:00
Robert Krahn
6fcebcf1e9 [incremental search] fix for space 2013-03-17 04:43:34 -07:00
Robert Krahn
116e42c29a [incremental search] adding fix for handleKeyboard from @nightwing 2013-03-17 04:43:34 -07:00
Robert Krahn
f6ba62083e [incremental search] fixing require in test for async 2013-03-17 04:43:33 -07:00
Robert Krahn
20ff66cf04 [incremental search] using dom.importCssString 2013-03-17 04:43:33 -07:00
Robert Krahn
724193dcbc [incremental search] fixing when / when not selection should be extended 2013-03-17 04:43:33 -07:00
Robert Krahn
1daaeb3a79 [incremental search] polymorphic setup invocation for keyboard handlers 2013-03-17 04:43:33 -07:00
Robert Krahn
438e3c985c [incremental search] oops, forgot to add isearch commands 2013-03-17 04:43:33 -07:00
Robert Krahn
6141a63ba3 [incremental search] cleanup 2013-03-17 04:43:33 -07:00
Robert Krahn
5b0c216580 [incremental search] style patch for better highlights 2013-03-17 04:43:33 -07:00
Robert Krahn
8a62ad8be0 [incremental search] extending kitchen sink to use isearch 2013-03-17 04:43:33 -07:00
Robert Krahn
4d09567bc0 [incremental search] adding config option for enabling/disabling it 2013-03-17 04:43:33 -07:00
Robert Krahn
6f68392f67 emacs key handler has a flag for making it recognizable 2013-03-17 04:43:32 -07:00
Robert Krahn
eab7df5a3d [incremental search] cleaning up keyboard handling 2013-03-17 04:43:32 -07:00
Robert Krahn
35a0066965 [incremental search] disable other keyboard handlers 2013-03-17 04:43:32 -07:00
Robert Krahn
2faf912234 [incremental search] renderer update for highlight markers 2013-03-17 04:43:32 -07:00
Robert Krahn
d314374a60 [incremental search] test fix 2013-03-17 04:43:32 -07:00
Robert Krahn
ed9713df3d [incremental search] don't use selection ranges for marking finds 2013-03-17 04:43:32 -07:00
Robert Krahn
4708bac758 [incremental search] properly forward/backward wrapping on same term 2013-03-17 04:43:32 -07:00
Robert Krahn
901585024b [incremental search] refining forward/backward behavior 2013-03-17 04:43:32 -07:00
Robert Krahn
1423893c3b [incremental search] refining forward/backward behavior 2013-03-17 04:43:32 -07:00
Robert Krahn
d6be35e8e1 [incremental search] forward / backward movement 2013-03-17 04:43:31 -07:00
Robert Krahn
3e6a036995 [incremental search] adding basic functionality 2013-03-17 04:43:31 -07:00
Harutyun Amirjanyan
cf8aaa43fa Merge pull request #1310 from LivelyKernel/default-keyboard-handler-fix
Default keyboard handler fix
2013-03-17 03:14:37 -07:00
Robert Krahn
c59d55418d fix for setKeyboardHandler bug introduced in 8634f26 2013-03-16 18:02:28 -07:00
Robert Krahn
fa0af80d74 [emacs keys] don't error when command cannot be found 2013-03-16 18:01:16 -07:00
nightwing
243e95f76e add Command-G to ext-searchbox fixes #1309 2013-03-16 01:50:49 +04:00
Ruben Daniels
b5a5d327de Merge pull request #1244 from ajaxorg/cmdLine
VIM mode. Fix count handling for dd yy p P
2013-03-15 10:17:01 -07:00
Ruben Daniels
d75b97c108 Merge pull request #1291 from ajaxorg/worker
Add lua worker and update require.js, csshint
2013-03-15 10:01:49 -07:00
Lennart Kats
9c20f24a1b Merge pull request #1306 from ajaxorg/highlighting/logicblox
add tests for LogiQL mode
2013-03-15 02:18:42 -07:00
Harutyun Amirjanyan
312d36c11d Merge pull request #1305 from superchris/master
Improved auto-indent and dedent for ruby, now with test coverage
2013-03-14 10:41:53 -07:00
nightwing
e69b6e37f2 add tests for LogiQL mode 2013-03-14 21:33:20 +04:00
Ruben Daniels
9696c1f9b3 Merge pull request #1304 from ajaxorg/options
Add missing options
2013-03-14 09:32:23 -07:00
nightwing
82f496a11f add wrap: printMargin 2013-03-14 19:28:32 +04:00
nightwing
b0338c15b4 do not highlight dots without arrows in logicql 2013-03-14 17:30:19 +04:00
nightwing
2d28259dff update build submodule 2013-03-14 17:14:54 +04:00
nightwing
2adb8000f5 fold on click instead of mousedown
prevents button flickering on chrome
2013-03-14 16:58:26 +04:00
nightwing
b61ae38c14 add missing options 2013-03-14 16:54:07 +04:00
nightwing
0ad64ff062 fix p without count 2013-03-13 22:41:46 +04:00
Garen Torikian
bbb577bdeb Merge pull request #1299 from fiveminuteargument/master
Typo fix
2013-03-13 10:58:58 -07:00
Harutyun Amirjanyan
1296cefd23 Merge pull request #1301 from ajaxorg/fix-django-header
Fix django.js module header
2013-03-13 09:32:36 -07:00
Lennart Kats
67297585d6 Fix django.js module header 2013-03-13 17:12:48 +01:00
Bobby Jack
9e9063a4bd Typo
Remove 'i' from 'showInvisibiles'
2013-03-13 11:15:11 +00:00
Bobby Jack
d6004d7a31 Typo
Removed extra 'i' from 'invisibiles'
2013-03-13 00:14:40 +00:00
nightwing
fd2191e76e rename LogicQL->LogiQL 2013-03-12 19:43:16 +04:00
Lennart Kats
505d089767 Merge pull request #1288 from ajaxorg/spellcheck
Add extension for enabling spellchecking from contextmenu
2013-03-12 08:35:29 -07:00
Lennart Kats
f16d0dc1d3 Merge pull request #1298 from ajaxorg/highlighting/logicblox
Highlighting logicblox and some cleanup
2013-03-12 08:31:27 -07:00
nightwing
0895601b7f fix typo 2013-03-12 19:20:18 +04:00
Chris Nelson
b78d625926 Merge branch 'master' of https://github.com/superchris/ace 2013-03-12 11:19:11 -04:00
nightwing
ce34f235b8 add highlighting of matching -> . 2013-03-12 19:13:38 +04:00
nightwing
137199bfe7 add autoIndent for LogicQL 2013-03-12 18:22:16 +04:00
Chris Nelson
aed9e836ec better autoindenting and dedenting for ruby 2013-03-12 10:21:22 -04:00
nightwing
03b9591313 cleanup $getIndent 2013-03-12 16:46:47 +04:00
nightwing
6d7e9e263d add demo for livescript 2013-03-12 16:44:53 +04:00
nightwing
35c239d280 rename LogicBlox to LogicQL 2013-03-12 13:24:32 +04:00
nightwing
49aa5a5409 fix highlighting of LogicBlox numbers 2013-03-12 13:16:55 +04:00
Harutyun Amirjanyan
643b4fdbd5 Merge pull request #1296 from wcandillon/master
XQuery Lexer Improvements
2013-03-11 23:28:10 -07:00
Harutyun Amirjanyan
ffcbc33182 Merge pull request #1297 from nguillaumin/fix-replace-submit
Prevent search/replace controls to submit the container form
2013-03-11 23:18:42 -07:00
nguillaumin
3ddc810a60 Prevent search/replace controls to submit the container form
The search/replace buttons are seen as "submit" type because the type attribute
is not specified. If ACE is embedded within a form (between <form>...</form>)
clicking on one of these button will submit the outer form.

Setting search/replace buttons type to "button" prevents the outer form to be
submitted.
2013-03-12 15:36:50 +11:00
William Candillon
b2cb4b344f Fix bugs in XQuery lexer. Add safeguard to avoid infinite loop in the XQuery lexer. 2013-03-11 18:35:22 -07:00
nightwing
d24c853f88 fix bug with suggestions differing only by first letter 2013-03-10 19:26:28 +04:00
nightwing
bbdf74261c add worker for lua 2013-03-10 18:04:54 +04:00
nightwing
78e6200e51 update csslint 2013-03-10 18:01:16 +04:00
nightwing
91b42b43d3 update require.js and fix toUrl call 2013-03-10 17:36:12 +04:00
Harutyun Amirjanyan
212214dfad Merge pull request #1289 from nguillaumin/freemarker-mode
Added mode for FreeMarker Java template engine
2013-03-10 05:57:02 -07:00
Lennart Kats
4ab6cab5d9 Merge pull request #1274 from ajaxorg/folding
preserve folds when dragging or moving lines
2013-03-10 04:27:59 -07:00
Nicolas Guillaumin
81e8a582a4 Added mode for FreeMarker Java template engine 2013-03-10 17:06:13 +11:00
nightwing
5fa2af1991 fix #1286 ibus Chinese input issue 2013-03-09 19:11:07 +04:00
nightwing
8634f2661d update emacs mode 2013-03-09 18:55:01 +04:00
nightwing
2eabebccaa fix r+enter, add ,; 2013-03-09 17:18:20 +04:00
Harutyun Amirjanyan
3fdfb76797 remove accidental global in operators.js 2013-03-09 17:18:19 +04:00
nightwing
8bd7d192d1 add :/? commands to vim mode 2013-03-09 17:18:19 +04:00
nightwing
901f598b20 fix count handling for p and P 2013-03-09 17:18:19 +04:00
nightwing
03ef921536 fix count handling for dd and yy 2013-03-09 17:18:18 +04:00
nightwing
f7a0e1901e LaTeX mode: do not include opening brace in folds 2013-03-09 01:15:20 +04:00
Lennart Kats
614a0b57d1 Merge pull request #1275 from ajaxorg/dnd
fix editor getting stuck in drag mode
2013-03-08 06:22:42 -08:00
Lennart Kats
c05016d7b7 Merge pull request #1276 from ajaxorg/higlighting/onMatch
restore old behavior of token and add onMatch. fixes #1269
2013-03-08 03:27:51 -08:00
Harutyun Amirjanyan
1e243855a7 Merge pull request #1284 from pthulin/searchbox-issues
Fix bug with searchbox keyboard handler
2013-03-06 22:46:25 -08:00
Per Thulin
bcf9c0410f Fix bug with searchbox keyboard handler
This typo caused a bug where ESC did not leave the Vim INSERT mode.
2013-03-07 00:32:54 +01:00
nightwing
5d6bc3a75d add highlighting and folding for POD documentation 2013-03-06 20:33:40 +04:00
nightwing
2fc8ffcc38 add highlighting for LogicBlox 2013-03-06 20:33:40 +04:00
nightwing
bc7d8a2ab2 make createSplitterRegexp more robust 2013-03-06 20:33:40 +04:00
nightwing
6c5ab388cf fix lua comment folding 2013-03-06 20:33:40 +04:00
Garen Torikian
031b3b534b Merge pull request #1281 from ajaxorg/fix/double_tab
Fix double tab
2013-03-05 13:26:46 -08:00
nightwing
dbab5f9210 fix #956 Double tap on trackpad doesn't select word 2013-03-05 00:17:56 +04:00
nightwing
01b7c4a866 do not throw error for key-chains (e.g Ctrl-B Command-Up) 2013-03-05 00:07:33 +04:00
nightwing
c653abf969 add link to slimtext 2013-03-04 18:24:39 +04:00
nightwing
f514330729 add extension for enabling spellchecking from contextmenu 2013-03-04 11:24:52 +04:00
nightwing
1a4fb3ffcf update tests since move lines up/down does not modify selection anymore 2013-03-03 16:40:24 +04:00
nightwing
f6d88bc10c fix move lines with multiple cursors 2013-03-03 16:20:14 +04:00
nightwing
917420636b add multiSelectAction "forEachLine" 2013-03-03 14:48:36 +04:00
Harutyun Amirjanyan
8d1284ddfa Merge pull request #1279 from wcandillon/master
Add missing XQuery keywords in tokenizer
2013-03-02 05:49:50 -08:00
William Candillon
e9850ad3bd Add missing XQuery keywords. 2013-03-02 14:28:39 +01:00
nightwing
a0e1204ff1 {,5} isn't js regexp a quantifier 2013-03-02 01:23:31 +04:00
nightwing
59713742bc add codebender and debuggex 2013-03-01 23:13:22 +04:00
nightwing
7960652010 restore old behavior of token and add onMatch. fixes #1269 2013-03-01 21:28:10 +04:00
nightwing
1b21841dba make foldAll faster 2013-03-01 16:57:38 +04:00
nightwing
4e82a96353 fix nested folds 2013-03-01 16:57:37 +04:00
nightwing
6f7a33e39b allow multiple selections with shared edges 2013-03-01 16:57:37 +04:00
nightwing
7eeb988f87 cleanup 2013-03-01 16:57:37 +04:00
nightwing
a9dbdaebb4 keep folds while dragging text inside the editor 2013-03-01 16:57:36 +04:00
nightwing
63ce45752c allow toggling fold widget when editor isn't focused 2013-03-01 16:57:36 +04:00
nightwing
43854d7a35 fix moving lines with folds 2013-03-01 16:57:36 +04:00
nightwing
bf2015bf7e cleanup 2013-03-01 16:57:20 +04:00
nightwing
10ab6c3779 modify navigateUp/Down behavior only if selection is multiline 2013-03-01 15:58:04 +04:00
nightwing
af8149098c fix name handling in bindkey 2013-03-01 15:32:17 +04:00
nightwing
5f8fc32dbc fix editor getting stuck in drag mode 2013-03-01 15:26:34 +04:00
Lennart Kats
504faad85d Merge pull request #1272 from ajaxorg/virtual_renderer
fix #1266: Scroller is collapsed when ace initialized with empty value
2013-02-28 08:41:26 -08:00
nightwing
7f85b2584d restore defferedCall 2013-02-28 20:13:12 +04:00
nightwing
9ab5d50e0e tweak mode converter 2013-02-28 14:03:14 +04:00
nightwing
d31110e7ca add highlighting for new and :: in php mode 2013-02-28 14:02:02 +04:00
nightwing
328f0cb347 add more tests for ruby highlighting 2013-02-28 12:24:19 +04:00
nightwing
3dcfc56a40 fix #1250: remove obsolete documentation for loadMode event 2013-02-27 11:50:11 +04:00
nightwing
402cdad04b fix #1266: Scroller is collapsed when ace initialized with empty value 2013-02-27 11:39:47 +04:00
Harutyun Amirjanyan
ad1e74017b Merge pull request #1254 from nemurimasu/master
LSL support
2013-02-25 09:53:57 -08:00
Harutyun Amirjanyan
dc5db8b859 Merge pull request #1268 from wcandillon/master
XQuery Mode bug fixes.
2013-02-25 09:35:50 -08:00
William Candillon
b0504015ee Remove unused event handler. 2013-02-25 18:27:50 +01:00
William Candillon
78a67e95a7 Fixed autoclosing tag behaviour in XQuery. 2013-02-25 17:08:33 +01:00
William Candillon
d6b26632eb Fix lexer bug. 2013-02-25 16:00:12 +01:00
William Candillon
148f4dc8c4 Improvements in the XQuery parse tree handler API. 2013-02-25 15:59:33 +01:00
William Candillon
5d899eed55 Fix bug with XQuery comment regexp for syntax highlighter. 2013-02-25 15:58:16 +01:00
William Candillon
53c83a79d5 Fix parser bug with JSON items. Refactor grouping variable ebnf rule according to the latest W3C spec. 2013-02-25 15:56:51 +01:00
William Candillon
aea9a21bd6 Fix bug with desynchronizing in the XQuery highlighter. 2013-02-25 15:55:29 +01:00
Garen Torikian
45f19c76b8 Add CSON as permitted type 2013-02-24 23:35:33 -08:00
Harutyun Amirjanyan
fe4a01b1bc Merge pull request #1267 from ajaxorg/mode/toml
Add TOML support
2013-02-24 13:54:00 -08:00
nightwing
9bfdcd4104 highlight escaped characters in strings 2013-02-25 01:52:49 +04:00
Garen Torikian
7f90df40b2 Add TOML JSON test 2013-02-24 12:55:07 -08:00
Garen Torikian
068fee994b Fix up highlight rules 2013-02-24 12:54:17 -08:00
Garen Torikian
f2e523b0b4 Initial addition of toml files 2013-02-24 12:46:32 -08:00
nightwing
b4e9790763 fix up/down arrow handling when selection is present 2013-02-24 12:14:53 +04:00
Mostafa Eweda
1b8fb10e50 Merge pull request #1260 from ajaxorg/toggleComment
Improve toggleCommentLines and make it faster
2013-02-23 06:03:44 -08:00
Mostafa Eweda
0cff85920e Merge pull request #1265 from ajaxorg/miscbugfix
Miscbugfix
2013-02-23 05:47:15 -08:00
nightwing
d783a77bc9 fix #1242: session.setMode() doesn't always work in IE10
makes net.loadScript to work same way as jQuery.getScript
2013-02-23 14:05:17 +04:00
nightwing
1ba09e1a84 fix * highlighting in markdown lists 2013-02-23 13:09:14 +04:00
nightwing
715b397976 add BootTheme logo 2013-02-22 20:54:50 +04:00
nightwing
f2d6d7d6c9 Merge pull request #1237 from danyaPostfactum/miscfixes
classList usage in dom.{add|remove|toggle}CssClass + minor changes
2013-02-22 18:40:50 +04:00
Harutyun Amirjanyan
a7544b444b Merge pull request #1152 from ajaxorg/feature/elastictabstops
[wip] Feature/elastictabstops
2013-02-22 04:40:52 -08:00
nightwing
e6fd9dc977 move elastic_tabstops into ext to automatically include in build 2013-02-22 16:39:45 +04:00
nightwing
b29dc7c49e fix undefined errors when there is no tabstop cell 2013-02-22 16:18:00 +04:00
nightwing
04f06ebefe use config defineOptions 2013-02-22 16:17:30 +04:00
nightwing
1228b2d30d remove traces of elastic tabstops from editor.js 2013-02-22 16:17:30 +04:00
Garen Torikian
3d0f30c36d Start addressing comments 2013-02-22 16:17:30 +04:00
Garen Torikian
9efccbb776 Uhh actually commit fix 2013-02-22 16:17:29 +04:00
Garen Torikian
face772865 Yesss fix positional bug 2013-02-22 16:17:29 +04:00
Garen Torikian
6e1398273c Turn into separate plugin 2013-02-22 16:17:29 +04:00
Garen Torikian
d54921fcc9 Remove cursor propogation 2013-02-22 16:16:35 +04:00
Garen Torikian
4d94636247 Make a better multipler 2013-02-22 16:16:34 +04:00
Garen Torikian
148f7cc0ab Working implementation 2013-02-22 16:16:34 +04:00
Garen Torikian
b63b84292a Save state 2013-02-22 16:16:34 +04:00
Garen Torikian
18d12d5375 Hell yes, get all the Python implementation out of the way 2013-02-22 16:16:33 +04:00
Garen Torikian
cb5a8a4be4 Stash 2013-02-22 16:16:33 +04:00
Garen Torikian
9dc94741a6 Stash 2013-02-22 16:16:33 +04:00
Garen Torikian
cf079109d7 Stash 2013-02-22 16:16:33 +04:00
Lennart Kats
92786afa7c Merge pull request #1240 from ajaxorg/textarea
make ACE work better as a textarea replacement.
2013-02-22 03:45:58 -08:00
Lennart Kats
7d7867c149 Merge pull request #1255 from ajaxorg/uiworker
Uiworker
2013-02-22 03:40:39 -08:00
nightwing
1a9686c6b7 fix contextmenu for editor with border 2013-02-22 14:22:52 +04:00
nightwing
2f55065e84 fix #1239 on('changeScrollTop') argument is an object instead of number 2013-02-22 14:22:51 +04:00
nightwing
c6ba1957aa add a way for disabling AutoScrollEditorIntoView 2013-02-22 14:22:29 +04:00
nightwing
bd6dda68f0 Issue #1232: Scroll editor into browser view on cursor movement 2013-02-22 14:22:27 +04:00
nightwing
3cbb8dda55 when text is wrapped highlight full gutter row and screen row 2013-02-22 14:22:25 +04:00
nightwing
29d9737b4c add beforeRender and after render events 2013-02-22 14:22:24 +04:00
nightwing
72eccd5283 fix typo in fold_handler 2013-02-22 14:22:22 +04:00
nightwing
83cf35e7ea move textarea and gutter-line-highlight to main cursor 2013-02-22 14:22:20 +04:00
nightwing
ed7750e70e improve MouseWheel behavior 2013-02-22 14:22:19 +04:00
nightwing
d8cfb0687d add afterExec event 2013-02-22 14:22:17 +04:00
nightwing
911cbb3bfb improve event_emitter
- add once
- _signal = fast _emit without side effects (preventdefault)
- capturing argument for addListener
2013-02-22 14:22:14 +04:00
nightwing
f7e17a7c38 Merge pull request #1261 from LivelyKernel/fix-onPaste-command-multiselect
Fix onPaste when it is used in a command and multiselect is active
2013-02-21 11:08:29 +04:00
Harutyun Amirjanyan
3788e83a0c Merge pull request #1262 from LivelyKernel/emacs-improvements
Emacs improvements
2013-02-20 21:54:13 -08:00
Mostafa Eweda
2c2156cc10 Merge pull request #1263 from ajaxorg/fix-100pct-cpu
Restore old labeled break semantics
2013-02-20 09:48:04 -08:00
Lennart Kats
b815db63cd Restore old labeled break semantics 2013-02-20 18:31:21 +01:00
nightwing
f4b7fcc77d fix typo in gutterLineHighlight option setter 2013-02-20 11:33:46 +04:00
Robert Krahn
241d44f0b9 adding tests for emacs handler 2013-02-19 17:23:15 -08:00
Robert Krahn
a82fcd0dc2 comments for emacs handleKeyboard 2013-02-19 15:26:58 -08:00
Robert Krahn
9fd93a5e37 adding command key to emacs keyhandler.
usage:
keyHandler.bindKey("CMD-g": "someNewCommand")
2013-02-19 15:20:11 -08:00
Robert Krahn
50a6bd21af add platform attribute to emacs handler to allow platform-specific keybindings
usage like:
editor.getKeyboardHandler().addCommand({
    name: "...",
    bindKey: {win: "...", mac: "..."},
    exec: function(e) { ... }
});
2013-02-19 15:15:03 -08:00
Robert Krahn
fa1a88eb7f emacs: adding missing keyboardQuit command 2013-02-19 12:26:37 -08:00
Robert Krahn
c76aed967f emacs code cleanup 2013-02-19 12:26:05 -08:00
Robert Krahn
53a2f12128 cleaning up trailing whitespace 2013-02-19 12:18:43 -08:00
nightwing
91ed9f336a add aceview to the list of sites using ace 2013-02-19 16:06:06 +04:00
Robert Krahn
3604513a60 fixing onPaste in command with multiselect 2013-02-18 23:38:44 -08:00
Robert Krahn
8b9771fef9 adding test to reproduce onPaste-coammnd-multiselect error 2013-02-18 23:38:17 -08:00
Robert Krahn
ac1b5f4f37 removing trailing whitespace 2013-02-18 23:37:53 -08:00
nightwing
ac3a7e2bbb Revert "Remove CLA info"
This reverts commit 086888ea66.
2013-02-18 22:40:46 +04:00
nightwing
2818ccdabb fix failing tests 2013-02-18 17:32:45 +04:00
nightwing
bcf02a6671 remove remaining uses of deferredCall 2013-02-18 17:01:25 +04:00
nightwing
95257a9be5 do not call splice from resetRowCache unnecessarily 2013-02-18 17:01:25 +04:00
nightwing
f76a4c5884 fix alt-shift click 2013-02-18 17:01:24 +04:00
nightwing
09e753941f range.clone in getFoldsInRange is slow 2013-02-18 17:01:24 +04:00
nightwing
e71fd47153 use general toggleCommentLines for all modes 2013-02-18 17:01:24 +04:00
nightwing
528a103149 change toggleCommentLines behavior to match sublime text 2013-02-18 17:01:23 +04:00
nightwing
b350fe65a4 sometimes editor is blank on ie10 2013-02-18 17:01:23 +04:00
nightwing
61b0aa944b do not modify string split on chrome 2013-02-18 17:01:23 +04:00
nightwing
d1cbeabf6c add changeMode event 2013-02-18 17:01:22 +04:00
Ruben Daniels
197038ddb6 Merge pull request #1259 from ajaxorg/fix/crashing-chrome
Fix JSHint wierd-label-loop-syntax that was likely crashing Chrome 24
2013-02-17 06:37:27 -08:00
Mostafa Eweda
da4b2ee635 Lennart's fix not to create too many setTimeouts 2013-02-17 16:34:46 +02:00
Mostafa Eweda
98d59452fe Fix JSHint likely-crashing-chrome wierd-label-loop-syntax 2013-02-17 16:21:06 +02:00
Harutyun Amirjanyan
83be0083bb Merge pull request #1249 from ajaxorg/highlighting/2.0
Highlighting 2.0 (continuation)
2013-02-17 03:19:28 -08:00
Harutyun Amirjanyan
f99827e01b Merge pull request #1257 from BallBearing/issue1253
Give some more love to #1253.
2013-02-16 12:31:56 -08:00
Harutyun Amirjanyan
f8262837fd Merge pull request #1256 from Korpch/patch-1
fix "char" is reserved word in bracket_match.js
2013-02-16 12:25:33 -08:00
nightwing
df706e5706 fix link highlighting in markdown headers 2013-02-17 00:20:47 +04:00
David Braun
ec6053a57c Refactor clearAnnotations. 2013-02-16 16:32:45 -03:00
Radimir Enkison
2632685340 fix "char" is reserved word bracket_match.js 2013-02-17 02:32:26 +07:00
David Braun
64b888d383 Fix comment in setAnnotations.
It returns an Array, not an Object.
2013-02-16 16:30:39 -03:00
David Braun
cb2b3c828f Create test for annotations. 2013-02-16 16:30:39 -03:00
nightwing
77b5ae1062 fix tokenizer on ie8
changes $arrayTokens to use exec instead of split
 1 it works on ie8
 2 it is faster on chrome http://jsperf.com/capturing-split-vs-exec
unfortunately exec is slow on firefox but ff regexes are a bit rusty atm (v21), and whole tokenizer is slow on it anyway.
2013-02-16 23:09:42 +04:00
nightwing
118c80ce89 remove remnants of regex_allowed 2013-02-16 23:09:21 +04:00
nightwing
4bff3166bb update tests 2013-02-16 23:09:21 +04:00
nightwing
59a54f704d fix #997: Pascal Language Support 2013-02-16 23:09:21 +04:00
nightwing
ff1282556b simplify converter 2013-02-16 23:09:21 +04:00
nightwing
6001ba815c fix #1241 PHP highlighting of closing tag in comment 2013-02-16 23:09:20 +04:00
nightwing
c83f48b371 fix php highlighting inside html attributes 2013-02-16 23:09:20 +04:00
nightwing
300ae2d757 keep indent level for all modes by default 2013-02-16 23:09:20 +04:00
nightwing
b4f799770a add sass mode 2013-02-16 23:09:20 +04:00
nightwing
0c318fa8c0 tweak mode_creator 2013-02-16 23:09:20 +04:00
nightwing
0f71bb2f00 fix highlighting of c# strings 2013-02-16 23:09:19 +04:00
nightwing
382eb6ab55 remove flag parameter from tokenizer 2013-02-16 23:09:19 +04:00
nightwing
e084dc1303 move line length checking to tokenizer to not break long data uri's in css 2013-02-16 23:09:19 +04:00
nightwing
94a6dac5a7 fix highlighting of regular expressions at the beginning of document 2013-02-16 23:08:55 +04:00
nightwing
9ddf039cf6 fix typos 2013-02-16 23:08:55 +04:00
nightwing
a40d9bce76 exclude files with whitespace in name from the build 2013-02-16 23:06:38 +04:00
nightwing
bc599f23d6 fix #1253 clearAnnotations uses wrong data structure for empty set. 2013-02-16 22:42:00 +04:00
nightwing
8d07cf88d1 Merge pull request #1220 from wcandillon/master
XQuery syntax highlighting improvements
2013-02-16 22:34:13 +04:00
William Candillon
94a088e31f Improve handling of the xquery semantic token cache. 2013-02-16 22:26:48 +04:00
William Candillon
5c30d861fa Fix tag completion bug. 2013-02-16 22:26:48 +04:00
William Candillon
cbcec10164 Add XQuery tag completion. 2013-02-16 22:26:47 +04:00
William Candillon
c1ea00244d Remove unused files. 2013-02-16 22:26:47 +04:00
William Candillon
39f2ad34a7 Fix bugs in XQuery lexer. 2013-02-16 22:26:47 +04:00
William Candillon
f65d123dc8 Fix bug with array iteration. 2013-02-16 22:26:47 +04:00
William Candillon
26345ebb31 Fix bug on token iteration. 2013-02-16 22:26:46 +04:00
nightwing
c9e86d3aa9 fix token test generator 2013-02-16 22:26:46 +04:00
William Candillon
e553f13cef Fix lexer bug. 2013-02-16 22:26:46 +04:00
William Candillon
ee592b121a Update XQuery syntax highlighting test case. 2013-02-16 22:26:27 +04:00
Nemurimasu Neiro
e8c5b84212 add lsl mode
based on C/C++ mode and the LSL Wiki as of 2013-01-27
2013-02-16 13:16:59 -05:00
William Candillon
4f8741bffe Remove unused files. 2013-02-16 22:13:48 +04:00
William Candillon
c51e32252b Minor improvements. 2013-02-16 22:13:47 +04:00
William Candillon
751f45d2db XQuery syntax highlighting improvements. 2013-02-16 22:13:33 +04:00
William Candillon
c1f7c51137 Minor syntax highlighter improvement. 2013-02-16 22:13:32 +04:00
William Candillon
0c79c5dded Add new version of XQuery semantic highlighting. 2013-02-16 22:13:32 +04:00
Fabian Jakobs
a57fc8e7c6 fix my email address 2013-02-14 10:37:35 +01:00
Lennart Kats
36554a61ca Merge pull request #1226 from ajaxorg/options
better way for managing options
2013-02-14 00:57:08 -08:00
nightwing
37d41ab6fd remove window resize listener when destroying the editor 2013-02-14 01:02:24 +04:00
nightwing
564310b040 use noconflict filter for workers too 2013-02-14 00:59:04 +04:00
nightwing
9ab8f16840 restore textmate theme in build 2013-02-13 23:51:53 +04:00
nightwing
36f9b537cc fix loading of worker files from UIWorkerClient 2013-02-13 23:49:48 +04:00
nightwing
db19dbd89d fix typo in setTabSize 2013-02-13 16:35:48 +04:00
nightwing
cb9d94946e fix typo in fadFoldWidgets options setter 2013-02-13 16:15:36 +04:00
nightwing
08baf748f6 add forwarding for session options 2013-02-13 16:05:43 +04:00
nightwing
d469335936 do not add set/get option methods automatically 2013-02-13 15:59:15 +04:00
nightwing
a6a26864df add setDefaultValues instead of doing two things in setDefaultValue 2013-02-13 12:03:31 +04:00
Garen Torikian
f8f277d79b Merge pull request #1246 from chvanikoff/typo_fix
typo
2013-02-12 14:32:00 -08:00
Chvanikoff
3b2fb6b7a3 typo 2013-02-12 23:49:02 +04:00
nightwing
fcc6ff61ac add codeHelper to the list of sites using ace 2013-02-11 21:55:25 +04:00
Harutyun Amirjanyan
63340911d5 Merge pull request #1236 from ajaxorg/mode-updates
Mode updates
2013-02-07 06:33:15 -08:00
Garen Torikian
f20a6dc159 Update test 2013-02-06 16:25:47 -08:00
Garen Torikian
d73e64e31f Fix comment highlighter 2013-02-06 12:48:31 -08:00
Garen Torikian
65783be88a Merge master 2013-02-06 12:45:48 -08:00
Garen Torikian
90964745bf Stash 2013-02-06 12:43:38 -08:00
nightwing
a6d85a6342 hotfix ruby heredoc highlighting 2013-02-06 22:28:14 +04:00
nightwing
8ec78bc208 fix #360 ext/textarea innerHTML bug 2013-02-06 22:05:09 +04:00
nightwing
28898c43a0 update scheme mode to work with new tokenizer 2013-02-06 19:36:12 +04:00
nightwing
6790b2df4b Merge pull request #1231 from NalaGinrut/master
Add Scheme mode
2013-02-06 19:25:32 +04:00
nightwing
4bbf4e7ac0 Fixed: test case for scheme 2013-02-06 19:13:06 +04:00
Lennart Kats
41244b3f0c Merge pull request #1185 from ajaxorg/highlighting/2.0
Highlighting/2.0
2013-02-06 06:29:16 -08:00
Lennart Kats
2c84e9618f Merge pull request #1207 from ajaxorg/es5-shim
update es5 shim to 2.0.5 (+some modifications)
2013-02-06 02:07:23 -08:00
DanyaPostfactum
62b7d8c1ea Strip legacy xhr code out of lib/net 2013-02-06 13:01:44 +10:00
DanyaPostfactum
930b5cf7af Fix tooltip webkit gradient, reset ajax.org logo border 2013-02-06 12:59:01 +10:00
DanyaPostfactum
bb9f98e435 Detect file dragging 2013-02-06 12:56:19 +10:00
DanyaPostfactum
0d08edc3c2 fix colon deletion behavior 2013-02-06 12:54:49 +10:00
DanyaPostfactum
ebe03bbe70 remove dom.setText, use classList, document.head 2013-02-06 12:54:20 +10:00
nightwing
4b3f8a2a90 add CIBox to site 2013-02-05 20:19:48 +04:00
Garen Torikian
0c99e826e9 Update dem tests 2013-02-04 17:09:07 -08:00
Garen Torikian
598d0d3ec2 Fix CPP multiline directives 2013-02-04 17:00:37 -08:00
Garen Torikian
ab09f5e38f Fix sh highlighting 2013-02-04 16:55:03 -08:00
Nala Ginrut
05d65dac6a Fixed keywords and constant parse bug
Fixed: 'minus' shouldn't be a delimiter
Fixed: '\t' shouldn't be included in keword-type
2013-02-03 22:35:01 +08:00
Mostafa Eweda
1bcfc979dd Merge pull request #1234 from ajaxorg/hotfix/ie
Hotfix ie and bookmarklet
2013-02-03 06:19:20 -08:00
nightwing
2d5ef1f220 fix focus handling when clicking on foldwidget 2013-02-03 17:48:50 +04:00
nightwing
869de0d113 improve textarea plugin 2013-02-03 17:38:58 +04:00
nightwing
4b4451673b fix worker filtering in build with --s option 2013-02-03 16:42:53 +04:00
nightwing
944edc931a restore font-size:12px on .ace_editor and add line-height: normal 2013-02-03 16:40:19 +04:00
nightwing
2bdd35a004 fix textarea positioning on ie 2013-02-03 16:35:47 +04:00
Nala Ginrut
67b1b25469 Fixed: keyword can't be colored
modified:   demo/kitchen-sink/docs/scheme.scheme
* fix typo
modified:   lib/ace/mode/scheme_highlight_rules.js
* remove '() since it's hard to parse and trivious for coloring.
* keyword and constant coloring fine now.
2013-02-02 22:30:37 +08:00
Nala Ginrut
7fbd7395b3 Add scheme.scheme
new file:   demo/kitchen-sink/docs/scheme.scheme
2013-02-02 20:05:05 +08:00
nightwing
1812679943 update tests 2013-02-02 15:18:10 +04:00
nightwing
5dc1d5c306 add livescript and django modes 2013-02-02 14:44:20 +04:00
nightwing
77a02fc109 code style 2013-02-02 14:44:20 +04:00
nightwing
4ecfa6b38d fix coffeescript tests 2013-02-02 14:44:19 +04:00
nightwing
c477184f2a update more highlighters 2013-02-02 14:44:09 +04:00
nightwing
92935b4896 fix highlighting of CoffeeScript function arguments
issue #1168
2013-02-02 14:44:08 +04:00
nightwing
b06e57b4c2 use new tokenizer features 2013-02-02 14:44:08 +04:00
nightwing
ea857f23c2 add {defaultToken: "..."} rules for skipped text 2013-02-02 14:44:07 +04:00
nightwing
0e7a7b9ebe do not require highlighter to match every letter 2013-02-02 14:44:07 +04:00
nightwing
903b7a1951 minimize number of capturing groups 2013-02-02 14:44:07 +04:00
nightwing
cfa3171ac4 add mode for textmate snippets 2013-02-02 14:44:06 +04:00
nightwing
3da1f3f3ba do not break the editor if highlighter is malformed 2013-02-02 14:44:06 +04:00
nightwing
4012a11208 fix bracket matching in tcl mode 2013-02-02 14:44:05 +04:00
nightwing
782e3f8743 add php heredoc support 2013-02-02 14:44:05 +04:00
nightwing
d2d42499ca #1069 support ruby heredocs 2013-02-02 14:44:04 +04:00
nightwing
4cdc48cf63 simplify lua highlight rules 2013-02-02 14:44:04 +04:00
nightwing
08e621b443 allow array of states in tokenizer 2013-02-02 14:44:03 +04:00
Nala Ginrut
065e1ae19c Update Scheme mode.
modified:   demo/kitchen-sink/doclist.js
modified:   demo/kitchen-sink/modelist.js
new file:   lib/ace/mode/_test/tokens_scheme.json
modified:   lib/ace/mode/scheme_highlight_rules.js
2013-01-31 16:12:54 +08:00
Nala Ginrut
3b6baafe29 Add: Scheme highlight rules
new file:   lib/ace/mode/scheme.js
new file:   lib/ace/mode/scheme_highlight_rules.js
2013-01-31 11:21:37 +08:00
Harutyun Amirjanyan
402f251c23 Merge pull request #1230 from danyaPostfactum/css
CSS behaviour
2013-01-30 13:54:11 -08:00
DanyaPostfactum
4d5c41d192 CSS behaviour 2013-01-31 01:38:56 +10:00
nightwing
38ca543035 add config.setDefaultValue 2013-01-30 12:36:35 +04:00
nightwing
2f85538ce1 fix setTabSize 2013-01-30 12:36:35 +04:00
nightwing
99879fdeef update doc comments 2013-01-30 12:36:35 +04:00
nightwing
f74185870f better way for managing options 2013-01-30 12:36:34 +04:00
nightwing
4a252a0c3b Merge pull request #1223 from chetstone/master
emacs mode enhancements
2013-01-30 12:16:30 +04:00
Chester Wood
3c4bd8d21a Fix CTRL-a to work as expected in emacs mode; restore former values of selection settings when switching keyboard or session 2013-01-30 12:13:11 +04:00
Chester Wood
c955ace32a make emacs mark a property of session 2013-01-29 21:18:50 +04:00
Chester Wood
9241e3269c restore emacs screenToTextCoordinates 2013-01-29 21:18:48 +04:00
Chester Wood
db34cf6a20 Merge branch 'emacs-mode' 2013-01-29 21:17:48 +04:00
Chester Wood
984b4ea2e2 merge emacs fixes 2013-01-29 21:15:35 +04:00
Garen Torikian
c10d3fa1c4 Set font size 2013-01-27 17:09:33 -08:00
nightwing
aab09b4901 update build submodule 2013-01-27 22:58:23 +04:00
nightwing
04917953ff add scroipe and pixeljet logos to the site 2013-01-26 21:49:57 +04:00
Mostafa Eweda
de9fa86f30 Merge pull request #1221 from ajaxorg/textinput
Textinput bugfix
2013-01-26 09:38:05 -08:00
nightwing
d437b63d19 position textarea with bottom/right since otherwise firefox 21+ scrolls
editor out of view when textarea.focus is called
2013-01-26 13:07:03 +04:00
nightwing
5c5e596435 fix #1209 Ctrl+C & Ctrl+X not working in Chrome-15 2013-01-25 18:30:45 +04:00
nightwing
59de8b0ff4 fix loading editor in iframe on ie9 2013-01-25 17:52:23 +04:00
nightwing
8551e0e043 do not use id of placeholder text mode 2013-01-25 17:49:42 +04:00
nightwing
83c37fd41e #1202 scrollbar size is wrong when too broad selector is used 2013-01-25 17:48:07 +04:00
Harutyun Amirjanyan
1dec807e36 Merge pull request #1180 from danyaPostfactum/php-worker
Add php worker
2013-01-25 00:55:01 -08:00
nightwing
27a674cd3f Merge pull request #1218 from danyaPostfactum/miscfixes
Miscellaneous fixes
2013-01-25 12:35:52 +04:00
DanyaPostfactum
84b1f16967 Improve tooltip style 2013-01-25 12:29:59 +04:00
DanyaPostfactum
961053b7d0 Fix cstyle quote deletion behavior 2013-01-25 12:29:59 +04:00
DanyaPostfactum
13a5fde817 Update php test (paren tokens) 2013-01-25 12:29:59 +04:00
DanyaPostfactum
144b29a7a7 Fix label for readonly checkbox 2013-01-25 12:23:41 +04:00
DanyaPostfactum
88a566977b ReadOnly fixes 2013-01-25 12:23:41 +04:00
DanyaPostfactum
99f8aba562 Read-only checkbox in kitchen sink 2013-01-25 12:23:40 +04:00
DanyaPostfactum
3952ef9afd BlockIndent command ( Ctrl-[ and Ctrl-] ) 2013-01-25 12:23:40 +04:00
DanyaPostfactum
4d43496201 Tooltip css tweak 2013-01-25 12:23:40 +04:00
DanyaPostfactum
7ae929aecf Make container csspadding-proof 2013-01-25 12:23:40 +04:00
DanyaPostfactum
4ccbeb23fa Monokai theme tweak 2013-01-25 12:23:39 +04:00
DanyaPostfactum
35819e68df More font sizes to kitchen sink 2013-01-25 12:23:39 +04:00
DanyaPostfactum
26e1074017 Fix Makefile script for windows line endings 2013-01-25 12:23:39 +04:00
DanyaPostfactum
a432399742 Fix deletion behavior for single quotes 2013-01-25 12:23:39 +04:00
DanyaPostfactum
a19d9dbbb7 Fix paren token type in php mode 2013-01-25 12:23:38 +04:00
Garen Torikian
e7a0a98f94 Merge pull request #1214 from ajaxorg/test_all_modes
tests for all modes
2013-01-22 12:02:56 -08:00
nightwing
4011447526 update documentation 2013-01-21 17:54:57 +04:00
DanyaPostfactum
f1a56fe008 Update php parser 2013-01-21 19:26:19 +10:00
Lennart Kats
e5af573fa3 Merge pull request #1215 from ajaxorg/remove-contributing
Remove CLA info
2013-01-20 12:08:10 -08:00
Garen Torikian
086888ea66 Remove CLA info 2013-01-20 11:08:27 -08:00
nightwing
f9d4bbac49 tests for all modes 2013-01-20 16:47:49 +04:00
Harutyun Amirjanyan
d7e54337b0 Merge pull request #1210 from zendesk/libo/curly-mode
Add a Syntax Highlighter for the Curly template language
2013-01-20 00:26:39 -08:00
Liborio Cannici
40fb7f3a11 Add a Syntax Highlighter for the Curly template language 2013-01-15 17:31:45 +01:00
Harutyun Amirjanyan
df99905760 Merge pull request #1195 from ajaxorg/doc/api
Fix the site
2013-01-14 10:06:56 -08:00
nightwing
ca4cef9c16 small style fixes for the site
overrides pointless  img {max-width: 100%} from bootstrap
2013-01-14 22:03:27 +04:00
Garen Torikian
5f2d2446ba Fix landing page 2013-01-14 21:51:57 +04:00
Garen Torikian
a880e2727c Fix tab menus 2013-01-14 21:51:56 +04:00
Garen Torikian
d5669e8127 Fix padding with args and return tables 2013-01-14 21:51:56 +04:00
Garen Torikian
942e50439d Remove padding on expand 2013-01-14 21:51:56 +04:00
Garen Torikian
57d52c89be Move scripts around 2013-01-14 21:51:55 +04:00
Garen Torikian
dcfd0887e2 Fix spacing and colors 2013-01-14 21:51:55 +04:00
Garen Torikian
05e6c69279 Remove search (because it does not work) 2013-01-14 21:51:55 +04:00
Garen Torikian
3136876678 Fix a lot of style issues, plus incorrect tags 2013-01-14 21:51:54 +04:00
Garen Torikian
caf80792dd css changes 2013-01-14 21:50:59 +04:00
Garen Torikian
37a1a082a6 Minor updates 2013-01-14 21:50:59 +04:00
Garen Torikian
aba75b29fd Redo index whitespace 2013-01-14 21:50:46 +04:00
Garen Torikian
629e543ef4 Reshuffle dirs 2013-01-14 21:48:59 +04:00
Garen Torikian
e56ab9d4ab Run through and fix broken text items 2013-01-14 21:47:48 +04:00
nightwing
ce366eed62 fix ie8 splice bug 2013-01-13 15:59:30 +04:00
nightwing
0b162a9411 remove intrusive Date section from es5-shim 2013-01-13 13:36:38 +04:00
nightwing
07cacd9190 update es5-shim to v 2.0.5 2013-01-13 13:27:47 +04:00
Mostafa Eweda
7601a904cb Merge pull request #1196 from ajaxorg/bugfix
Bugfix
2013-01-13 00:39:54 -08:00
nightwing
98f2e18b51 fix tests 2013-01-11 17:01:07 +04:00
nightwing
d0ff5b7d85 Merge pull request #1198 from danyaPostfactum/whitespaces
Display spaces when showInvisibles is on
2013-01-11 16:41:48 +04:00
nightwing
2894ecdb40 small cleanup 2013-01-11 16:38:39 +04:00
DanyaPostfactum
70f34b6b38 Display spaces, text layer little perfomance fixes 2013-01-11 16:12:10 +10:00
DanyaPostfactum
d12e5c4548 Improve lang.stringRepeat function perfomance 2013-01-11 16:11:14 +10:00
nightwing
e2b6597029 remove broken sourcemint integration 2013-01-10 21:55:11 +04:00
nightwing
6d7f6de6df fix site 2013-01-10 21:55:11 +04:00
nightwing
be642d2a6f do not set editor size to 0 when it is hidden 2013-01-10 21:54:59 +04:00
nightwing
19c3031abf change default editor position to relative 2013-01-10 13:39:34 +04:00
nightwing
f78fbc6e36 do not set font size on editor,
to not create weird combinations of inherited line height and own font size
2013-01-10 13:36:21 +04:00
Garen Torikian
aca8e88137 Doc fixes 2013-01-10 11:06:36 +04:00
Harutyun Amirjanyan
942734aa65 Merge pull request #1126 from ajaxorg/searchBox
[WIP] searchbox wip
2013-01-09 11:35:24 -08:00
nightwing
b1f9b95755 tweak searchbox 2013-01-09 22:39:00 +04:00
Vlad Zinculescu
7049caa3bf fixed styles on all browsers - ie 2013-01-09 18:56:32 +04:00
Vlad Zinculescu
8d3c4feeb5 searchbox wip 2013-01-09 18:55:58 +04:00
nightwing
153562054d add link to Drive Notepad 2013-01-08 23:51:23 +04:00
nightwing
05a08562ed add missing import in config.js 2013-01-08 12:37:12 +04:00
Harutyun Amirjanyan
8669a7d2d9 Merge pull request #1160 from ajaxorg/mode-loading
Module loading
2013-01-07 11:28:13 -08:00
nightwing
575646f230 readme must show build status of master branch 2013-01-07 23:23:31 +04:00
nightwing
b9a220de96 use delayed loading of keybindings for ext/textarea 2013-01-07 23:17:23 +04:00
nightwing
51a91e71af make container argument of VirtualRenderer optional 2013-01-07 23:12:29 +04:00
nightwing
07792dab9a allow options object in setMode 2013-01-07 23:11:53 +04:00
nightwing
0a61c37a3b add options to php mode 2013-01-07 23:11:52 +04:00
nightwing
dcbbeb7e22 enable seting keybindings by name 2013-01-07 23:11:52 +04:00
nightwing
e6671462cd cleanup mode loading 2013-01-07 23:11:51 +04:00
nightwing
ffadbe44bf add config.loadModule 2013-01-07 23:11:51 +04:00
nightwing
66d8e37f4d async loading of fonts in demo 2013-01-07 23:11:51 +04:00
nightwing
d7ff50c9fe fix cursor in emacs mode 2013-01-07 23:10:52 +04:00
Chester Wood
bd2e5381cc Add keybinding selection to textarea bookmarklet 2013-01-07 22:59:40 +04:00
nightwing
67880a49bd Merge pull request #1184 from wcandillon/master
XQuery Highlighter Improvements
2013-01-05 00:02:48 +04:00
William Candillon
ae6fa80808 Fixes unicode ranges from xml names. 2013-01-04 23:41:33 +04:00
William Candillon
1559eb59d7 Revert buggy unicode support. 2013-01-04 23:41:32 +04:00
William Candillon
de44547b61 Add unicode support for ncname. 2013-01-04 23:41:32 +04:00
William Candillon
ab1e52f2c5 Minor improvements. 2013-01-04 23:41:32 +04:00
William Candillon
aaee55f115 Improvements in tag highlighting. 2013-01-04 23:41:32 +04:00
William Candillon
345b5f7626 Add support for eqname syntax. 2013-01-04 23:41:31 +04:00
William Candillon
17247653c0 Improve xqdoc highlighting. 2013-01-04 23:41:31 +04:00
William Candillon
477de72595 Fix highlighting of processing instructions. 2013-01-04 23:41:31 +04:00
William Candillon
e0c36db7a5 Improve syntax highlighting of cdata sections. 2013-01-04 23:41:31 +04:00
William Candillon
7dc7aa4295 Syntax highlighter improvements. 2013-01-04 23:41:30 +04:00
William Candillon
cf60a96c38 Fix bug in the parser with XQDDF syntax. 2013-01-04 23:41:12 +04:00
William Candillon
d91d4954ea Beautify XQuery highlighting rules. 2013-01-04 23:41:12 +04:00
William Candillon
823abf4449 Minor improvements in xquery semantic highlighting. 2013-01-04 23:41:11 +04:00
William Candillon
44f4740a8a XQuery semantic highlighting improvements. 2013-01-04 23:41:11 +04:00
William Candillon
eebc086415 Improve syntax highlighting of XQuery comments. 2013-01-04 23:41:11 +04:00
DanyaPostfactum
1c37fff927 Add php worker 2013-01-01 23:07:36 +10:00
Harutyun Amirjanyan
9c61ac1127 Merge pull request #1179 from alizahid/patch-1
Update lib/ace/lib/useragent.js
2012-12-31 23:53:56 -08:00
alizahid
2f62826684 Update lib/ace/lib/useragent.js
Added detection for Internet Explorer 10 wrapper for Windows Store apps
2013-01-01 10:21:50 +05:00
Mostafa Eweda
8b7dcf7e4f Merge pull request #1173 from ajaxorg/indexToPosition
#1162 positionToIndex, indexToPosition methods
2012-12-29 17:09:29 -08:00
Harutyun Amirjanyan
5b45eb350b Merge pull request #1111 from ajaxorg/vbs
Add vbscript mode
2012-12-27 14:09:03 -08:00
nightwing
b6094d9472 add vbscript demo 2012-12-28 02:07:29 +04:00
nightwing
b4243b9f07 cleanup and fix comments 2012-12-28 02:06:53 +04:00
Jan Jongboom
ce2638c10b Add vbscript mode 2012-12-28 01:39:50 +04:00
Garen Torikian
29ee461d29 Add documentation 2012-12-26 23:15:52 -08:00
nightwing
0908b41268 add document indexToPosition and positionToIndex 2012-12-26 20:51:52 +04:00
nightwing
40563347e9 make getNewLineCharacter errorproof 2012-12-26 20:51:52 +04:00
nightwing
27dd31cf62 small cleanup 2012-12-26 20:51:52 +04:00
Garen Torikian
4d474bcdaf Fix #1143, #1144, #1145 2012-12-26 20:39:59 +04:00
Garen Torikian
06911396d6 Merge pull request #1172 from ajaxorg/highlighting/js
Highlighting bugfix
2012-12-26 00:45:25 -08:00
nightwing
8f6f6c6e3d fix error in objectivec_highlight_rules when Array.prototype is modified 2012-12-25 19:39:33 +04:00
nightwing
d2072604f3 fix tests failing because of merged paren tokens 2012-12-25 17:59:45 +04:00
nightwing
230bca6b1b #1138 Markdown mode should be based on HTML mode 2012-12-25 17:13:44 +04:00
nightwing
fa90671619 update highlighting tests after change 2012-12-25 17:09:21 +04:00
nightwing
b4a607a280 add forgotten abap demo to index 2012-12-25 16:57:12 +04:00
nightwing
759fbaba44 merge tokens of same type by default 2012-12-25 16:57:11 +04:00
nightwing
e56b9284da non greedy js strings 2012-12-25 16:57:11 +04:00
nightwing
0c360f39a6 make xml strings non greedy to allow better mixed modes 2012-12-25 16:57:11 +04:00
nightwing
70cd01d858 cleanup xml highlight rules 2012-12-25 16:57:10 +04:00
nightwing
bce93cf031 remove weird ruby style comment highlighting from clojure mode 2012-12-25 16:57:10 +04:00
nightwing
f227cc67f0 better support to Github style code blocks in markdown
Issue #1131
2012-12-25 16:57:10 +04:00
nightwing
0c79b239b6 fix c and stylus highlighters 2012-12-25 16:56:31 +04:00
nightwing
63b80b21d2 update tokenization examples 2012-12-25 16:23:10 +04:00
nightwing
60fd422da8 use relative paths 2012-12-25 16:23:10 +04:00
Harutyun Amirjanyan
b7da773bec Merge pull request #1171 from ajaxorg/fix/cpp
Fix preprocessor rules, #1170
2012-12-25 04:21:26 -08:00
Garen Torikian
142415b985 Fix endif 2012-12-25 00:20:33 -08:00
Garen Torikian
723c86dc85 Fix preprocessor rules, #1170 2012-12-24 17:18:44 -08:00
Sergi Mansilla
117d29a4cb Merge pull request #1133 from ajaxorg/vim
[vim] allow unhandled keys to pass to the browser
2012-12-20 06:09:23 -08:00
Harutyun Amirjanyan
01cc66b9c1 Merge pull request #1165 from bcbailey/bcbailey-ie8-embedrules
Fix error in IE8 when escapeRules is not passed
2012-12-19 23:22:37 -08:00
Harutyun Amirjanyan
8204485400 Merge pull request #1166 from featurist/master
Explain commands' readOnly option
2012-12-19 23:17:33 -08:00
Adrian Longley
b5e586796d Explain commands' readOnly option 2012-12-19 17:37:24 +00:00
Bradley C Bailey
023bf6237c Fix error in IE8 when escapeRules is not passed 2012-12-18 09:42:19 -07:00
nightwing
34127fab8c Merge remote-tracking branch 'remotes/up/site' 2012-12-17 11:27:17 +04:00
nightwing
0514860492 fix typo in textinput.js 2012-12-17 10:25:37 +04:00
nightwing
3e42f6009f update submodule ref 2012-12-16 15:25:48 +04:00
nightwing
fdab3cd059 get rid of annoying mesages in firebug 2012-12-15 17:38:27 +04:00
nightwing
91788f3424 #1151 initial support for marks 2012-12-15 17:37:15 +04:00
nightwing
92e4a42f89 [vim] fix left/right motions 2012-12-15 16:52:57 +04:00
nightwing
989f318d87 [vim] add ctrl+x ctrl+a 2012-12-15 16:52:57 +04:00
nightwing
59f5e7ffca [vim] pass unhandled keys to the browser 2012-12-15 16:52:56 +04:00
nightwing
e0b4d0b586 add more sites 2012-12-15 16:45:39 +04:00
Harutyun Amirjanyan
938d6b658d Merge pull request #1157 from ajaxorg/fix/chaos
fixed selection color, print margin and collapsed code block widget
2012-12-13 23:07:07 -08:00
C9
eadcb9fbe2 fixed selection color, print margin and collapsed code block widget 2012-12-13 20:29:27 -05:00
Garen Torikian
00d764ed3d Merge pull request #1156 from ajaxorg/theme/chaos
Added chaos theme
2012-12-13 16:30:28 -08:00
C9
057b7cf732 Reverted kitchen sink 2012-12-13 18:45:23 -05:00
C9
ba4c463ba9 Added chaos theme 2012-12-13 18:42:14 -05:00
Garen Torikian
6507dc2ac5 Merge pull request #1149 from mikelehen/master
Autodetect workers during build instead of hardcoding them.
2012-12-13 10:00:38 -08:00
Mostafa Eweda
319fdaeca0 Merge pull request #1150 from ajaxorg/textinput
Textinput improvements
2012-12-13 07:16:25 -08:00
Mostafa Eweda
f3d0096050 Merge pull request #1140 from ajaxorg/hotfix/renderer
Fix bug in rowCache
2012-12-13 07:15:48 -08:00
nightwing
71b54a5741 remove unused log 2012-12-13 19:00:39 +04:00
nightwing
c8be2ef60d use boolean instead of propertyChangeCounter 2012-12-13 18:57:47 +04:00
Garen Torikian
e44f9c1b76 Update Readme.md 2012-12-11 13:37:17 -08:00
Garen Torikian
e81ec07c49 Update CONTRIBUTING.md 2012-12-11 13:35:57 -08:00
nightwing
125629ce17 cleanup 2012-12-11 18:29:12 +04:00
nightwing
c9b8159382 remove unused browser_focus.js 2012-12-11 18:29:11 +04:00
nightwing
e5b307d056 do not change selection of blurred textarea 2012-12-11 18:29:11 +04:00
nightwing
38a5a522c2 allow displaying spellcheck suggestions in contextmenu 2012-12-11 18:29:11 +04:00
nightwing
0cd2faecc5 restore selection only if something is selected 2012-12-11 18:29:10 +04:00
nightwing
0e87da74b2 disable autocapitalize to improve behavior on mobile browsers 2012-12-11 18:29:10 +04:00
nightwing
d11b01c313 fix typing on ie8 2012-12-11 18:29:09 +04:00
nightwing
3565a06191 cleanup 2012-12-11 18:29:09 +04:00
nightwing
361c52a16a \x00 crashes firefox ime 2012-12-11 18:29:09 +04:00
Harutyun Amirjanyan
5357b5f33d Merge pull request #1148 from Aaike/master
added 'themeChange' and 'themeLoaded' event
2012-12-10 21:25:41 -08:00
Garen Torikian
4363c8cb91 Create CONTRIBUTING.md 2012-12-10 16:07:27 -08:00
Garen Torikian
cc8a4d4ac5 Update Readme.md 2012-12-10 16:06:21 -08:00
Michael Lehenbauer
bbe2624e9f Detect workers during build instead of hardcoding them. 2012-12-10 14:00:02 -08:00
Aaike Van Roekeghem
4c7abda807 added theme data to the events
added theme data to the events
2012-12-11 03:30:09 +07:00
Aaike Van Roekeghem
923ca25057 added themeChange event
added themeChange event that is dispatched right before a theme is about to change
2012-12-11 03:26:18 +07:00
Aaike Van Roekeghem
c4de324545 added themeLoaded event
added 'themeLoaded' event that is dispatched right after a theme is loaded.

it can be used like this :
this.editor.renderer.on('themeLoaded',function(){
    //do something when the theme is loaded
});
2012-12-11 02:46:59 +07:00
nightwing
c68bed51e0 make gutter resizing faster 2012-12-09 18:36:01 +04:00
nightwing
b0bbb36923 fix editor automatically scrolling up at small zoom 2012-12-09 18:33:46 +04:00
Harutyun Amirjanyan
ce5007935a Merge pull request #1137 from edwardsp/dot_highlighter
Updated to highlight dot code
2012-12-06 04:06:42 -08:00
Paul Edwards
e3d9479a70 Updated to highlight dot code
Dot is a plain text graph description language used by graphviz.
2012-12-04 18:23:01 +00:00
nightwing
7b65e64ffa Merge pull request #1132 from danyaPostfactum/copypastefixes
Copy/paste/delete fixes
2012-12-01 17:47:15 +04:00
nightwing
b6890497c8 do not redraw after changes to scrolled out lines 2012-12-01 17:32:17 +04:00
nightwing
fd126e06c3 fix bug in rowCache 2012-12-01 17:31:05 +04:00
nightwing
378e5f35e9 fix copy after typing 2012-11-30 20:26:04 +04:00
Harutyun Amirjanyan
f887e64112 Merge pull request #1129 from ajaxorg/doc/api
More updates for doc/api
2012-11-30 05:09:03 -08:00
Garen Torikian
c0cfe08c28 Fix extensions in multi_select.js 2012-11-30 17:04:39 +04:00
Garen Torikian
ac0a26d333 Update docs to use undocumented, also incorporate Site branch changes 2012-11-30 16:42:27 +04:00
DanyaPostfactum
8571bee037 Replace nonexistent method onDelete call with execCommand("del") in textinput 2012-11-30 20:32:50 +10:00
DanyaPostfactum
81f58c4552 Restore textarea selection after paste in IE 2012-11-30 20:18:44 +10:00
DanyaPostfactum
2f01870f05 Fix old way paste (reset a selection) 2012-11-30 20:11:09 +10:00
nightwing
e576099de7 add documentation for ace.require 2012-11-28 23:13:23 +04:00
nightwing
b9417a10be fix documentation for position 2012-11-28 23:13:05 +04:00
nightwing
e5ca6769cd do not override console if worker is mistakenly loaded into window 2012-11-28 22:55:40 +04:00
nightwing
be35d27c95 improve ace.js api 2012-11-28 22:55:40 +04:00
nightwing
34ce33b4cc Merge pull request #1030 from danyaPostfactum/textinput
Clipboard API usage, context menu Delete, Select All commands support
2012-11-28 22:42:19 +04:00
nightwing
6772e90df3 be more cautios to not insert parts of PLACEHOLDER 2012-11-28 22:40:07 +04:00
nightwing
3c57b1b415 fix editor loosing focus on input 2012-11-28 22:40:07 +04:00
DanyaPostfactum
67a4a3329c reset text on old way cut/copy 2012-11-28 22:40:07 +04:00
DanyaPostfactum
1459f36391 fix clipboardData reference 2012-11-28 22:40:06 +04:00
DanyaPostfactum
7cc9502539 Fix webkit text.oninput value changing workaround 2012-11-28 22:40:06 +04:00
DanyaPostfactum
46170cd781 Fix mistype and opera copy/cut selectAll triggering 2012-11-28 22:40:06 +04:00
DanyaPostfactum
29f581c61a Add Select All context menu command support 2012-11-28 22:40:06 +04:00
DanyaPostfactum
a061dfd0da change selection instead of text.value 2012-11-28 22:40:05 +04:00
nightwing
bad3f230ab Clipboard API support, context menu Delete command support 2012-11-28 22:39:38 +04:00
Harutyun Amirjanyan
0446771809 Merge pull request #1125 from ajaxorg/doc/api
Autogenerate Ace API
2012-11-28 10:34:35 -08:00
Garen Torikian
95bd44f342 Rebuild API docs 2012-11-28 22:23:32 +04:00
Garen Torikian
2a716dc668 Rebuild API 2012-11-28 22:23:31 +04:00
Garen Torikian
8698b13c8b More work on JSD format 2012-11-28 22:23:31 +04:00
Garen Torikian
eb955fa90d Save changes 2012-11-28 22:22:00 +04:00
Garen Torikian
0739444f87 Transition to JSD 2012-11-28 22:20:14 +04:00
1173 changed files with 246162 additions and 77171 deletions

15
.gitignore vendored
View file

@ -2,21 +2,20 @@
.DS_Store
*.swp
*.tmp
*~
# Project files that should not be in the repo
.project
.settings/
.settings.xml
.settings
.c9settings.xml
.c9revisions
.settings.xml.old
.*
\#*
!/.gitignore
.*.gz
*.tmTheme.js
# A handy place to put stuff that git should ignore:
/ignore/
node_modules/
tool/node_modules/
jam/
* *
.git-ref
npm-debug.log

4
.gitmodules vendored
View file

@ -1,6 +1,6 @@
[submodule "doc/wiki"]
path = doc/wiki
url = git://github.com/ajaxorg/ace.wiki.git
url = https://github.com/ajaxorg/ace.wiki.git
[submodule "build"]
path = build
url = git://github.com/ajaxorg/ace-builds.git
url = https://github.com/ajaxorg/ace-builds.git

1
CNAME Normal file
View file

@ -0,0 +1 @@
ace.c9.io

15
CONTRIBUTING.md Normal file
View file

@ -0,0 +1,15 @@
Contributing
------------
Ace is a community project and wouldn't be what it is without contributions! We actively encourage and support contributions. The Ace source code is released under the BSD License. This license is very simple, and is friendly to all kinds of projects, whether open source or not. Take charge of your editor and add your favorite language highlighting and keybindings!
Feel free to fork and improve/enhance Ace any way you want. If you feel that the editor or the Ace community will benefit from your changes, please open a pull request. To protect the interests of the Ace contributors and users we require contributors to sign a Contributors License Agreement (CLA) before we pull the changes into the main repository. Our CLA is the simplest of agreements, requiring that the contributions you make to an ajax.org project are only those you're allowed to make. This helps us significantly reduce future legal risk for everyone involved. It is easy, helps everyone, takes ten minutes, and only needs to be completed once.
There are two versions of the agreement:
1. [The Individual CLA](https://docs.google.com/a/c9.io/forms/d/1MfmfrxqD_PNlNsuK0lC2KSelRLxGLGfh_wEcG0ijVvo/viewform): use this version if you're working on the Cloud9 SDK or open source projects in your spare time, or can clearly claim ownership of copyright in what you'll be submitting.
2. [The Corporate CLA](https://docs.google.com/a/c9.io/forms/d/1vFejn4111GdnCNuQ6BfnJDaxdsUEMD4KCo1ayovAfu0/viewform): have your corporate lawyer review and submit this if your company is going to be contributing to the Cloud9 SDK and/or open source projects.
If you want to contribute to the Cloud9 SDK and/or open source projects please go to the online form, fill it out and submit it.
Happy coding, Cloud9

View file

@ -1,3 +1,185 @@
Version 1.2.0-pre
* New Features
- Indented soft wrap (danyaPostfactum)
* API Changes
- unified delta types `{start, end, action, lines}` (Alden Daniels https://github.com/ajaxorg/ace/pull/1745)
- "change" event listeners on session and editor get delta objects directly
2015.04.03 Version 1.1.9
- Small Enhancements and Bugfixes
2014.11.08 Version 1.1.8
* API Changes
- `editor.commands.commandKeyBinding` now contains direct map from keys to commands instead of grouping them by hashid
* New Features
- Improved autoindent for html and php modes (Adam Jimenez)
- Find All from searchbox (Colton Voege)
* new language modes
- Elixir, Elm
2014.09.21 Version 1.1.7
* Bugfixes
- fix several bugs in autocompletion
- workaround for inaccurate getBoundingClientRect on chrome 37
2014.08.17 Version 1.1.6
* Bugfixes
- fix regression in double tap to highlight
- Improved Latex Mode (Daniel Felder)
* API Changes
- editor.destroy destroys editor.session too (call editor.setSession(null) to prevent that)
* new language modes
- Praat (José Joaquín Atria)
- Eiffel (Victorien Elvinger)
- G-code (Adam Joseph Cook)
2014.07.09 Version 1.1.5
* Bugfixes
- fix regression in autocomplete popup
* new language modes
- gitignore (Devon Carew)
2014.07.01 Version 1.1.4
* New Features
- Highlight matching tags (Adam Jimenez)
- Improved jump to matching command (Adam Jimenez)
* new language modes
- AppleScript (Yaogang Lian)
- Vala
2014.03.08 Version 1.1.3
* New Features
- Allow syntax checkers to be loaded from CDN (Derk-Jan Hartman)
- Add ColdFusion behavior (Abram Adams)
- add showLineNumbers option
- Add html syntax checker (danyaPostfactum)
* new language modes
- Gherkin (Patrick Nevels)
- Smarty
2013.12.02 Version 1.1.2
* New Features
- Accessibility Theme for Ace (Peter Xiao)
- use snipetManager for expanding emmet snippets
- update jshint to 2.1.4
- improve php syntax checker (jdalegonzalez)
- add option for autoresizing
- add option for autohiding vertical scrollbar
- improvements to highlighting of xml like languages (danyaPostfactum)
- add support for autocompletion and snippets (gjtorikyan danyaPostfactum and others)
- add option to merge similar changes in undo history
- add scrollPastEnd option
- use html5 dragndrop for text dragging (danyaPostfactum)
* API Changes
- fixed typo in HashHandler commmandManager
* new language modes
- Nix (Zef Hemel)
- Protobuf (Zef Hemel)
- Soy
- Handlebars
2013.06.04 Version 1.1.1
- Improved emacs keybindings (Robert Krahn)
- Added markClean, isClean methods to UndoManager (Joonsoo Jeon)
- Do not allow `Toggle comments` command to remove spaces from indentation
- Softer colors for indent guides in dark themes
* new language modes
- Ada
- Assembly_x86
- Cobol
- D
- ejs
- MATLAB
- MySQL
- Twig
- Verilog
2013.05.01, Version 1.1.0
* API Changes
- Default position of the editor container is changed to relative. Add `.ace_editor {position: absolute}` css rule to restore old behavior
- Changed default line-height to `normal` to not conflict with bootstrap. Use `line-height: inherit` for old behavior.
- Changed marker types accepted by session.addMarker. It now accepts "text"|"line"|"fullLine"|"screenLine"
- Internal classnames used by editor were made more consistent
- Introduced `editor.setOption/getOption/setOptions/getOptions` methods
- Introduced positionToIndex, indexToPosition methods
* New Features
- Improved emacs mode (chetstone)
with Incremental search and Occur modes (Robert Krahn)
- Improved ime handling
- Searchbox (Vlad Zinculescu)
- Added elastic tabstops lite extension (Garen Torikian)
- Added extension for whitespace manipulation
- Added extension for enabling spellchecking from contextmenu
- Added extension for displaying available keyboard shortcuts (Matthew Christopher Kastor-Inare III)
- Added extension for displaying options panel (Matthew Christopher Kastor-Inare III)
- Added modelist extension (Matthew Christopher Kastor-Inare III)
- Improved toggleCommentLines and added ToggleCommentBlock command
- `:;` pairing in CSS mode (danyaPostfactum)
- Added suppoert for Delete and SelectAll from context menu (danyaPostfactum)
- Make wrapping behavior optional
- Selective bracket insertion/skipping
- Added commands for increase/decrease numbers, sort lines (Vlad Zinculescu)
- Folding for Markdown, Lua, LaTeX
- Selective bracket insertion/skipping for C-like languages
* Many new languages
- Scheme (Mu Lei)
- Dot (edwardsp)
- FreeMarker (nguillaumin)
- Tiny Mushcode (h3rb)
- Velocity (Ryan Griffith)
- TOML (Garen Torikian)
- LSL (Nemurimasu Neiro, Builders Brewery)
- Curly (Libo Cannici)
- vbScript (Jan Jongboom)
- R (RStudio)
- ABAP
- Lucene (Graham Scott)
- Haml (Garen Torikian)
- Objective-C (Garen Torikian)
- Makefile (Garen Torikian)
- TypeScript (Garen Torikian)
- Lisp (Garen Torikian)
- Stylus (Garen Torikian)
- Dart (Garen Torikian)
* Live syntax checks
- PHP (danyaPostfactum)
- Lua
* New Themes
- Chaos
- Terminal
2012.09.17, Version 1.0.0
* New Features
@ -153,4 +335,4 @@
* Add Ruby mode contributed by Shlomo Zalman Heigh
* Add Java mode contributed by Tom Tasche
* Fix annotation bug
* Changing a document added a new empty line at the end
* Changing a document added a new empty line at the end

View file

@ -13,7 +13,17 @@ pre_build:
build: pre_build
./Makefile.dryice.js normal
./Makefile.dryice.js demo
./Makefile.dryice.js bm
# Minimal build: call Makefile.dryice.js only if our sources changed
basic: build/src/ace.js
build/src/ace.js : ${wildcard lib/*} \
${wildcard lib/*/*} \
${wildcard lib/*/*/*} \
${wildcard lib/*/*/*/*} \
${wildcard lib/*/*/*/*/*} \
${wildcard lib/*/*/*/*/*/*}
./Makefile.dryice.js
doc:
cd doc;\

View file

@ -31,22 +31,23 @@
var fs = require("fs");
var path = require("path");
if (!fs.existsSync)
fs.existsSync = path.existsSync;
else
path.existsSync = fs.existsSync;
var copy = require('dryice').copy;
var copy = require('architect-build/copy');
var build = require('architect-build/build');
var ACE_HOME = __dirname;
var BUILD_DIR = ACE_HOME + "/build";
var CACHE = {};
function main(args) {
if (args.indexOf("updateModes") !== -1) {
return updateModes();
}
var type = "minimal";
args = args.map(function(x) {
if (x[0] == "-" && x[1] != "-")
return "-" + x;
return x;
});
}).filter(Boolean);
if (args[2] && (args[2][0] != "-" || args[2].indexOf("h") != -1))
type = args[2];
@ -66,22 +67,24 @@ function main(args) {
ace();
} else if (type == "demo") {
demo();
} else if (type == "bm") {
bookmarklet();
} else if (type == "full") {
demo(ace());
bookmarklet();
ace();
demo();
} else if (type == "highlighter") {
// TODO
}
}
}
function showHelp(type) {
console.log("--- Ace Dryice Build Tool ---");
console.log("");
console.log("Options:");
console.log(" minimal Places necessary Ace files out in build dir; uses configuration flags below [default]");
console.log(" normal Runs four Ace builds--minimal, minimal-noconflict, minimal-min, and minimal-noconflict-min");
console.log(" demo Runs demo build of Ace");
console.log(" bm Runs bookmarklet build of Ace");
console.log(" full all of above");
console.log(" minimal Places necessary Ace files out in build dir; uses configuration flags below [default]");
console.log(" normal Runs four Ace builds--minimal, minimal-noconflict, minimal-min, and minimal-noconflict-min");
console.log(" demo Runs demo build of Ace");
console.log(" full all of above");
console.log(" highlighter ");
console.log("args:");
console.log(" --target ./path path to build folder");
console.log("flags:");
@ -90,94 +93,34 @@ function main(args) {
console.log(" --nc namespace require");
console.log(" --s shrinkwrap (combines all output files into one)");
console.log("");
if (BUILD_DIR)
console.log(" output generated in " + type + __dirname + "/" + BUILD_DIR)
}
function bookmarklet() {
var targetDir = BUILD_DIR + "/textarea";
copy({
source: "build_support/editor_textarea.html",
dest: targetDir + '/editor.html'
});
copy({
source: "build_support/style.css",
dest: targetDir + '/style.css'
});
buildAce({
targetDir: targetDir + "/src",
ns: "__ace_shadowed__",
exportModule: "ace/ext/textarea",
compress: false,
noconflict: true,
suffix: "",
name: "ace-bookmarklet",
workers: [],
keybindings: []
});
if (type)
console.log(" output for " + type + " generated in " + BUILD_DIR);
}
function ace() {
console.log('# ace ---------');
// uncompressed
var project = buildAce({
compress: false,
noconflict: false
});
buildAce({
compress: false,
noconflict: true
});
// compressed
buildAce({
compress: true,
noconflict: false
});
buildAce({
compress: true,
noconflict: true
});
console.log('# ace License | Readme | Changelog ---------');
copy({
source: ACE_HOME + "/build_support/editor.html",
dest: BUILD_DIR + "/editor.html"
});
copy({
source: ACE_HOME + "/LICENSE",
dest: BUILD_DIR + "/LICENSE"
});
copy({
source: ACE_HOME + "/ChangeLog.txt",
dest: BUILD_DIR + "/ChangeLog.txt"
});
copy.file(ACE_HOME + "/build_support/editor.html", BUILD_DIR + "/editor.html");
copy.file(ACE_HOME + "/LICENSE", BUILD_DIR + "/LICENSE");
copy.file(ACE_HOME + "/ChangeLog.txt", BUILD_DIR + "/ChangeLog.txt");
return project;
console.log('# ace ---------');
for (var i = 0; i < 4; i++)
buildAce({compress: i & 2, noconflict: i & 1});
}
function demo(project) {
project = project || buildAce({
compress: false,
noconflict: false,
coreOnly: true
});
function demo() {
console.log('# kitchen sink ---------');
var version, ref;
var version = "", ref = "";
try {
version = JSON.parse(fs.readFileSync(ACE_HOME + "/package.json")).version;
ref = fs.readFileSync(ACE_HOME + "/.git-ref").toString();
} catch(e) {
ref = "";
version = "";
}
} catch(e) {}
function changeComments(data) {
return (data
.replace("doc/site/images/ace-logo.png", "demo/kitchen-sink/ace-logo.png")
.replace(/<!\-\-DEVEL[\d\D]*?DEVEL\-\->/g, "")
.replace(/PACKAGE\-\->|<!\-\-PACKAGE/g, "")
.replace(/\/\*DEVEL[\d\D]*?DEVEL\*\//g, "")
@ -185,49 +128,55 @@ function demo(project) {
.replace("%version%", version)
.replace("%commit%", ref)
);
};
function fixDocPaths(data) {
return data.replace(/"(demo|build)\//g, "\"");
}
copy({
source: ACE_HOME + "/kitchen-sink.html",
dest: BUILD_DIR + "/kitchen-sink.html",
filter: [changeComments, fixDocPaths]
});
copy({
source: ACE_HOME + "/demo/kitchen-sink/styles.css",
dest: BUILD_DIR + "/kitchen-sink/styles.css",
filter: [ changeComments ]
});
fs.readdirSync(ACE_HOME +"/demo/kitchen-sink/docs/").forEach(function(x) {
copy({
source: ACE_HOME +"/demo/kitchen-sink/docs/" + x,
dest: BUILD_DIR + "/kitchen-sink/docs/" + x
});
});
var demo = copy.createDataObject();
project.assumeAllFilesLoaded();
copy({
source: [{
project: cloneProject(project),
require: [ "kitchen-sink/demo" ]
}],
filter: getWriteFilters({filters:[fixDocPaths]}, "demo"),
dest: demo
});
copy(ACE_HOME +"/demo/kitchen-sink/docs/", BUILD_DIR + "/demo/kitchen-sink/docs/");
copy.file(ACE_HOME + "/demo/kitchen-sink/logo.png", BUILD_DIR + "/demo/kitchen-sink/logo.png");
copy.file(ACE_HOME + "/demo/kitchen-sink/styles.css", BUILD_DIR + "/demo/kitchen-sink/styles.css");
copy.file(ACE_HOME + "/kitchen-sink.html", BUILD_DIR + "/kitchen-sink.html", changeComments);
copy({
source: demo,
dest: BUILD_DIR + "/kitchen-sink/demo.js",
});
buildSubmodule({}, {
require: ["kitchen-sink/demo"],
projectType: "demo"
}, BUILD_DIR + "/demo/kitchen-sink/demo");
copyFileSync(ACE_HOME + "/demo/kitchen-sink/logo.png", BUILD_DIR + "/kitchen-sink/logo.png");
copy(ACE_HOME + "/demo/", BUILD_DIR + "/demo/", {
shallow: true,
exclude: /\s|requirejs/,
include: /\.(js|html)$/,
replace: function(source) {
if (!/^\s*</.test(source))
return source;
var removeRequireJS;
source = source.replace(/<script src="kitchen-sink\/require.js"[\s\S]+?require\(\[([^\]]+).*/, function(e, m) {
removeRequireJS = true;
var scripts = m.split(/,\s*/);
var result = [];
function comment(str) {result.push("<!-- " + str + " -->")}
function script(str) {result.push('<script src="../src/' + str + '.js"></script>')}
scripts.forEach(function(s) {
s = s.replace(/"/g, "");
if (s == "ace/ace") {
comment("load ace");
script("ace");
} else {
var extName = s.match(/[^/]*$/)[0];
comment("load ace " + extName + " extension");
script("ext-" + extName);
}
});
result.push("<script>");
return result.join("\n");
});
if (removeRequireJS)
source = source.replace(/\s*\}\);?\s*(<\/script>)/, "\n$1");
source = source.replace(/"\.\.\/build\//g, function(e) {
console.log(e); return '"../';
});
return source;
}
});
}
function jsFileList(path, filter) {
@ -236,351 +185,332 @@ function jsFileList(path, filter) {
filter = /_test/;
return fs.readdirSync(path).map(function(x) {
if (x.slice(-3) == ".js" && !filter.test(x))
if (x.slice(-3) == ".js" && !filter.test(x) && !/\s|BASE|(\b|_)dummy(\b|_)/.test(x))
return x.slice(0, -3);
}).filter(function(x){ return !!x });
}).filter(Boolean);
}
function addSuffix(options) {
if (options.suffix == null) {
options.suffix = "";
if (options.compress)
options.suffix += "-min";
if (options.noconflict)
options.suffix += "-noconflict";
}
function workers(path) {
return jsFileList(path).map(function(x) {
if (x.slice(-7) == "_worker")
return x.slice(0, -7);
}).filter(function(x) { return !!x; });
}
function getWriteFilters(options, projectType) {
var filters = [
copy.filter.moduleDefines,
removeUseStrict,
removeLicenceComments,
inlineTextModules
];
if (options.filters)
filters = filters.concat(options.filters);
if (projectType == "worker")
return filters;
if (options.noconflict)
filters.push(namespace(options.ns));
if (options.compress)
filters.push(copy.filter.uglifyjs);
if (options.exportModule && projectType == "main") {
if (options.noconflict)
filters.push(exportAce(options.ns, options.exportModule, options.ns));
else
filters.push(exportAce(options.ns, options.exportModule));
}
return filters;
function modeList() {
return jsFileList("lib/ace/mode", /_highlight_rules|_test|_worker|xml_util|_outdent|behaviour|completions/);
}
var buildAce = function(options) {
var aceProject = {
roots: [ACE_HOME + '/lib', ACE_HOME + '/demo'],
textPluginPattern: /^ace\/requirejs\/text!/
};
var defaults = {
targetDir: BUILD_DIR + "/src",
ns: "ace",
exportModule: "ace/ace",
requires: null,
compress: false,
noconflict: false,
suffix: null,
name: "ace",
modes: jsFileList("lib/ace/mode", /_highlight_rules|_test|_worker|xml_util|_outdent|behaviour/),
themes: jsFileList("lib/ace/theme"),
extensions: jsFileList("lib/ace/ext"),
workers: ["javascript", "coffee", "css", "json", "xquery"],
keybindings: ["vim", "emacs"]
};
for(var key in defaults)
if (!options.hasOwnProperty(key))
options[key] = defaults[key];
addSuffix(options);
if (!options.requires)
options.requires = [options.exportModule];
var targetDir = options.targetDir + options.suffix;
var name = options.name;
var project = copy.createCommonJsProject(aceProject);
var ace = copy.createDataObject();
copy({
source: [ACE_HOME + "/build_support/mini_require.js"],
dest: ace
});
copy({
source: [{
project: project,
require: options.requires
}],
filter: [ copy.filter.moduleDefines ],
dest: ace
});
if (options.coreOnly)
return project;
copy({
source: ace,
filter: getWriteFilters(options, "main"),
dest: targetDir + '/' + name + ".js"
});
console.log('# ace modes ---------');
project.assumeAllFilesLoaded();
options.modes.forEach(function(mode) {
console.log("mode " + mode);
copy({
source: [{
project: cloneProject(project),
require: [ 'ace/mode/' + mode ]
}],
filter: getWriteFilters(options, "mode"),
dest: targetDir + "/mode-" + mode + ".js"
});
});
console.log('# ace themes ---------');
project.assumeAllFilesLoaded();
options.themes.forEach(function(theme) {
console.log("theme " + theme);
copy({
source: [{
project: cloneProject(project),
require: ["ace/theme/" + theme]
}],
filter: getWriteFilters(options, "theme"),
dest: targetDir + "/theme-" + theme.replace("_theme", "") + ".js"
});
});
console.log('# ace extensions ---------');
project.assumeAllFilesLoaded();
options.extensions.forEach(function(ext) {
console.log("extensions " + ext);
copy({
source: [{
project: cloneProject(project),
require: [ 'ace/ext/' + ext ]
}],
filter: getWriteFilters(options, "ext"),
dest: targetDir + "/ext-" + ext + ".js"
});
});
console.log('# ace key bindings ---------');
// copy key bindings
project.assumeAllFilesLoaded();
options.keybindings.forEach(function(keybinding) {
copy({
source: [{
project: cloneProject(project),
require: [ 'ace/keyboard/' + keybinding ]
}],
filter: getWriteFilters(options, "keybinding"),
dest: targetDir + "/keybinding-" + keybinding + ".js"
});
});
console.log('# ace worker ---------');
options.workers.forEach(function(mode) {
console.log("worker for " + mode + " mode");
var worker = copy.createDataObject();
var workerProject = copy.createCommonJsProject({
roots: [ ACE_HOME + '/lib' ],
textPluginPattern: /^ace\/requirejs\/text!/
});
copy({
source: [{
project: workerProject,
require: [
'ace/lib/fixoldbrowsers',
'ace/lib/event_emitter',
'ace/lib/oop',
'ace/mode/' + mode + '_worker'
]
}],
filter: getWriteFilters(options, "worker"),
dest: worker
});
copy({
source: [
ACE_HOME + "/lib/ace/worker/worker.js",
worker
],
filter: options.compress ? [copy.filter.uglifyjs] : [],
dest: targetDir + "/worker-" + mode + ".js"
});
});
if (options.shrinkwrap) {
console.log('# combining files into one ---------');
copy({
source: { root:targetDir, exclude:/^worker\-/ },
dest: BUILD_DIR + '/ace-min.js'
});
}
return project;
};
// silence annoying messages from dryice
var buildAce = function(fn) {
return function() {
var log = console.log
console.log = function() {
if (typeof arguments[0] == "string" && /Ignoring requirement/.test(arguments[0]))
return;
log.apply(console, arguments);
}
var ret = fn.apply(null, arguments);
console.log = log;
return ret;
}
}(buildAce);
var textModules = {}
var detectTextModules = function(input, source) {
if (!source)
throw new Error('Missing filename for text module');
if (typeof input !== 'string')
input = input.toString();
var module = source.isLocation ? source.path : source;
input = input.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
input = input.replace(/\n\s+/g, "\n");
input = '"' + input.replace(/\n/g, '\\\n') + '"';
textModules[module] = input;
return "";
};
detectTextModules.onRead = true;
copy.filter.addDefines = detectTextModules;
function inlineTextModules(text) {
var lastDep = "";
return text.replace(/, *['"]ace\/requirejs\/text!(.*?)['"]|= *require\(['"](?:ace|[.\/]+)\/requirejs\/text!(.*?)['"]\)/g, function(_, dep, call) {
if (dep) {
if (!lastDep) {
lastDep = dep;
return "";
}
} else if (call) {
call = textModules[lastDep];
delete textModules[lastDep];
lastDep = "";
function buildAceModule(opts, callback) {
// calling buildAceModuleInternal many times in parallel is slow, so we use queue
if (!buildAceModule.queue) {
buildAceModule.queue = [];
buildAceModule.dequeue = function() {
if (buildAceModule.running) return;
var call = buildAceModule.queue.shift();
buildAceModule.running = call;
if (call)
return "= " + call;
}
console.log(dep, lastDep, call);
throw "inlining of multiple text modules is not supported";
});
}
// TODO: replace with project.clone once it is fixed in dryice
function cloneProject(project) {
var clone = copy.createCommonJsProject({
roots: project.roots,
ignores: project.ignoreRequires,
textPluginPattern: project.textPluginPattern
});
Object.keys(project.currentModules).forEach(function(module) {
clone.currentModules[module] = project.currentModules[module];
});
Object.keys(project.ignoredModules).forEach(function(module) {
clone.ignoredModules[module] = project.ignoredModules[module];
});
return clone;
}
function copyFileSync(srcFile, destFile) {
var BUF_LENGTH = 64*1024,
buf = new Buffer(BUF_LENGTH),
bytesRead = BUF_LENGTH,
pos = 0,
fdr = null,
fdw = null;
fdr = fs.openSync(srcFile, 'r');
fdw = fs.openSync(destFile, 'w');
while (bytesRead === BUF_LENGTH) {
bytesRead = fs.readSync(fdr, buf, 0, BUF_LENGTH, pos);
fs.writeSync(fdw, buf, 0, bytesRead);
pos += bytesRead;
buildAceModuleInternal.apply(null, call);
};
}
buildAceModule.queue.push([opts, function(err, result) {
callback && callback(err, result);
buildAceModule.running = null;
buildAceModule.dequeue();
}]);
fs.closeSync(fdr);
fs.closeSync(fdw);
if (!buildAceModule.running) {
buildAceModule.dequeue();
} else {
process.nextTick(buildAceModule.dequeue);
}
}
function quoteString(str) {
return '"' + str.replace(/\\/, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\\n") + '"';
function buildAceModuleInternal(opts, callback) {
var cache = opts.cache == undefined ? CACHE : opts.cache;
var key = opts.require + "|" + opts.projectType;
if (cache && cache.configs && cache.configs[key])
return write(null, cache.configs[key]);
var pathConfig = {
paths: {
ace: ACE_HOME + "/lib/ace",
"kitchen-sink": ACE_HOME + "/demo/kitchen-sink",
build_support: ACE_HOME + "/build_support",
},
root: ACE_HOME
};
function write(err, result) {
if (cache && key && !(cache.configs && cache.configs[key])) {
cache.configs = cache.configs || Object.create(null);
cache.configs[key] = result;
result.sources = result.sources.map(function(pkg) {
return {deps: pkg.deps};
});
}
if (!opts.outputFile)
return callback(err, result);
var code = result.code;
if (opts.compress) {
if (!result.codeMin)
result.codeMin = compress(result.code);
code = result.codeMin;
}
var targetDir = BUILD_DIR + "/src";
if (opts.compress)
targetDir += "-min";
if (opts.noconflict)
targetDir += "-noconflict";
var to = /^([\\/]|\w:)/.test(opts.outputFile)
? opts.outputFile
: path.join(opts.outputFolder || targetDir, opts.outputFile);
var filters = [];
var ns = opts.ns || "ace";
if (opts.filters)
filters = filters.concat(opts.filters);
if (opts.noconflict)
filters.push(namespace(ns));
var projectType = opts.projectType;
if (projectType == "main" || projectType == "ext") {
filters.push(exportAce(ns, opts.require[0],
opts.noconflict ? ns : "", projectType == "ext"));
}
filters.forEach(function(f) { code = f(code); });
build.writeToFile({code: code}, {
outputFolder: path.dirname(to),
outputFile: path.basename(to),
}, function() {});
callback && callback(err, result);
}
build(opts.require, {
cache: cache,
quiet: opts.quiet,
pathConfig: pathConfig,
additional: opts.additional,
enableBrowser: true,
keepDepArrays: "all",
noArchitect: true,
compress: false,
ignore: opts.ignore || [],
withRequire: false,
basepath: ACE_HOME,
transforms: [normalizeLineEndings],
afterRead: [optimizeTextModules]
}, write);
}
function removeUseStrict(text) {
return text.replace(/['"]use strict['"];/g, "");
function buildCore(options, extra, callback) {
options = extend(extra, options);
options.additional = [{
id: "build_support/mini_require",
order: -1000,
literal: true
}];
options.require =["ace/ace"];
options.projectType = "main";
options.ns = "ace";
buildAceModule(options, callback);
}
function removeLicenceComments(text) {
return text.replace(/(?:(;)|\n)\s*\/\*[\d\D]*?\*\/|\n\s*\/\/.*/g, "$1");
function buildSubmodule(options, extra, file, callback) {
options = extend(extra, options);
getLoadedFileList(options, function(coreFiles) {
options.outputFile = file + ".js";
options.ignore = options.ignore || coreFiles;
options.quiet = true;
buildAceModule(options, callback);
});
}
function buildAce(options) {
var snippetFiles = jsFileList("lib/ace/snippets");
var modeNames = modeList();
buildCore(options, {outputFile: "ace.js"}),
// modes
modeNames.forEach(function(name) {
buildSubmodule(options, {
projectType: "mode",
require: ["ace/mode/" + name]
}, "mode-" + name);
});
// snippets
modeNames.forEach(function(name) {
if (snippetFiles.indexOf(name + ".js") == -1)
addSnippetFile(name);
buildSubmodule(options, {
require: ["ace/snippets/" + name],
}, "snippets/" + name);
});
// themes
jsFileList("lib/ace/theme").forEach(function(name) {
buildSubmodule(options, {
projectType: "theme",
require: ["ace/theme/" + name]
}, "theme-" + name);
});
// keybindings
["vim", "emacs"].forEach(function(name) {
buildSubmodule(options, {
projectType: "keybinding",
require: ["ace/keyboard/" + name ]
}, "keybinding-" + name);
});
// extensions
jsFileList("lib/ace/ext").forEach(function(name) {
buildSubmodule(options, {
projectType: "ext",
require: ["ace/ext/" + name]
}, "ext-" + name);
});
// workers
workers("lib/ace/mode").forEach(function(name) {
buildSubmodule(options, {
projectType: "worker",
require: ["ace/mode/" + name + "_worker"],
ignore: [],
additional: [{
id: "ace/worker/worker",
transforms: [],
order: -1000
}],
}, "worker-" + name);
});
}
function getLoadedFileList(options, callback, result) {
if (!result) {
return buildCore({}, {}, function(e, result) {
getLoadedFileList(options, callback, result);
});
}
var deps = Object.create(null);
result.sources.forEach(function(pkg) {
pkg.deps && pkg.deps.forEach(function(p) {
if (!deps[p]) deps[p] = 1;
});
});
delete deps["ace/theme/textmate"];
callback(Object.keys(deps));
}
function normalizeLineEndings(module) {
module.source = module.source.replace(/\r\n/g, "\n");
}
function optimizeTextModules(sources) {
var textModules = {};
return sources.filter(function(pkg) {
if (!pkg.id) {
return true;
}
else if (pkg.id.indexOf("text!") > -1) {
detectTextModules(pkg);
return false;
}
else {
pkg.source = rewriteTextImports(pkg.source, pkg.deps);
return true;
}
}).map(function(pkg) {
if (pkg && pkg.deps) {
pkg.deps = pkg.deps && pkg.deps.filter(function(p) {
return p.indexOf("text!") == -1;
});
}
return pkg;
});
function rewriteTextImports(text, deps) {
return text.replace(/ require\(['"](?:ace|[.\/]+)\/requirejs\/text!(.*?)['"]\)/g, function(_, call) {
if (call) {
var dep;
deps.some(function(d) {
if (d.split("/").pop() == call.split("/").pop()) {
dep = d;
return true;
}
});
call = textModules[dep];
if (call)
return " " + call;
}
});
}
function detectTextModules(pkg) {
var input = pkg.source.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
if (/\.css$/.test(pkg.id)) {
// remove unnecessary whitespace from css
input = input.replace(/\n\s+/g, "\n");
input = '"' + input.replace(/\n/g, '\\\n') + '"';
} else {
// but don't break other files!
input = '"' + input.replace(/\n/g, '\\n\\\n') + '"';
}
textModules[pkg.id] = input;
}
}
function namespace(ns) {
return function(text) {
text = text
.toString()
.replace('var ACE_NAMESPACE = "";', 'var ACE_NAMESPACE = "' + ns +'";')
.replace(/\bdefine\(/g, ns + ".define(");
.replace(/ACE_NAMESPACE\s*=\s*""/, 'ACE_NAMESPACE = "' + ns +'"')
.replace(/(\.define)|\bdefine\(/g, function(_, a) {
return a || ns + ".define(";
});
return text;
};
}
function exportAce(ns, module, requireBase) {
function exportAce(ns, modules, requireBase, extModules) {
requireBase = requireBase || "window";
module = module || "ace/ace";
return function(text) {
/*globals REQUIRE_NS, MODULES, NS*/
var template = function() {
(function() {
REQUIRE_NS.require(["MODULE"], function(a) {
a && a.config.init();
REQUIRE_NS.require(MODULES, function(a) {
a && a.config.init(true);
if (!window.NS)
window.NS = {};
window.NS = a;
for (var key in a) if (a.hasOwnProperty(key))
NS[key] = a[key];
window.NS[key] = a[key];
});
})();
};
return (text + ";" + template
if (extModules) {
template = function() {
(function() {
REQUIRE_NS.require(MODULES, function() {});
})();
};
}
text = text.replace(/function init\(packaged\) {/, "init(true);$&\n");
if (typeof modules == "string")
modules = [modules];
return (text.replace(/;\s*$/, "") + ";" + template
.toString()
.replace(/MODULE/g, module)
.replace(/MODULES/g, JSON.stringify(modules))
.replace(/REQUIRE_NS/g, requireBase)
.replace(/NS/g, ns)
.slice(13, -1)
@ -588,6 +518,53 @@ function exportAce(ns, module, requireBase) {
};
}
function updateModes() {
modeList().forEach(function(m) {
var filepath = __dirname + "/lib/ace/mode/" + m + ".js";
var source = fs.readFileSync(filepath, "utf8");
if (!/this.\$id\s*=\s*"/.test(source))
source = source.replace(/\n([ \t]*)(\}\).call\(\w*Mode.prototype\))/, '\n$1 this.$id = "";\n$1$2');
source = source.replace(/(this.\$id\s*=\s*)"[^"]*"/, '$1"ace/mode/' + m + '"');
fs.writeFileSync(filepath, source, "utf8");
});
}
function generateThemesModule(themes) {
var themelist = [
'define(function(require, exports, module) {',
'\n\nmodule.exports.themes = ' + JSON.stringify(themes, null, ' '),
';\n\n});'
].join('');
fs.writeFileSync(__dirname + '/lib/ace/ext/themelist_utils/themes.js', themelist, 'utf8');
}
function addSnippetFile(modeName) {
var snippetFilePath = ACE_HOME + "/lib/ace/snippets/" + modeName;
if (!fs.existsSync(snippetFilePath + ".js")) {
copy.file(ACE_HOME + "/tool/templates/snippets.js", snippetFilePath + ".js", function(t) {
return t.replace(/%modeName%/g, modeName);
});
}
if (!fs.existsSync(snippetFilePath + ".snippets")) {
fs.writeFileSync(snippetFilePath + ".snippets", "");
}
}
function compress(text) {
var ujs = require("dryice").copy.filter.uglifyjs;
ujs.options.mangle_toplevel = {except: ["ACE_NAMESPACE", "requirejs"]};
ujs.options.beautify = {ascii_only: true, inline_script: true}
return ujs(text);
}
function extend(base, extra) {
Object.keys(extra).forEach(function(k) {
base[k] = extra[k];
});
return base;
}
if (!module.parent)
main(process.argv);
else

View file

@ -1,14 +1,14 @@
Ace (Ajax.org Cloud9 Editor)
============================
_Note_: The new site at http://ace.ajax.org contains all the info below along with an embedding guide and all the other resources you need to get started with Ace.
_Note_: The new site at http://ace.c9.io contains all the info below along with an embedding guide and all the other resources you need to get started with Ace.
Ace is a standalone code editor written in JavaScript. Our goal is to create a browser based editor that matches and extends the features, usability and performance of existing native editors such as TextMate, Vim or Eclipse. It can be easily embedded in any web page or JavaScript application. Ace is developed as the primary editor for [Cloud9 IDE](http://www.cloud9ide.com/) and the successor of the Mozilla Skywriter (Bespin) Project.
Ace is a standalone code editor written in JavaScript. Our goal is to create a browser based editor that matches and extends the features, usability and performance of existing native editors such as TextMate, Vim or Eclipse. It can be easily embedded in any web page or JavaScript application. Ace is developed as the primary editor for [Cloud9 IDE](https://c9.io/) and the successor of the Mozilla Skywriter (Bespin) Project.
Features
--------
* Syntax highlighting for over 40 languages (TextMate/Sublime/_.tmlanguage_ files can be imported)
* Syntax highlighting for over 110 languages (TextMate/Sublime/_.tmlanguage_ files can be imported)
* Over 20 themes (TextMate/Sublime/_.tmtheme_ files can be imported)
* Automatic indent and outdent
* An optional command line
@ -28,9 +28,9 @@ Features
Take Ace for a spin!
--------------------
Check out the Ace live [demo](http://ajaxorg.github.com/ace/build/kitchen-sink.html) or get a [Cloud9 IDE account](http://c9.io) to experience Ace while editing one of your own GitHub projects.
Check out the Ace live [demo](http://ace.c9.io/build/kitchen-sink.html) or get a [Cloud9 IDE account](https://c9.io/) to experience Ace while editing one of your own GitHub projects.
If you want, you can use Ace as a textarea replacement thanks to the [Ace Bookmarklet](http://ajaxorg.github.com/ace/build/textarea/editor.html).
If you want, you can use Ace as a textarea replacement thanks to the [Ace Bookmarklet](http://ajaxorg.github.io/ace/build/demo/bookmarklet/index.html).
Embedding Ace
-------------
@ -79,16 +79,16 @@ By default the editor only supports plain text mode; many other languages are av
The mode can then be used like this:
```javascript
var JavaScriptMode = require("ace/mode/javascript").Mode;
var JavaScriptMode = ace.require("ace/mode/javascript").Mode;
editor.getSession().setMode(new JavaScriptMode());
```
Documentation
-------------
Additional usage information, including events to listen to and extending syntax highlighters, can be found [on the main Ace website](http://ace.ajax.org).
Additional usage information, including events to listen to and extending syntax highlighters, can be found [on the main Ace website](http://ace.c9.io).
You can also find API documentation at [http://ajaxorg.github.com/ace/api/index.html](http://ajaxorg.github.com/ace/api/index.html).
You can also find API documentation at [http://ace.c9.io/#nav=api](http://ace.c9.io/#nav=api).
Also check out the sample code for the kitchen sink [demo app](https://github.com/ajaxorg/ace/blob/master/demo/kitchen-sink/demo.js).
@ -112,7 +112,7 @@ Or using Node.JS
The editor can then be opened at http://localhost:8888/kitchen-sink.html.
To open the editor with a file:/// URL see [the wiki](https://github.com/ajaxorg/ace/wiki/Running-Ace-from-a-file:).
To open the editor with a file:/// URL see [the wiki](https://github.com/ajaxorg/ace/wiki/Running-Ace-from-file).
Building Ace
-----------
@ -152,30 +152,17 @@ You can also run the tests in your browser by serving:
This makes debugging failing tests way more easier.
Contributing
-----------------------------
Ace is a community project and wouldn't be what it is without contributions! We actively encourage and support contributions. The Ace source code is released under the BSD License. This license is very simple, and is friendly to all kinds of projects, whether open source or not. Take charge of your editor and add your favorite language highlighting and keybindings!
Feel free to fork and improve/enhance Ace any way you want. If you feel that the editor or the Ace community will benefit from your changes, please open a pull request. For more information on our contributing guidelines, see [CONTRIBUTING.md](https://github.com/ajaxorg/ace/blob/master/CONTRIBUTING.md).
Continuous Integration status
-----------------------------
This project is tested with [Travis CI](http://travis-ci.org)
[![Build Status](https://secure.travis-ci.org/ajaxorg/ace.png)](http://travis-ci.org/ajaxorg/ace)
[![Build Status](https://secure.travis-ci.org/ajaxorg/ace.png?branch=master)](http://travis-ci.org/ajaxorg/ace)
Contributing
------------
Ace is a community project and wouldn't be what it is without contributions! We actively encourage and support contributions. The Ace source code is released under the BSD License. This license is very simple, and is friendly to all kinds of projects, whether open source or not. Take charge of your editor and add your favorite language highlighting and keybindings!
Feel free to fork and improve/enhance Ace any way you want. If you feel that the editor or the Ace community will benefit from your changes, please open a pull request. To protect the interests of the Ace contributors and users we require contributors to sign a Contributors License Agreement (CLA) before we pull the changes into the main repository. Our CLA is the simplest of agreements, requiring that the contributions you make to an ajax.org project are only those you're allowed to make. This helps us significantly reduce future legal risk for everyone involved. It is easy, helps everyone, takes ten minutes, and only needs to be completed once. There are two versions of the agreement:
1. [The Individual CLA](https://github.com/ajaxorg/ace/raw/master/doc/Contributor_License_Agreement-v2.pdf): use this version if you're working on an ajax.org in your spare time, or can clearly claim ownership of copyright in what you'll be submitting.
2. [The Corporate CLA](https://github.com/ajaxorg/ace/raw/master/doc/Corporate_Contributor_License_Agreement-v2.pdf): have your corporate lawyer review and submit this if your company is going to be contributing to ajax.org projects
If you want to contribute to an ajax.org project please print the CLA and fill it out and sign it. Then either send it by snail mail or fax to us or send it back scanned (or as a photo) by email.
Email: ace+cla@c9.io
Fax: +31 (0) 206388953
Address: Ajax.org B.V.
Keizersgracht 241
1016 EA, Amsterdam
the Netherlands

View file

@ -1,5 +1,149 @@
<div id="documentation" class="span8"><div class="classContent"><div class="membersBackground"></div><div class=" members pos0"><div class=" membersContent pos0"><h1 class="memberHeader"><span class="name">Ace<span class="editInC9"> <a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%2Face.git' title='Edit in Cloud9 IDE'>[edit]</a></span></span></h1><ul data-tabs="tabs" class="nav tabs pos0"><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_Ace.edit" data-id="Ace.edit" class="memberLink"><a href="#Ace.edit" class="" title="Ace.edit (class method)" data-id="Ace.edit">edit</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li></ul></div></div><article id="Ace" data-title="Ace (class)" class="article"><div class="section description"><div class="memberContent"><p>The main class required to set up an Ace instance in the browser.</p>
</div></div></article><h3 class="sectionHeader">Methods</h3><article id="Ace.edit" data-title="Ace.edit (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Ace.edit" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Ace.edit" class="member-name methodClicker"><span class="sigClassName">Ace.</span><span class="sigMemberName">edit</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="argument methodClicker" title="String" data-id="String">String</a> | <a href="https://developer.mozilla.org/en/DOM/element" class="argument methodClicker" title="DOMElement" data-id="DOMElement">DOMElement</a> el</span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="#nav=api&api=editor" class="returnType " title="Editor (class)" data-id="Editor">Editor</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Ace.edit" class="ellipsis_description"><p>This method embeds the Ace editor into the DOM, at the element provided by <code>el</code>.</p>
</div><div class="description"><p>This method embeds the Ace editor into the DOM, at the element provided by <code>el</code>.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">el</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="" title="String" data-id="String">String</a> | <a href="https://developer.mozilla.org/en/DOM/element" class="" title="DOMElement" data-id="DOMElement">DOMElement</a></td><td class="argDescription "><p>Required. Either the id of an element, or the element itself</p>
</td></tr></table></div></div></div></div></article></div><script defer src="./resources/javascripts/ux.js"></script><script src="./resources/javascripts/clicker.js"></script><script src="./resources/javascripts/jquery-scrollspy.js"></script><script defer src="./resources/javascripts/disqus-ext.js"></script><script defer src="./resources/javascripts/ga.js"></script><div id="disqus_thread"></div></div>
<div id="documentation" class="span9">
<div class="classContent">
<div class="membersBackground"></div>
<div class=" members pos0">
<div class=" membersContent pos0">
<h1 class="memberHeader"><span class="name">Ace</span>
</h1>
<ul data-tabs="tabs" class="nav tabs pos0">
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (3)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_Ace.createEditSession" data-id="Ace.createEditSession" class="memberLink"><a href="#Ace.createEditSession" class="" title="Ace.createEditSession (class method)" data-id="Ace.createEditSession">createEditSession</a>
</li>
<li id="dropdown_Ace.edit" data-id="Ace.edit" class="memberLink"><a href="#Ace.edit" class="" title="Ace.edit (class method)" data-id="Ace.edit">edit</a>
</li>
<li id="dropdown_Ace.require" data-id="Ace.require" class="memberLink"><a href="#Ace.require" class="" title="Ace.require (class method)" data-id="Ace.require">require</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
<article id="Ace" data-title="Ace (class)" class="article">
<div class="section description">
<div class="memberContent"><p>The main class required to set up an Ace instance in the browser.</p>
</div>
</div>
</article>
<h3 class="sectionHeader">Methods</h3>
<article id="Ace.createEditSession" data-title="Ace.createEditSession (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Ace.createEditSession" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Ace.createEditSession" class="member-name methodClicker"><span class="sigClassName">Ace.</span><span class="sigMemberName">createEditSession</span></span>(<span class="sigArgList"><a href="document.html" class="argument methodClicker" title="Document (class)" data-id="Document">Document</a> | <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="argument methodClicker" title="String" data-id="String">String</a> text, <a href="https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/text.js" class="argument methodClicker" title="TextMode" data-id="TextMode">TextMode</a> mode</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Ace.createEditSession" class="ellipsis_description"><p>Creates a new <a href="edit_session.html" class="link-short" title="EditSession (class)" data-id="EditSession"><code>EditSession</code></a>, and returns the associated <a href="document.html" class="link-short" title="Document (class)" data-id="Document"><code>Document</code></a>.</p>
</div>
<div class="description"><p>Creates a new <a href="edit_session.html" class="link-short" title="EditSession (class)" data-id="EditSession"><code>EditSession</code></a>, and returns the associated <a href="document.html" class="link-short" title="Document (class)" data-id="Document"><code>Document</code></a>.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">text</td><td class="argType" "><a href="document.html" class="" title="Document (class)" data-id="Document">Document</a> | <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="" title="String" data-id="String">String</a></td><td class="argDescription "><p>Required. If <code>text</code> is a <code>Document</code>, it associates the <code>EditSession</code> with it. Otherwise, a new <code>Document</code> is created, with the initial text</p>
</td></tr><tr class="argumentRow "><td class="argName ">mode</td><td class="argType" "><a href="https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/text.js" class="" title="TextMode" data-id="TextMode">TextMode</a></td><td class="argDescription "><p>Required. The inital language mode to use for the document</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="Ace.edit" data-title="Ace.edit (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Ace.edit" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Ace.edit" class="member-name methodClicker"><span class="sigClassName">Ace.</span><span class="sigMemberName">edit</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="argument methodClicker" title="String" data-id="String">String</a> | <a href="https://developer.mozilla.org/en/DOM/element" class="argument methodClicker" title="DOMElement" data-id="DOMElement">DOMElement</a> el</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Ace.edit" class="ellipsis_description"><p>Embeds the Ace editor into the DOM, at the element provided by <code>el</code>.</p>
</div>
<div class="description"><p>Embeds the Ace editor into the DOM, at the element provided by <code>el</code>.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">el</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="" title="String" data-id="String">String</a> | <a href="https://developer.mozilla.org/en/DOM/element" class="" title="DOMElement" data-id="DOMElement">DOMElement</a></td><td class="argDescription "><p>Required. Either the id of an element, or the element itself</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="Ace.require" data-title="Ace.require (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Ace.require" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Ace.require" class="member-name methodClicker"><span class="sigClassName">Ace.</span><span class="sigMemberName">require</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="argument methodClicker" title="String" data-id="String">String</a> moduleName</span>)
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="returnType " title="Object" data-id="Object">Object</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Ace.require" class="ellipsis_description"><p>Provides access to require in packed noconflict mode</p>
</div>
<div class="description"><p>Provides access to require in packed noconflict mode</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">moduleName</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="" title="String" data-id="String">String</a></td><td class="argDescription "><p>Required. </p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
</div>
<script defer src="./resources/javascripts/ux.js"></script>
<script src="./resources/javascripts/clicker.js"></script>
<script src="./resources/javascripts/jquery-scrollspy.js"></script>
<script defer src="./resources/javascripts/disqus-ext.js"></script>
<script defer src="./resources/javascripts/ga.js"></script>
<div id="disqus_thread"></div>
</div>

View file

@ -1,33 +1,272 @@
<div id="documentation" class="span8"><div class="classContent"><div class="membersBackground"></div><div class=" members pos0"><div class=" membersContent pos0"><h1 class="memberHeader"><span class="name">Anchor<span class="editInC9"> <a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%2Face.git' title='Edit in Cloud9 IDE'>[edit]</a></span></span></h1><ul data-tabs="tabs" class="nav tabs pos0"><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Events (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_Anchor.event.change" data-id="Anchor.event.change" class="memberLink"><a href="#Anchor.event.change" class="" title="Anchor.event.change (event)" data-id="Anchor.event.change">change</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_Anchor.new" data-id="Anchor.new" class="memberLink"><a href="#Anchor.new" class="" title="Anchor.new (constructor)" data-id="Anchor.new">new</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (5)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_Anchor.clipPositionToDocument" data-id="Anchor.clipPositionToDocument" class="memberLink"><a href="#Anchor.clipPositionToDocument" class="" title="Anchor.clipPositionToDocument (class method)" data-id="Anchor.clipPositionToDocument">clipPositionToDocument</a></li><li id="dropdown_Anchor.detach" data-id="Anchor.detach" class="memberLink"><a href="#Anchor.detach" class="" title="Anchor.detach (class method)" data-id="Anchor.detach">detach</a></li><li id="dropdown_Anchor.getDocument" data-id="Anchor.getDocument" class="memberLink"><a href="#Anchor.getDocument" class="" title="Anchor.getDocument (class method)" data-id="Anchor.getDocument">getDocument</a></li><li id="dropdown_Anchor.getPosition" data-id="Anchor.getPosition" class="memberLink"><a href="#Anchor.getPosition" class="" title="Anchor.getPosition (class method)" data-id="Anchor.getPosition">getPosition</a></li><li id="dropdown_Anchor.setPosition" data-id="Anchor.setPosition" class="memberLink"><a href="#Anchor.setPosition" class="" title="Anchor.setPosition (class method)" data-id="Anchor.setPosition">setPosition</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li></ul></div></div><article id="Anchor" data-title="Anchor (class)" class="article"><div class="section description"><div class="memberContent"><p>Defines the floating pointer in the document. Whenever text is inserted or deleted before the cursor, the position of the cursor is updated</p>
</div></div></article><h3 class="sectionHeader">Constructors</h3><article id="Anchor.new" data-title="Anchor.new (constructor)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Anchor.new" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="constructorIdentifier">new </span><span id="Anchor.new" class="member-name methodClicker">Anchor</span>(<span class="sigArgList"><a href="#nav=api&api=document" class="argument methodClicker" title="Document (class)" data-id="Document">Document</a> doc, <a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> row, <a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> column</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Anchor.new" class="ellipsis_description"><p>Creates a new <code>Anchor</code> and associates it with a document.</p>
</div><div class="description"><p>Creates a new <code>Anchor</code> and associates it with a document.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">doc</td><td class="argType" "><a href="#nav=api&api=document" class="" title="Document (class)" data-id="Document">Document</a></td><td class="argDescription "><p>Required. The document to associate with the anchor</p>
</td></tr><tr class="argumentRow "><td class="argName ">row</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The starting row position</p>
</td></tr><tr class="argumentRow "><td class="argName ">column</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The starting column position</p>
</td></tr></table></div></div></div></div></article><h3 class="sectionHeader">Events</h3><article id="Anchor.event.change" data-title="Anchor.event.change (event)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Anchor.event.change" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="eventObjName">Anchor</span><span class="eventListenerStart">.on("</span><span id="Anchor.event.change" class="member-name eventMember methodClicker">change</span><span class="eventListenerClose">", </span><span class="eventFunctionOpen">function(</span><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="argument methodClicker" title="Object" data-id="Object">Object</a> e<span class="eventFunctionClose">))</span></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Anchor.event.change" class="ellipsis_description"><p>Fires whenever the anchor position changes.</p>
</div><div class="description"><p>Fires whenever the anchor position changes.</p>
<p>Events that can trigger this function include <a href="#Anchor.setPosition" class="link-short" title="Anchor.setPosition (class method)" data-id="Anchor.setPosition"><code>setPosition()</code></a>.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">e</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. An object containing information about the anchor position. It has two properties:</p>
<ul>
<li><p><code>old</code>: An object describing the old Anchor position</p>
</li>
<li><p><code>value</code>: An object describing the new Anchor position </p>
<div id="documentation" class="span9">
<div class="classContent">
<div class="membersBackground"></div>
<div class=" members pos0">
<div class=" membersContent pos0">
<h1 class="memberHeader"><span class="name">Anchor</span>
</h1>
<ul data-tabs="tabs" class="nav tabs pos0">
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Events (1)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_Anchor.event.change" data-id="Anchor.event.change" class="memberLink"><a href="#Anchor.event.change" class="" title="Anchor.event.change (event)" data-id="Anchor.event.change">change</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_Anchor.new" data-id="Anchor.new" class="memberLink"><a href="#Anchor.new" class="" title="Anchor.new (constructor)" data-id="Anchor.new">new</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (6)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_Anchor.detach" data-id="Anchor.detach" class="memberLink"><a href="#Anchor.detach" class="" title="Anchor.detach (class method)" data-id="Anchor.detach">detach</a>
</li>
<li id="dropdown_Anchor.getDocument" data-id="Anchor.getDocument" class="memberLink"><a href="#Anchor.getDocument" class="" title="Anchor.getDocument (class method)" data-id="Anchor.getDocument">getDocument</a>
</li>
<li id="dropdown_Anchor.getPosition" data-id="Anchor.getPosition" class="memberLink"><a href="#Anchor.getPosition" class="" title="Anchor.getPosition (class method)" data-id="Anchor.getPosition">getPosition</a>
</li>
<li id="dropdown_Anchor.onChange" data-id="Anchor.onChange" class="memberLink"><a href="#Anchor.onChange" class="" title="Anchor.onChange (class method)" data-id="Anchor.onChange">onChange</a>
</li>
<li id="dropdown_Anchor.setPosition" data-id="Anchor.setPosition" class="memberLink"><a href="#Anchor.setPosition" class="" title="Anchor.setPosition (class method)" data-id="Anchor.setPosition">setPosition</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
<article id="Anchor" data-title="Anchor (class)" class="article">
<div class="section description">
<div class="memberContent"><p>Defines the floating pointer in the document. Whenever text is inserted or deleted before the cursor, the position of the cursor is updated.</p>
</div>
</div>
</article>
<h3 class="sectionHeader">Constructors</h3>
<article id="Anchor.new" data-title="Anchor.new (constructor)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Anchor.new" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span class="constructorIdentifier">new </span><span id="Anchor.new" class="member-name methodClicker">Anchor</span>(<span class="sigArgList"><a href="document.html" class="argument methodClicker" title="Document (class)" data-id="Document">Document</a> doc, <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> row, <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> column</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Anchor.new" class="ellipsis_description"><p>Creates a new <code>Anchor</code> and associates it with a document.</p>
</div>
<div class="description"><p>Creates a new <code>Anchor</code> and associates it with a document.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">doc</td><td class="argType" "><a href="document.html" class="" title="Document (class)" data-id="Document">Document</a></td><td class="argDescription "><p>Required. The document to associate with the anchor</p>
</td></tr><tr class="argumentRow "><td class="argName ">row</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The starting row position</p>
</td></tr><tr class="argumentRow "><td class="argName ">column</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The starting column position</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<h3 class="sectionHeader">Events</h3>
<article id="Anchor.event.change" data-title="Anchor.event.change (event)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Anchor.event.change" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span class="eventObjName">Anchor</span><span class="eventListenerStart">.on("</span><span id="Anchor.event.change" class="member-name eventMember methodClicker">change</span><span class="eventListenerClose">", </span><span class="eventFunctionOpen">function(</span><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="argument methodClicker" title="Object" data-id="Object">Object</a> e<span class="eventFunctionClose">))</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Anchor.event.change" class="ellipsis_description"><p>Fires whenever the anchor position changes.</p>
</div>
<div class="description"><p>Fires whenever the anchor position changes.</p>
<p>Both of these objects have a <code>row</code> and <code>column</code> property corresponding to the position.</p>
</li>
<p>Events that can trigger this function include <a href="#Anchor.setPosition" class="link-short" title="Anchor.setPosition (class method)" data-id="Anchor.setPosition"><code>setPosition()</code></a>.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">e</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. An object containing information about the anchor position. It has two properties: </p>
<ul>
<li><code>old</code>: An object describing the old Anchor position</li>
<li><code>value</code>: An object describing the new Anchor position</li>
</ul>
</td></tr></table></div></div></div></div></article><h3 class="sectionHeader">Methods</h3><article id="Anchor.clipPositionToDocument" data-title="Anchor.clipPositionToDocument (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Anchor.clipPositionToDocument" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Anchor.clipPositionToDocument" class="member-name methodClicker"><span class="sigClassName">Anchor.</span><span class="sigMemberName">clipPositionToDocument</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> row, <a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> column</span>)</li></ul><ul class="metaInfo"><li><span class="label internal">Internal</span></li></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Anchor.clipPositionToDocument" class="ellipsis_description"><p>Clips the anchor position to the specified row and column.</p>
</div><div class="description"><p>Clips the anchor position to the specified row and column.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">row</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The row index to clip the anchor to</p>
</td></tr><tr class="argumentRow "><td class="argName ">column</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The column index to clip the anchor to</p>
</td></tr></table></div></div></div></div></article><article id="Anchor.detach" data-title="Anchor.detach (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Anchor.detach" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Anchor.detach" class="member-name methodClicker"><span class="sigClassName">Anchor.</span><span class="sigMemberName">detach</span></span>(<span class="sigArgList"></span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Anchor.detach" class="ellipsis_description"><p>When called, the <code>&#39;change&#39;</code> event listener is removed.</p>
</div><div class="description"><p>When called, the <code>&#39;change&#39;</code> event listener is removed.</p>
</div></div></div></div></article><article id="Anchor.getDocument" data-title="Anchor.getDocument (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Anchor.getDocument" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Anchor.getDocument" class="member-name methodClicker"><span class="sigClassName">Anchor.</span><span class="sigMemberName">getDocument</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="#nav=api&api=document" class="returnType " title="Document (class)" data-id="Document">Document</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Anchor.getDocument" class="ellipsis_description"><p>Returns the current document.</p>
</div><div class="description"><p>Returns the current document.</p>
</div></div></div></div></article><article id="Anchor.getPosition" data-title="Anchor.getPosition (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Anchor.getPosition" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Anchor.getPosition" class="member-name methodClicker"><span class="sigClassName">Anchor.</span><span class="sigMemberName">getPosition</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="returnType " title="Object" data-id="Object">Object</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Anchor.getPosition" class="ellipsis_description"><p>Returns an object identifying the <code>row</code> and <code>column</code> position of the current anchor.</p>
</div><div class="description"><p>Returns an object identifying the <code>row</code> and <code>column</code> position of the current anchor.</p>
</div></div></div></div></article><article id="Anchor.setPosition" data-title="Anchor.setPosition (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Anchor.setPosition" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Anchor.setPosition" class="member-name methodClicker"><span class="sigClassName">Anchor.</span><span class="sigMemberName">setPosition</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> row, <a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> column, <a href="http://www.nodemanual.org/latest/js_doc/Boolean.html" class="argument methodClicker" title="Boolean" data-id="Boolean">Boolean</a> noClip</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Anchor.setPosition" class="ellipsis_description"><p>Sets the anchor position to the specified row and column. If <code>noClip</code> is <code>true</code>, the position is not clipped.</p>
</div><div class="description"><p>Sets the anchor position to the specified row and column. If <code>noClip</code> is <code>true</code>, the position is not clipped.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">row</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The row index to move the anchor to</p>
</td></tr><tr class="argumentRow "><td class="argName ">column</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The column index to move the anchor to</p>
</td></tr><tr class="argumentRow "><td class="argName ">noClip</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Boolean.html" class="" title="Boolean" data-id="Boolean">Boolean</a></td><td class="argDescription "><p>Required. Identifies if you want the position to be clipped</p>
</td></tr></table></div></div></div></div></article></div><script defer src="./resources/javascripts/ux.js"></script><script src="./resources/javascripts/clicker.js"></script><script src="./resources/javascripts/jquery-scrollspy.js"></script><script defer src="./resources/javascripts/disqus-ext.js"></script><script defer src="./resources/javascripts/ga.js"></script><div id="disqus_thread"></div></div>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<h3 class="sectionHeader">Methods</h3>
<article id="Anchor.detach" data-title="Anchor.detach (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Anchor.detach" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Anchor.detach" class="member-name methodClicker"><span class="sigClassName">Anchor.</span><span class="sigMemberName">detach</span></span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Anchor.detach" class="ellipsis_description"><p>When called, the <code>&#39;change&#39;</code> event listener is removed.</p>
</div>
<div class="description"><p>When called, the <code>&#39;change&#39;</code> event listener is removed.</p>
</div>
</div>
</div>
</div>
</article>
<article id="Anchor.getDocument" data-title="Anchor.getDocument (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Anchor.getDocument" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Anchor.getDocument" class="member-name methodClicker"><span class="sigClassName">Anchor.</span><span class="sigMemberName">getDocument</span></span><span class="emptyArgumentList">()</span>
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="document.html" class="returnType " title="Document (class)" data-id="Document">Document</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Anchor.getDocument" class="ellipsis_description"><p>Returns the current document.</p>
</div>
<div class="description"><p>Returns the current document.</p>
</div>
</div>
</div>
</div>
</article>
<article id="Anchor.getPosition" data-title="Anchor.getPosition (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Anchor.getPosition" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Anchor.getPosition" class="member-name methodClicker"><span class="sigClassName">Anchor.</span><span class="sigMemberName">getPosition</span></span><span class="emptyArgumentList">()</span>
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="returnType " title="Object" data-id="Object">Object</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Anchor.getPosition" class="ellipsis_description"><p>Returns an object identifying the <code>row</code> and <code>column</code> position of the current anchor.</p>
</div>
<div class="description"><p>Returns an object identifying the <code>row</code> and <code>column</code> position of the current anchor.</p>
</div>
</div>
</div>
</div>
</article>
<article id="Anchor.onChange" data-title="Anchor.onChange (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Anchor.onChange" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Anchor.onChange" class="member-name methodClicker"><span class="sigClassName">Anchor.</span><span class="sigMemberName">onChange</span></span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
<li><span class="label undocumented">Undocumented</span></li>
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Anchor.onChange" class="ellipsis_description">
</div>
<div class="description">
</div>
</div>
</div>
</div>
</article>
<article id="Anchor.setPosition" data-title="Anchor.setPosition (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Anchor.setPosition" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Anchor.setPosition" class="member-name methodClicker"><span class="sigClassName">Anchor.</span><span class="sigMemberName">setPosition</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> row, <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> column, <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Boolean" class="argument methodClicker" title="Boolean" data-id="Boolean">Boolean</a> noClip</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Anchor.setPosition" class="ellipsis_description"><p>Sets the anchor position to the specified row and column. If <code>noClip</code> is <code>true</code>, the position is not clipped.</p>
</div>
<div class="description"><p>Sets the anchor position to the specified row and column. If <code>noClip</code> is <code>true</code>, the position is not clipped.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">row</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The row index to move the anchor to</p>
</td></tr><tr class="argumentRow "><td class="argName ">column</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The column index to move the anchor to</p>
</td></tr><tr class="argumentRow "><td class="argName ">noClip</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Boolean" class="" title="Boolean" data-id="Boolean">Boolean</a></td><td class="argDescription "><p>Required. Identifies if you want the position to be clipped</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
</div>
<script defer src="./resources/javascripts/ux.js"></script>
<script src="./resources/javascripts/clicker.js"></script>
<script src="./resources/javascripts/jquery-scrollspy.js"></script>
<script defer src="./resources/javascripts/disqus-ext.js"></script>
<script defer src="./resources/javascripts/ga.js"></script>
<div id="disqus_thread"></div>
</div>

View file

@ -1,30 +1,320 @@
<div id="documentation" class="span8"><div class="classContent"><div class="membersBackground"></div><div class=" members pos0"><div class=" membersContent pos0"><h1 class="memberHeader"><span class="name">BackgroundTokenizer<span class="editInC9"> <a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%2Face.git' title='Edit in Cloud9 IDE'>[edit]</a></span></span></h1><ul data-tabs="tabs" class="nav tabs pos0"><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Events (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_BackgroundTokenizer.event.update" data-id="BackgroundTokenizer.event.update" class="memberLink"><a href="#BackgroundTokenizer.event.update" class="" title="BackgroundTokenizer.event.update (event)" data-id="BackgroundTokenizer.event.update">update</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_BackgroundTokenizer.new" data-id="BackgroundTokenizer.new" class="memberLink"><a href="#BackgroundTokenizer.new" class="" title="BackgroundTokenizer.new (constructor)" data-id="BackgroundTokenizer.new">new</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (7)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_BackgroundTokenizer.fireUpdateEvent" data-id="BackgroundTokenizer.fireUpdateEvent" class="memberLink"><a href="#BackgroundTokenizer.fireUpdateEvent" class="" title="BackgroundTokenizer.fireUpdateEvent (class method)" data-id="BackgroundTokenizer.fireUpdateEvent">fireUpdateEvent</a></li><li id="dropdown_BackgroundTokenizer.getState" data-id="BackgroundTokenizer.getState" class="memberLink"><a href="#BackgroundTokenizer.getState" class="" title="BackgroundTokenizer.getState (class method)" data-id="BackgroundTokenizer.getState">getState</a></li><li id="dropdown_BackgroundTokenizer.getTokens" data-id="BackgroundTokenizer.getTokens" class="memberLink"><a href="#BackgroundTokenizer.getTokens" class="" title="BackgroundTokenizer.getTokens (class method)" data-id="BackgroundTokenizer.getTokens">getTokens</a></li><li id="dropdown_BackgroundTokenizer.setDocument" data-id="BackgroundTokenizer.setDocument" class="memberLink"><a href="#BackgroundTokenizer.setDocument" class="" title="BackgroundTokenizer.setDocument (class method)" data-id="BackgroundTokenizer.setDocument">setDocument</a></li><li id="dropdown_BackgroundTokenizer.setTokenizer" data-id="BackgroundTokenizer.setTokenizer" class="memberLink"><a href="#BackgroundTokenizer.setTokenizer" class="" title="BackgroundTokenizer.setTokenizer (class method)" data-id="BackgroundTokenizer.setTokenizer">setTokenizer</a></li><li id="dropdown_BackgroundTokenizer.start" data-id="BackgroundTokenizer.start" class="memberLink"><a href="#BackgroundTokenizer.start" class="" title="BackgroundTokenizer.start (class method)" data-id="BackgroundTokenizer.start">start</a></li><li id="dropdown_BackgroundTokenizer.stop" data-id="BackgroundTokenizer.stop" class="memberLink"><a href="#BackgroundTokenizer.stop" class="" title="BackgroundTokenizer.stop (class method)" data-id="BackgroundTokenizer.stop">stop</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li></ul></div></div><article id="BackgroundTokenizer" data-title="BackgroundTokenizer (class)" class="article"><div class="section description"><div class="memberContent"><p>Tokenizes the current <a href="#nav=api&api=document" class="link-short" title="Document (class)" data-id="Document"><code>Document</code></a> in the background, and caches the tokenized rows for future use. If a certain row is changed, everything below that row is re-tokenized.</p>
</div></div></article><h3 class="sectionHeader">Constructors</h3><article id="BackgroundTokenizer.new" data-title="BackgroundTokenizer.new (constructor)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="BackgroundTokenizer.new" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="constructorIdentifier">new </span><span id="BackgroundTokenizer.new" class="member-name methodClicker">BackgroundTokenizer</span>(<span class="sigArgList"><a href="#nav=api&api=tokenizer" class="argument methodClicker" title="Tokenizer (class)" data-id="Tokenizer">Tokenizer</a> tokenizer, <a href="#nav=api&api=editor" class="argument methodClicker" title="Editor (class)" data-id="Editor">Editor</a> editor</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_BackgroundTokenizer.new" class="ellipsis_description"><p>Creates a new <code>BackgroundTokenizer</code> object.</p>
</div><div class="description"><p>Creates a new <code>BackgroundTokenizer</code> object.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">tokenizer</td><td class="argType" "><a href="#nav=api&api=tokenizer" class="" title="Tokenizer (class)" data-id="Tokenizer">Tokenizer</a></td><td class="argDescription "><p>Required. The tokenizer to use</p>
</td></tr><tr class="argumentRow "><td class="argName ">editor</td><td class="argType" "><a href="#nav=api&api=editor" class="" title="Editor (class)" data-id="Editor">Editor</a></td><td class="argDescription "><p>Required. The editor to associate with</p>
</td></tr></table></div></div></div></div></article><h3 class="sectionHeader">Events</h3><article id="BackgroundTokenizer.event.update" data-title="BackgroundTokenizer.event.update (event)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="BackgroundTokenizer.event.update" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="eventObjName">BackgroundTokenizer</span><span class="eventListenerStart">.on("</span><span id="BackgroundTokenizer.event.update" class="member-name eventMember methodClicker">update</span><span class="eventListenerClose">", </span><span class="eventFunctionOpen">function(</span><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="argument methodClicker" title="Object" data-id="Object">Object</a> e<span class="eventFunctionClose">))</span></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_BackgroundTokenizer.event.update" class="ellipsis_description"><p>Fires whenever the background tokeniziers between a range of rows are going to be updated.</p>
</div><div class="description"><p>Fires whenever the background tokeniziers between a range of rows are going to be updated.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">e</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. An object containing two properties, <code>first</code> and <code>last</code>, which indicate the rows of the region being updated.</p>
</td></tr></table></div></div></div></div></article><h3 class="sectionHeader">Methods</h3><article id="BackgroundTokenizer.fireUpdateEvent" data-title="BackgroundTokenizer.fireUpdateEvent (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="BackgroundTokenizer.fireUpdateEvent" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="BackgroundTokenizer.fireUpdateEvent" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">fireUpdateEvent</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> firstRow, <a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> lastRow</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_BackgroundTokenizer.fireUpdateEvent" class="ellipsis_description"><p>Emits the <code>&#39;update&#39;</code> event. <code>firstRow</code> and <code>lastRow</code> are used to define the boundaries of the region to be updated.</p>
</div><div class="description"><p>Emits the <code>&#39;update&#39;</code> event. <code>firstRow</code> and <code>lastRow</code> are used to define the boundaries of the region to be updated.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">firstRow</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The starting row region</p>
</td></tr><tr class="argumentRow "><td class="argName ">lastRow</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The final row region</p>
</td></tr></table></div></div></div></div></article><article id="BackgroundTokenizer.getState" data-title="BackgroundTokenizer.getState (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="BackgroundTokenizer.getState" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="BackgroundTokenizer.getState" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">getState</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> row</span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="returnType " title="String" data-id="String">String</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_BackgroundTokenizer.getState" class="ellipsis_description"><p>Returns the state of tokenization at the end of a row.</p>
</div><div class="description"><p>Returns the state of tokenization at the end of a row.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">row</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The row to get state at</p>
</td></tr></table></div></div></div></div></article><article id="BackgroundTokenizer.getTokens" data-title="BackgroundTokenizer.getTokens (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="BackgroundTokenizer.getTokens" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="BackgroundTokenizer.getTokens" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">getTokens</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> row</span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type">[ <a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="returnType " title="Object" data-id="Object">Object</a> ]</li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_BackgroundTokenizer.getTokens" class="ellipsis_description"><p>Gives list of tokens of the row. (tokens are cached)</p>
</div><div class="description"><p>Gives list of tokens of the row. (tokens are cached)</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">row</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The row to get tokens at</p>
</td></tr></table></div></div></div></div></article><article id="BackgroundTokenizer.setDocument" data-title="BackgroundTokenizer.setDocument (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="BackgroundTokenizer.setDocument" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="BackgroundTokenizer.setDocument" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">setDocument</span></span>(<span class="sigArgList"><a href="#nav=api&api=document" class="argument methodClicker" title="Document (class)" data-id="Document">Document</a> doc</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_BackgroundTokenizer.setDocument" class="ellipsis_description"><p>Sets a new document to associate with this object.</p>
</div><div class="description"><p>Sets a new document to associate with this object.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">doc</td><td class="argType" "><a href="#nav=api&api=document" class="" title="Document (class)" data-id="Document">Document</a></td><td class="argDescription "><p>Required. The new document to associate with</p>
</td></tr></table></div></div></div></div></article><article id="BackgroundTokenizer.setTokenizer" data-title="BackgroundTokenizer.setTokenizer (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="BackgroundTokenizer.setTokenizer" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="BackgroundTokenizer.setTokenizer" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">setTokenizer</span></span>(<span class="sigArgList"><a href="#nav=api&api=tokenizer" class="argument methodClicker" title="Tokenizer (class)" data-id="Tokenizer">Tokenizer</a> tokenizer</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_BackgroundTokenizer.setTokenizer" class="ellipsis_description"><p>Sets a new tokenizer for this object.</p>
</div><div class="description"><p>Sets a new tokenizer for this object.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">tokenizer</td><td class="argType" "><a href="#nav=api&api=tokenizer" class="" title="Tokenizer (class)" data-id="Tokenizer">Tokenizer</a></td><td class="argDescription "><p>Required. The new tokenizer to use</p>
</td></tr></table></div></div></div></div></article><article id="BackgroundTokenizer.start" data-title="BackgroundTokenizer.start (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="BackgroundTokenizer.start" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="BackgroundTokenizer.start" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">start</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> startRow</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_BackgroundTokenizer.start" class="ellipsis_description"><p>Starts tokenizing at the row indicated.</p>
</div><div class="description"><p>Starts tokenizing at the row indicated.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">startRow</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The row to start at</p>
</td></tr></table></div></div></div></div></article><article id="BackgroundTokenizer.stop" data-title="BackgroundTokenizer.stop (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="BackgroundTokenizer.stop" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="BackgroundTokenizer.stop" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">stop</span></span>(<span class="sigArgList"></span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_BackgroundTokenizer.stop" class="ellipsis_description"><p>Stops tokenizing.</p>
</div><div class="description"><p>Stops tokenizing.</p>
</div></div></div></div></article></div><script defer src="./resources/javascripts/ux.js"></script><script src="./resources/javascripts/clicker.js"></script><script src="./resources/javascripts/jquery-scrollspy.js"></script><script defer src="./resources/javascripts/disqus-ext.js"></script><script defer src="./resources/javascripts/ga.js"></script><div id="disqus_thread"></div></div>
<div id="documentation" class="span9">
<div class="classContent">
<div class="membersBackground"></div>
<div class=" members pos0">
<div class=" membersContent pos0">
<h1 class="memberHeader"><span class="name">BackgroundTokenizer</span>
</h1>
<ul data-tabs="tabs" class="nav tabs pos0">
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Events (1)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_BackgroundTokenizer.event.update" data-id="BackgroundTokenizer.event.update" class="memberLink"><a href="#BackgroundTokenizer.event.update" class="" title="BackgroundTokenizer.event.update (event)" data-id="BackgroundTokenizer.event.update">update</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_BackgroundTokenizer.new" data-id="BackgroundTokenizer.new" class="memberLink"><a href="#BackgroundTokenizer.new" class="" title="BackgroundTokenizer.new (constructor)" data-id="BackgroundTokenizer.new">new</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (7)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_BackgroundTokenizer.fireUpdateEvent" data-id="BackgroundTokenizer.fireUpdateEvent" class="memberLink"><a href="#BackgroundTokenizer.fireUpdateEvent" class="" title="BackgroundTokenizer.fireUpdateEvent (class method)" data-id="BackgroundTokenizer.fireUpdateEvent">fireUpdateEvent</a>
</li>
<li id="dropdown_BackgroundTokenizer.getState" data-id="BackgroundTokenizer.getState" class="memberLink"><a href="#BackgroundTokenizer.getState" class="" title="BackgroundTokenizer.getState (class method)" data-id="BackgroundTokenizer.getState">getState</a>
</li>
<li id="dropdown_BackgroundTokenizer.getTokens" data-id="BackgroundTokenizer.getTokens" class="memberLink"><a href="#BackgroundTokenizer.getTokens" class="" title="BackgroundTokenizer.getTokens (class method)" data-id="BackgroundTokenizer.getTokens">getTokens</a>
</li>
<li id="dropdown_BackgroundTokenizer.setDocument" data-id="BackgroundTokenizer.setDocument" class="memberLink"><a href="#BackgroundTokenizer.setDocument" class="" title="BackgroundTokenizer.setDocument (class method)" data-id="BackgroundTokenizer.setDocument">setDocument</a>
</li>
<li id="dropdown_BackgroundTokenizer.setTokenizer" data-id="BackgroundTokenizer.setTokenizer" class="memberLink"><a href="#BackgroundTokenizer.setTokenizer" class="" title="BackgroundTokenizer.setTokenizer (class method)" data-id="BackgroundTokenizer.setTokenizer">setTokenizer</a>
</li>
<li id="dropdown_BackgroundTokenizer.start" data-id="BackgroundTokenizer.start" class="memberLink"><a href="#BackgroundTokenizer.start" class="" title="BackgroundTokenizer.start (class method)" data-id="BackgroundTokenizer.start">start</a>
</li>
<li id="dropdown_BackgroundTokenizer.stop" data-id="BackgroundTokenizer.stop" class="memberLink"><a href="#BackgroundTokenizer.stop" class="" title="BackgroundTokenizer.stop (class method)" data-id="BackgroundTokenizer.stop">stop</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
<article id="BackgroundTokenizer" data-title="BackgroundTokenizer (class)" class="article">
<div class="section description">
<div class="memberContent"><p>Tokenizes the current <a href="document.html" class="link-short" title="Document (class)" data-id="Document"><code>Document</code></a> in the background, and caches the tokenized rows for future use. </p>
<p>If a certain row is changed, everything below that row is re-tokenized.</p>
</div>
</div>
</article>
<h3 class="sectionHeader">Constructors</h3>
<article id="BackgroundTokenizer.new" data-title="BackgroundTokenizer.new (constructor)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="BackgroundTokenizer.new" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span class="constructorIdentifier">new </span><span id="BackgroundTokenizer.new" class="member-name methodClicker">BackgroundTokenizer</span>(<span class="sigArgList"><a href="tokenizer.html" class="argument methodClicker" title="Tokenizer (class)" data-id="Tokenizer">Tokenizer</a> tokenizer, <a href="editor.html" class="argument methodClicker" title="Editor (class)" data-id="Editor">Editor</a> editor</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_BackgroundTokenizer.new" class="ellipsis_description"><p>Creates a new <code>BackgroundTokenizer</code> object.</p>
</div>
<div class="description"><p>Creates a new <code>BackgroundTokenizer</code> object.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">tokenizer</td><td class="argType" "><a href="tokenizer.html" class="" title="Tokenizer (class)" data-id="Tokenizer">Tokenizer</a></td><td class="argDescription "><p>Required. The tokenizer to use</p>
</td></tr><tr class="argumentRow "><td class="argName ">editor</td><td class="argType" "><a href="editor.html" class="" title="Editor (class)" data-id="Editor">Editor</a></td><td class="argDescription "><p>Required. The editor to associate with</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<h3 class="sectionHeader">Events</h3>
<article id="BackgroundTokenizer.event.update" data-title="BackgroundTokenizer.event.update (event)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="BackgroundTokenizer.event.update" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span class="eventObjName">BackgroundTokenizer</span><span class="eventListenerStart">.on("</span><span id="BackgroundTokenizer.event.update" class="member-name eventMember methodClicker">update</span><span class="eventListenerClose">", </span><span class="eventFunctionOpen">function(</span><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="argument methodClicker" title="Object" data-id="Object">Object</a> e<span class="eventFunctionClose">))</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_BackgroundTokenizer.event.update" class="ellipsis_description"><p>Fires whenever the background tokeniziers between a range of rows are going to be updated.</p>
</div>
<div class="description"><p>Fires whenever the background tokeniziers between a range of rows are going to be updated.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">e</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. An object containing two properties, <code>first</code> and <code>last</code>, which indicate the rows of the region being updated.</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<h3 class="sectionHeader">Methods</h3>
<article id="BackgroundTokenizer.fireUpdateEvent" data-title="BackgroundTokenizer.fireUpdateEvent (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="BackgroundTokenizer.fireUpdateEvent" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="BackgroundTokenizer.fireUpdateEvent" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">fireUpdateEvent</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> firstRow, <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> lastRow</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_BackgroundTokenizer.fireUpdateEvent" class="ellipsis_description"><p>Emits the <code>&#39;update&#39;</code> event. <code>firstRow</code> and <code>lastRow</code> are used to define the boundaries of the region to be updated.</p>
</div>
<div class="description"><p>Emits the <code>&#39;update&#39;</code> event. <code>firstRow</code> and <code>lastRow</code> are used to define the boundaries of the region to be updated.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">firstRow</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The starting row region</p>
</td></tr><tr class="argumentRow "><td class="argName ">lastRow</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The final row region</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="BackgroundTokenizer.getState" data-title="BackgroundTokenizer.getState (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="BackgroundTokenizer.getState" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="BackgroundTokenizer.getState" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">getState</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> row</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_BackgroundTokenizer.getState" class="ellipsis_description"><p>Returns the state of tokenization at the end of a row.</p>
</div>
<div class="description"><p>Returns the state of tokenization at the end of a row.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">row</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The row to get state at</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="BackgroundTokenizer.getTokens" data-title="BackgroundTokenizer.getTokens (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="BackgroundTokenizer.getTokens" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="BackgroundTokenizer.getTokens" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">getTokens</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> row</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_BackgroundTokenizer.getTokens" class="ellipsis_description"><p>Gives list of tokens of the row. (tokens are cached)</p>
</div>
<div class="description"><p>Gives list of tokens of the row. (tokens are cached)</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">row</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The row to get tokens at</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="BackgroundTokenizer.setDocument" data-title="BackgroundTokenizer.setDocument (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="BackgroundTokenizer.setDocument" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="BackgroundTokenizer.setDocument" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">setDocument</span></span>(<span class="sigArgList"><a href="document.html" class="argument methodClicker" title="Document (class)" data-id="Document">Document</a> doc</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_BackgroundTokenizer.setDocument" class="ellipsis_description"><p>Sets a new document to associate with this object.</p>
</div>
<div class="description"><p>Sets a new document to associate with this object.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">doc</td><td class="argType" "><a href="document.html" class="" title="Document (class)" data-id="Document">Document</a></td><td class="argDescription "><p>Required. The new document to associate with</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="BackgroundTokenizer.setTokenizer" data-title="BackgroundTokenizer.setTokenizer (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="BackgroundTokenizer.setTokenizer" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="BackgroundTokenizer.setTokenizer" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">setTokenizer</span></span>(<span class="sigArgList"><a href="tokenizer.html" class="argument methodClicker" title="Tokenizer (class)" data-id="Tokenizer">Tokenizer</a> tokenizer</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_BackgroundTokenizer.setTokenizer" class="ellipsis_description"><p>Sets a new tokenizer for this object.</p>
</div>
<div class="description"><p>Sets a new tokenizer for this object.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">tokenizer</td><td class="argType" "><a href="tokenizer.html" class="" title="Tokenizer (class)" data-id="Tokenizer">Tokenizer</a></td><td class="argDescription "><p>Required. The new tokenizer to use</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="BackgroundTokenizer.start" data-title="BackgroundTokenizer.start (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="BackgroundTokenizer.start" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="BackgroundTokenizer.start" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">start</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> startRow</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_BackgroundTokenizer.start" class="ellipsis_description"><p>Starts tokenizing at the row indicated.</p>
</div>
<div class="description"><p>Starts tokenizing at the row indicated.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">startRow</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The row to start at</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="BackgroundTokenizer.stop" data-title="BackgroundTokenizer.stop (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="BackgroundTokenizer.stop" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="BackgroundTokenizer.stop" class="member-name methodClicker"><span class="sigClassName">BackgroundTokenizer.</span><span class="sigMemberName">stop</span></span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_BackgroundTokenizer.stop" class="ellipsis_description"><p>Stops tokenizing.</p>
</div>
<div class="description"><p>Stops tokenizing.</p>
</div>
</div>
</div>
</div>
</article>
</div>
<script defer src="./resources/javascripts/ux.js"></script>
<script src="./resources/javascripts/clicker.js"></script>
<script src="./resources/javascripts/jquery-scrollspy.js"></script>
<script defer src="./resources/javascripts/disqus-ext.js"></script>
<script defer src="./resources/javascripts/ga.js"></script>
<div id="disqus_thread"></div>
</div>

View file

@ -1,5 +1,55 @@
<div id="documentation" class="span8"><div class="classContent"><div class="membersBackground"></div><div class=" members pos0"><div class=" membersContent pos0"><h1 class="memberHeader"><span class="name">CommandManager<span class="editInC9"> <a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%2Face.git' title='Edit in Cloud9 IDE'>[edit]</a></span></span></h1><ul data-tabs="tabs" class="nav tabs pos0"><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_CommandManager.new" data-id="CommandManager.new" class="memberLink"><a href="#CommandManager.new" class="" title="CommandManager.new (constructor)" data-id="CommandManager.new">new</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li></ul></div></div><article id="CommandManager" data-title="CommandManager (class)" class="article"></article><h3 class="sectionHeader">Constructors</h3><article id="CommandManager.new" data-title="CommandManager.new (constructor)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="CommandManager.new" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="constructorIdentifier">new </span><span id="CommandManager.new" class="member-name methodClicker">CommandManager</span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="argument methodClicker" title="String" data-id="String">String</a> platform, <a href="http://www.nodemanual.org/latest/js_doc/Array.html" class="argument methodClicker" title="Array" data-id="Array">Array</a> commands</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_CommandManager.new" class="ellipsis_description"><p>TODO</p>
</div><div class="description"><p>TODO</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">platform</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="" title="String" data-id="String">String</a></td><td class="argDescription "><p>Required. Identifier for the platform; must be either <code>&#39;mac&#39;</code> or <code>&#39;win&#39;</code></p>
</td></tr><tr class="argumentRow "><td class="argName ">commands</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Array.html" class="" title="Array" data-id="Array">Array</a></td><td class="argDescription "><p>Required. A list of commands</p>
</td></tr></table></div></div></div></div></article></div><script defer src="./resources/javascripts/ux.js"></script><script src="./resources/javascripts/clicker.js"></script><script src="./resources/javascripts/jquery-scrollspy.js"></script><script defer src="./resources/javascripts/disqus-ext.js"></script><script defer src="./resources/javascripts/ga.js"></script><div id="disqus_thread"></div></div>
<div id="documentation" class="span9">
<div class="classContent">
<div class="membersBackground"></div>
<div class=" members pos0">
<div class=" membersContent pos0">
<h1 class="memberHeader"><span class="name">CommandManager</span>
</h1>
<ul data-tabs="tabs" class="nav tabs pos0">
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
<article id="CommandManager" data-title="CommandManager (class)" class="article">
<div class="section description">
<div class="memberContent"><p>new CommandManager(platform, commands)</p>
</div>
</div>
</article>
</div>
<script defer src="./resources/javascripts/ux.js"></script>
<script src="./resources/javascripts/clicker.js"></script>
<script src="./resources/javascripts/jquery-scrollspy.js"></script>
<script defer src="./resources/javascripts/disqus-ext.js"></script>
<script defer src="./resources/javascripts/ga.js"></script>
<div id="disqus_thread"></div>
</div>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,12 @@
<div id="documentation" class="span8"><h1>Ace API Reference</h1>
<div id="documentation" class="span9"><h1>Ace API Reference</h1>
<p>Welcome to the Ace API Reference Guide. Ace is a standalone code editor written in JavaScript that you can embed onto any website. We&#39;re used in a bunch of places already, like GitHub, Google, and Facebook.</p>
<p>On the left, you&#39;ll find a list of all of our currently documented classes. There are plenty more to do, but these represent the &quot;core&quot; set. For more information on how to work with Ace, check out the <a href="http://ace.ajax.org">main Ace website</a>.</p>
<script defer src="./resources/javascripts/ux.js"></script><script src="./resources/javascripts/clicker.js"></script><script src="./resources/javascripts/jquery-scrollspy.js"></script><script defer src="./resources/javascripts/disqus-ext.js"></script><script defer src="./resources/javascripts/ga.js"></script><div id="disqus_thread"></div></div>
<script defer src="./resources/javascripts/ux.js"></script>
<script src="./resources/javascripts/clicker.js"></script>
<script src="./resources/javascripts/jquery-scrollspy.js"></script>
<script defer src="./resources/javascripts/disqus-ext.js"></script>
<script defer src="./resources/javascripts/ga.js"></script>
<div id="disqus_thread"></div>
</div>

View file

@ -1,24 +1,293 @@
<div id="documentation" class="span8"><div class="classContent"><div class="membersBackground"></div><div class=" members pos0"><div class=" membersContent pos0"><h1 class="memberHeader"><span class="name">PlaceHolder<span class="editInC9"> <a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%2Face.git' title='Edit in Cloud9 IDE'>[edit]</a></span></span></h1><ul data-tabs="tabs" class="nav tabs pos0"><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Events (2)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_PlaceHolder.event.onCursorChange" data-id="PlaceHolder.event.onCursorChange" class="memberLink"><a href="#PlaceHolder.event.onCursorChange" class="" title="PlaceHolder.event.onCursorChange (event)" data-id="PlaceHolder.event.onCursorChange">onCursorChange</a></li><li id="dropdown_PlaceHolder.event.onUpdate" data-id="PlaceHolder.event.onUpdate" class="memberLink"><a href="#PlaceHolder.event.onUpdate" class="" title="PlaceHolder.event.onUpdate (event)" data-id="PlaceHolder.event.onUpdate">onUpdate</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_PlaceHolder.new" data-id="PlaceHolder.new" class="memberLink"><a href="#PlaceHolder.new" class="" title="PlaceHolder.new (constructor)" data-id="PlaceHolder.new">new</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (5)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_PlaceHolder.cancel" data-id="PlaceHolder.cancel" class="memberLink"><a href="#PlaceHolder.cancel" class="" title="PlaceHolder.cancel (class method)" data-id="PlaceHolder.cancel">cancel</a></li><li id="dropdown_PlaceHolder.detach" data-id="PlaceHolder.detach" class="memberLink"><a href="#PlaceHolder.detach" class="" title="PlaceHolder.detach (class method)" data-id="PlaceHolder.detach">detach</a></li><li id="dropdown_PlaceHolder.hideOtherMarkers" data-id="PlaceHolder.hideOtherMarkers" class="memberLink"><a href="#PlaceHolder.hideOtherMarkers" class="" title="PlaceHolder.hideOtherMarkers (class method)" data-id="PlaceHolder.hideOtherMarkers">hideOtherMarkers</a></li><li id="dropdown_PlaceHolder.setup" data-id="PlaceHolder.setup" class="memberLink"><a href="#PlaceHolder.setup" class="" title="PlaceHolder.setup (class method)" data-id="PlaceHolder.setup">setup</a></li><li id="dropdown_PlaceHolder.showOtherMarkers" data-id="PlaceHolder.showOtherMarkers" class="memberLink"><a href="#PlaceHolder.showOtherMarkers" class="" title="PlaceHolder.showOtherMarkers (class method)" data-id="PlaceHolder.showOtherMarkers">showOtherMarkers</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li></ul></div></div><article id="PlaceHolder" data-title="PlaceHolder (class)" class="article"><div class="section description"><div class="memberContent"><p>TODO</p>
</div></div></article><h3 class="sectionHeader">Constructors</h3><article id="PlaceHolder.new" data-title="PlaceHolder.new (constructor)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="PlaceHolder.new" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="constructorIdentifier">new </span><span id="PlaceHolder.new" class="member-name methodClicker">PlaceHolder</span>(<span class="sigArgList"><a href="#nav=api&api=document" class="argument methodClicker" title="Document (class)" data-id="Document">Document</a> session, <a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> length, <a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> pos, <a href="http://www.nodemanual.org/latest/js_doc/String.html" class="argument methodClicker" title="String" data-id="String">String</a> others, <a href="http://www.nodemanual.org/latest/js_doc/String.html" class="argument methodClicker" title="String" data-id="String">String</a> mainClass, <a href="http://www.nodemanual.org/latest/js_doc/String.html" class="argument methodClicker" title="String" data-id="String">String</a> othersClass</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_PlaceHolder.new" class="ellipsis_description"><p>TODO</p>
</div><div class="description"><p>TODO</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">session</td><td class="argType" "><a href="#nav=api&api=document" class="" title="Document (class)" data-id="Document">Document</a></td><td class="argDescription "><p>Required. The document to associate with the anchor</p>
</td></tr><tr class="argumentRow "><td class="argName ">length</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The starting row position</p>
</td></tr><tr class="argumentRow "><td class="argName ">pos</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The starting column position</p>
</td></tr><tr class="argumentRow "><td class="argName ">others</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="" title="String" data-id="String">String</a></td><td class="argDescription "><p>Required. </p>
</td></tr><tr class="argumentRow "><td class="argName ">mainClass</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="" title="String" data-id="String">String</a></td><td class="argDescription "><p>Required. </p>
</td></tr><tr class="argumentRow "><td class="argName ">othersClass</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="" title="String" data-id="String">String</a></td><td class="argDescription "><p>Required. </p>
</td></tr></table></div></div></div></div></article><h3 class="sectionHeader">Events</h3><article id="PlaceHolder.event.onCursorChange" data-title="PlaceHolder.event.onCursorChange (event)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="PlaceHolder.event.onCursorChange" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="eventObjName">PlaceHolder</span><span class="eventListenerStart">.on("</span><span id="PlaceHolder.event.onCursorChange" class="member-name eventMember methodClicker">onCursorChange</span><span class="eventListenerClose">", </span><span class="eventFunctionOpen">function(</span>e<span class="eventFunctionClose">))</span></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_PlaceHolder.event.onCursorChange" class="ellipsis_description"><p>Emitted when the cursor changes.</p>
</div><div class="description"><p>Emitted when the cursor changes.</p>
</div></div></div></div></article><article id="PlaceHolder.event.onUpdate" data-title="PlaceHolder.event.onUpdate (event)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="PlaceHolder.event.onUpdate" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="eventObjName">PlaceHolder</span><span class="eventListenerStart">.on("</span><span id="PlaceHolder.event.onUpdate" class="member-name eventMember methodClicker">onUpdate</span><span class="eventListenerClose">", </span><span class="eventFunctionOpen">function(</span>e<span class="eventFunctionClose">))</span></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_PlaceHolder.event.onUpdate" class="ellipsis_description"><p>Emitted when the place holder updates.</p>
</div><div class="description"><p>Emitted when the place holder updates.</p>
</div></div></div></div></article><h3 class="sectionHeader">Methods</h3><article id="PlaceHolder.cancel" data-title="PlaceHolder.cancel (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="PlaceHolder.cancel" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="PlaceHolder.cancel" class="member-name methodClicker"><span class="sigClassName">PlaceHolder.</span><span class="sigMemberName">cancel</span></span>(<span class="sigArgList"></span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_PlaceHolder.cancel" class="ellipsis_description"><p>TODO</p>
</div><div class="description"><p>TODO</p>
</div></div></div></div></article><article id="PlaceHolder.detach" data-title="PlaceHolder.detach (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="PlaceHolder.detach" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="PlaceHolder.detach" class="member-name methodClicker"><span class="sigClassName">PlaceHolder.</span><span class="sigMemberName">detach</span></span>(<span class="sigArgList"></span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_PlaceHolder.detach" class="ellipsis_description"><p>TODO</p>
</div><div class="description"><p>TODO</p>
</div></div></div></div></article><article id="PlaceHolder.hideOtherMarkers" data-title="PlaceHolder.hideOtherMarkers (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="PlaceHolder.hideOtherMarkers" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="PlaceHolder.hideOtherMarkers" class="member-name methodClicker"><span class="sigClassName">PlaceHolder.</span><span class="sigMemberName">hideOtherMarkers</span></span>(<span class="sigArgList"></span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_PlaceHolder.hideOtherMarkers" class="ellipsis_description"><p>Hides all over markers in the <a href="#nav=api&api=edit_session" class="link-short" title="EditSession (class)" data-id="EditSession"><code>EditSession</code></a> that are not the currently selected one.</p>
</div><div class="description"><p>Hides all over markers in the <a href="#nav=api&api=edit_session" class="link-short" title="EditSession (class)" data-id="EditSession"><code>EditSession</code></a> that are not the currently selected one.</p>
</div></div></div></div></article><article id="PlaceHolder.setup" data-title="PlaceHolder.setup (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="PlaceHolder.setup" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="PlaceHolder.setup" class="member-name methodClicker"><span class="sigClassName">PlaceHolder.</span><span class="sigMemberName">setup</span></span>(<span class="sigArgList"></span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_PlaceHolder.setup" class="ellipsis_description"><p>TODO</p>
</div><div class="description"><p>TODO</p>
</div></div></div></div></article><article id="PlaceHolder.showOtherMarkers" data-title="PlaceHolder.showOtherMarkers (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="PlaceHolder.showOtherMarkers" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="PlaceHolder.showOtherMarkers" class="member-name methodClicker"><span class="sigClassName">PlaceHolder.</span><span class="sigMemberName">showOtherMarkers</span></span>(<span class="sigArgList"></span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_PlaceHolder.showOtherMarkers" class="ellipsis_description"><p>TODO</p>
</div><div class="description"><p>TODO</p>
</div></div></div></div></article></div><script defer src="./resources/javascripts/ux.js"></script><script src="./resources/javascripts/clicker.js"></script><script src="./resources/javascripts/jquery-scrollspy.js"></script><script defer src="./resources/javascripts/disqus-ext.js"></script><script defer src="./resources/javascripts/ga.js"></script><div id="disqus_thread"></div></div>
<div id="documentation" class="span9">
<div class="classContent">
<div class="membersBackground"></div>
<div class=" members pos0">
<div class=" membersContent pos0">
<h1 class="memberHeader"><span class="name">PlaceHolder</span>
</h1>
<ul data-tabs="tabs" class="nav tabs pos0">
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_PlaceHolder.new" data-id="PlaceHolder.new" class="memberLink"><a href="#PlaceHolder.new" class="" title="PlaceHolder.new (constructor)" data-id="PlaceHolder.new">new</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (7)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_PlaceHolder.cancel" data-id="PlaceHolder.cancel" class="memberLink"><a href="#PlaceHolder.cancel" class="" title="PlaceHolder.cancel (class method)" data-id="PlaceHolder.cancel">cancel</a>
</li>
<li id="dropdown_PlaceHolder.detach" data-id="PlaceHolder.detach" class="memberLink"><a href="#PlaceHolder.detach" class="" title="PlaceHolder.detach (class method)" data-id="PlaceHolder.detach">detach</a>
</li>
<li id="dropdown_PlaceHolder.hideOtherMarkers" data-id="PlaceHolder.hideOtherMarkers" class="memberLink"><a href="#PlaceHolder.hideOtherMarkers" class="" title="PlaceHolder.hideOtherMarkers (class method)" data-id="PlaceHolder.hideOtherMarkers">hideOtherMarkers</a>
</li>
<li id="dropdown_PlaceHolder.onCursorChange" data-id="PlaceHolder.onCursorChange" class="memberLink"><a href="#PlaceHolder.onCursorChange" class="" title="PlaceHolder.onCursorChange (class method)" data-id="PlaceHolder.onCursorChange">onCursorChange</a>
</li>
<li id="dropdown_PlaceHolder.onUpdate" data-id="PlaceHolder.onUpdate" class="memberLink"><a href="#PlaceHolder.onUpdate" class="" title="PlaceHolder.onUpdate (class method)" data-id="PlaceHolder.onUpdate">onUpdate</a>
</li>
<li id="dropdown_PlaceHolder.setup" data-id="PlaceHolder.setup" class="memberLink"><a href="#PlaceHolder.setup" class="" title="PlaceHolder.setup (class method)" data-id="PlaceHolder.setup">setup</a>
</li>
<li id="dropdown_PlaceHolder.showOtherMarkers" data-id="PlaceHolder.showOtherMarkers" class="memberLink"><a href="#PlaceHolder.showOtherMarkers" class="" title="PlaceHolder.showOtherMarkers (class method)" data-id="PlaceHolder.showOtherMarkers">showOtherMarkers</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
<article id="PlaceHolder" data-title="PlaceHolder (class)" class="article">
</article>
<h3 class="sectionHeader">Constructors</h3>
<article id="PlaceHolder.new" data-title="PlaceHolder.new (constructor)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="PlaceHolder.new" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span class="constructorIdentifier">new </span><span id="PlaceHolder.new" class="member-name methodClicker">PlaceHolder</span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_PlaceHolder.new" class="ellipsis_description"><ul>
<li>session (Document): The document to associate with the anchor</li>
<li>length (Number): The starting row position</li>
<li>pos (Number): The starting column position</li>
<li>others (String):</li>
<li>mainClass (String):</li>
<li>othersClass (String):</li>
</ul>
</div>
<div class="description"><ul>
<li>session (Document): The document to associate with the anchor</li>
<li>length (Number): The starting row position</li>
<li>pos (Number): The starting column position</li>
<li>others (String):</li>
<li>mainClass (String):</li>
<li>othersClass (String):</li>
</ul>
</div>
</div>
</div>
</div>
</article>
<h3 class="sectionHeader">Methods</h3>
<article id="PlaceHolder.cancel" data-title="PlaceHolder.cancel (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="PlaceHolder.cancel" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="PlaceHolder.cancel" class="member-name methodClicker"><span class="sigClassName">PlaceHolder.</span><span class="sigMemberName">cancel</span></span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_PlaceHolder.cancel" class="ellipsis_description"><p>PlaceHolder.cancel()</p>
</div>
<div class="description"><p>PlaceHolder.cancel()</p>
<p>TODO</p>
</div>
</div>
</div>
</div>
</article>
<article id="PlaceHolder.detach" data-title="PlaceHolder.detach (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="PlaceHolder.detach" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="PlaceHolder.detach" class="member-name methodClicker"><span class="sigClassName">PlaceHolder.</span><span class="sigMemberName">detach</span></span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_PlaceHolder.detach" class="ellipsis_description"><p>PlaceHolder.detach()</p>
</div>
<div class="description"><p>PlaceHolder.detach()</p>
<p>TODO</p>
</div>
</div>
</div>
</div>
</article>
<article id="PlaceHolder.hideOtherMarkers" data-title="PlaceHolder.hideOtherMarkers (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="PlaceHolder.hideOtherMarkers" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="PlaceHolder.hideOtherMarkers" class="member-name methodClicker"><span class="sigClassName">PlaceHolder.</span><span class="sigMemberName">hideOtherMarkers</span></span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_PlaceHolder.hideOtherMarkers" class="ellipsis_description"><p>PlaceHolder.hideOtherMarkers()</p>
</div>
<div class="description"><p>PlaceHolder.hideOtherMarkers()</p>
<p>Hides all over markers in the <a href="edit_session.html" class="link-short" title="EditSession (class)" data-id="EditSession"><code>EditSession</code></a> that are not the currently selected one.</p>
</div>
</div>
</div>
</div>
</article>
<article id="PlaceHolder.onCursorChange" data-title="PlaceHolder.onCursorChange (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="PlaceHolder.onCursorChange" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="PlaceHolder.onCursorChange" class="member-name methodClicker"><span class="sigClassName">PlaceHolder.</span><span class="sigMemberName">onCursorChange</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="argument methodClicker" title="Object" data-id="Object">Object</a> event</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_PlaceHolder.onCursorChange" class="ellipsis_description"><p>PlaceHolder@onCursorChange(e)</p>
</div>
<div class="description"><p>PlaceHolder@onCursorChange(e)</p>
<p>Emitted when the cursor changes.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">event</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. </p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="PlaceHolder.onUpdate" data-title="PlaceHolder.onUpdate (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="PlaceHolder.onUpdate" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="PlaceHolder.onUpdate" class="member-name methodClicker"><span class="sigClassName">PlaceHolder.</span><span class="sigMemberName">onUpdate</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="argument methodClicker" title="Object" data-id="Object">Object</a> event</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_PlaceHolder.onUpdate" class="ellipsis_description"><p>PlaceHolder@onUpdate(e)</p>
</div>
<div class="description"><p>PlaceHolder@onUpdate(e)</p>
<p>Emitted when the place holder updates.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">event</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. </p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="PlaceHolder.setup" data-title="PlaceHolder.setup (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="PlaceHolder.setup" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="PlaceHolder.setup" class="member-name methodClicker"><span class="sigClassName">PlaceHolder.</span><span class="sigMemberName">setup</span></span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_PlaceHolder.setup" class="ellipsis_description"><p>PlaceHolder.setup()</p>
</div>
<div class="description"><p>PlaceHolder.setup()</p>
<p>TODO</p>
</div>
</div>
</div>
</div>
</article>
<article id="PlaceHolder.showOtherMarkers" data-title="PlaceHolder.showOtherMarkers (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="PlaceHolder.showOtherMarkers" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="PlaceHolder.showOtherMarkers" class="member-name methodClicker"><span class="sigClassName">PlaceHolder.</span><span class="sigMemberName">showOtherMarkers</span></span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_PlaceHolder.showOtherMarkers" class="ellipsis_description"><p>PlaceHolder.showOtherMarkers()</p>
</div>
<div class="description"><p>PlaceHolder.showOtherMarkers()</p>
<p>TODO</p>
</div>
</div>
</div>
</div>
</article>
</div>
<script defer src="./resources/javascripts/ux.js"></script>
<script src="./resources/javascripts/clicker.js"></script>
<script src="./resources/javascripts/jquery-scrollspy.js"></script>
<script defer src="./resources/javascripts/disqus-ext.js"></script>
<script defer src="./resources/javascripts/ga.js"></script>
<div id="disqus_thread"></div>
</div>

File diff suppressed because one or more lines are too long

View file

@ -1,3 +1,55 @@
<div id="documentation" class="span8"><div class="classContent"><div class="membersBackground"></div><div class=" members pos0"><div class=" membersContent pos0"><h1 class="memberHeader"><span class="name">RenderLoop<span class="editInC9"> <a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%2Face.git' title='Edit in Cloud9 IDE'>[edit]</a></span></span></h1><ul data-tabs="tabs" class="nav tabs pos0"><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_RenderLoop.new" data-id="RenderLoop.new" class="memberLink"><a href="#RenderLoop.new" class="" title="RenderLoop.new (constructor)" data-id="RenderLoop.new">new</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_RenderLoop.schedule" data-id="RenderLoop.schedule" class="memberLink"><a href="#RenderLoop.schedule" class="" title="RenderLoop.schedule (class method)" data-id="RenderLoop.schedule">schedule</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li></ul></div></div><article id="RenderLoop" data-title="RenderLoop (class)" class="article"><div class="section description"><div class="memberContent"><p>Batches changes (that force something to be redrawn) in the background.</p>
</div></div></article><h3 class="sectionHeader">Constructors</h3><article id="RenderLoop.new" data-title="RenderLoop.new (constructor)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="RenderLoop.new" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="constructorIdentifier">new </span><span id="RenderLoop.new" class="member-name methodClicker">RenderLoop</span>(<span class="sigArgList">onRender, win</span>)</li></ul><ul class="metaInfo"><li><span class="label internal">Internal</span></li></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_RenderLoop.new" class="ellipsis_description"></div><div class="description"></div></div></div></div></article><h3 class="sectionHeader">Methods</h3><article id="RenderLoop.schedule" data-title="RenderLoop.schedule (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="RenderLoop.schedule" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="RenderLoop.schedule" class="member-name methodClicker"><span class="sigClassName">RenderLoop.</span><span class="sigMemberName">schedule</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Array.html" class="argument methodClicker" title="Array" data-id="Array">Array</a> change</span>)</li></ul><ul class="metaInfo"><li><span class="label internal">Internal</span></li></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_RenderLoop.schedule" class="ellipsis_description"></div><div class="description"><h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">change</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Array.html" class="" title="Array" data-id="Array">Array</a></td><td class="argDescription "><p>Required. </p>
</td></tr></table></div></div></div></div></article></div><script defer src="./resources/javascripts/ux.js"></script><script src="./resources/javascripts/clicker.js"></script><script src="./resources/javascripts/jquery-scrollspy.js"></script><script defer src="./resources/javascripts/disqus-ext.js"></script><script defer src="./resources/javascripts/ga.js"></script><div id="disqus_thread"></div></div>
<div id="documentation" class="span9">
<div class="classContent">
<div class="membersBackground"></div>
<div class=" members pos0">
<div class=" membersContent pos0">
<h1 class="memberHeader"><span class="name">RenderLoop</span>
</h1>
<ul data-tabs="tabs" class="nav tabs pos0">
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
<article id="RenderLoop" data-title="RenderLoop (class)" class="article">
<div class="section description">
<div class="memberContent"><p>Batches changes (that force something to be redrawn) in the background.</p>
</div>
</div>
</article>
</div>
<script defer src="./resources/javascripts/ux.js"></script>
<script src="./resources/javascripts/clicker.js"></script>
<script src="./resources/javascripts/jquery-scrollspy.js"></script>
<script defer src="./resources/javascripts/disqus-ext.js"></script>
<script defer src="./resources/javascripts/ga.js"></script>
<div id="disqus_thread"></div>
</div>

View file

@ -14,13 +14,16 @@
color: black;
}
#documentation code {
pre {
background-color: #FFFFFF;
}
code {
font-size: 12px;
line-height: 16px;
font-family: 'Ubuntu Mono',Monaco,Consolas,monospace !important;
background-color: #F9F9F9;
border-radius: 3px 3px 3px 3px;
box-shadow: 0 0 2px #888888;
display: inline-block;
padding: 0 4px;
margin: 2px 1px;
@ -61,8 +64,6 @@
}
#documentation p {
font-size: 13px;
line-height : 20px;
margin-bottom : 13px;
}
#documentation li p:last-child {
margin-bottom : 5px;
@ -141,26 +142,6 @@
Menu venue
*/
form.navbar-search {
float: none;
}
form.navbar-search .search-query {
background-color: #FFFFFF;
border-color: #999;
-webkit-transition: border 0.3s;
-moz-transition: border 0.3s;
font-size: 14px;
line-height: 16px;
}
form.navbar-search .search-query:focus, form.navbar-search .search-query:active {
border: 1px solid #666;
}
.navbar-search .search-query:focus, .navbar-search .search-query.focused {
padding: 4px 9px;
}
h3.api_title {
padding-top: 10px;
@ -200,50 +181,6 @@ ul.menu {
Members and the tabs that represent them
*/
.members {
/* width: 800px; */
/*width: 700px;*/
/* margin: 0 10px;*/
height: 42px;
left: 0;
/* position: fixed;*/
top: 0;
/* transition-duration: 300ms, 300ms;
transition-property: box-shadow, height;
transition-timing-function: ease-out, ease-out;
-moz-transition-duration: 300ms, 300ms;
-moz-transition-property: -moz-box-shadow, height;
-moz-transition-timing-function: ease-out, ease-out;
-o-transition-duration: 300ms, 300ms;
-o-transition-property: -o-box-shadow, height;
-o-transition-timing-function: ease-out, ease-out;
-webkit-transition-duration: 300ms, 300ms;
-webkit-transition-property: -webkit-box-shadow, height;
-webkit-transition-timing-function: ease-out, ease-out;*/
/* width: 100%;*/
/*transition-duration: 300ms;
transition-property: box-shadow;
transition-timing-function: ease-out;
-moz-transition-duration: 300ms, 300ms;
-moz-transition-property: -moz-box-shadow, height;
-moz-transition-timing-function: ease-out, ease-out;
-o-transition-duration: 300ms;
-o-transition-property: -o-box-shadow;
-o-transition-timing-function: ease-out;*/
-webkit-transition-duration: 400ms, 0ms;
-webkit-transition-property: -webkit-box-shadow, background;
-webkit-transition-timing-function: ease-out, ease-out;
z-index: 100;
padding-bottom : 5px;
overflow: visible !important;
/* background: #FFF;
width: 100%;
padding-bottom: 13px;
top: 40px;
position: fixed;*/
}
.srolled .members {
width: 100%;
/* -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.35);
@ -339,13 +276,18 @@ ul.menu {
}
ul.tabs li:first-child ul{
left: -63px;
}
.tabs a.menu:after, .tabs .dropdown-toggle:after {
margin-top: 22px;
}
.dropdown .caret {
margin-top: 14px;
color: #6D8CA0;
.nav .dropdown-toggle .caret {
margin-top: 12px;
border-top-color: #6D8CA0;
border-bottom-color: #6D8CA0;
}
li.dropdown {
@ -393,14 +335,10 @@ li.dropdown {
margin-left: 6px;
}
.members .tabs ul li {
font-weight: bold;
}
.memberLink a {
margin-left: 0 !important;
}
.menu-dropdown, .dropdown-menu {
.menu-dropdown {
min-width : 105px;
max-height: 350px;
overflow: auto;
@ -413,9 +351,6 @@ li.dropdown {
background-color: #ffffff;
color: #000000;
}
.dropdown-menu {
border-top: none;
}
.tabs a.menu:after, .tabs .dropdown-toggle:after {
margin-top: 13px;
@ -463,9 +398,8 @@ li.dropdown {
}
.tabs .menu-dropdown, .tabs .dropdown-menu {
border-radius: 0 0 6px 6px;
top: 32px;
right: 0px;
width: 150px;
left: 10px;
width: 160px;
}
.srolled .tabs .menu-dropdown, .srolled .tabs .dropdown-menu {
top: 32px;
@ -501,10 +435,6 @@ ul.tabs .double ul, ul.tabs .triple ul, ul.tabs .quad ul{
.content {
height: 100%;
}
.content .row {
margin-left: auto;
margin-right: auto;
}
header.filler {
position: relative;
@ -512,11 +442,6 @@ header.filler {
width: 100%;
}
.centerpiece {
min-height: 100%;
padding: 20px 0;
}
/*
.container-fluid .row-fluid {
width: 1000px;
@ -530,26 +455,21 @@ header.filler {
margin-bottom: 3px;
}
#sidebar {
margin-top: 5px;
/*background: url(../images/sidebar-border.png) repeat-y right 0;*/
margin-left: 12px;
/* width: 280px;*/
/* overflow: auto;*/
padding-right : 10px;
}
#sidebar h3 a,
#sidebar h3 a:hover {
color: #404040;
}
#sidebarContainer {
padding-top: 20px;
}
#mainContent {
margin-left: 30px;
}
#documentation {
padding-left: 15px;
padding-top: 35px;
padding-bottom: 10px;
}
@ -571,7 +491,6 @@ div#documentation article:last-child {
}
#documentation article.article.methodToggleOpen {
background: rgba(255, 255, 255, 0.5);
padding: 20px;
font-size: 13px;
line-height: 24px;
margin: 0 0 10px 0;
@ -707,7 +626,7 @@ li.signature {
.eventObjName {
font-style: italic;
}
.eventListenerStart, .eventFunctionOpen, .eventFunctionClose {
.eventListenerStart, .eventListenerClose, .eventFunctionOpen, .eventFunctionClose {
color: #999999;
}
.eventMember {
@ -743,6 +662,11 @@ li.signature {
text-transform: capitalize;
}
.undocumented {
background-color: #B94A48;
color: #ffffff;
}
#documentation .alias a, #documentation .related-to a {
color: #ffffff;
/* text-decoration: underline; */
@ -774,8 +698,8 @@ li.signature {
color: #ffffff;
}
.description h4 {
padding-top: 10px;
font-size: 18px;
margin: 20px 0 10px;
line-height : 18px;
}
@ -798,10 +722,6 @@ li.signature {
Everyday I'm togglin'
*/
#documentation h3 {
font-size: 24px;
margin-top: 5px;
}
#documentation i.methodToggle {
cursor: pointer;
color: #9f9f9f;
@ -830,7 +750,6 @@ li.signature {
}
#documentation h3.sectionHeader {
margin: 10px 0 17px 0;
line-height : 24px;
}

View file

@ -1,689 +0,0 @@
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block;}
audio,canvas,video{display:inline-block;*display:inline;*zoom:1;}
audio:not([controls]){display:none;}
html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;}
a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}
a:hover,a:active{outline:0;}
sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline;}
sup{top:-0.5em;}
sub{bottom:-0.25em;}
img{height:auto;border:0;-ms-interpolation-mode:bicubic;vertical-align:middle;}
button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle;}
button,input{*overflow:visible;line-height:normal;}
button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0;}
button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button;}
input[type="search"]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;}
input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;}
textarea{overflow:auto;vertical-align:top;}
.clearfix{*zoom:1;}.clearfix:before,.clearfix:after{display:table;content:"";}
.clearfix:after{clear:both;}
.hide-text{overflow:hidden;text-indent:100%;white-space:nowrap;}
.input-block-level{display:block;width:100%;min-height:28px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;}
body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;color:#333333;background-color:#ffffff;}
a{color:#0088cc;text-decoration:none;}
a:hover{color:#005580;text-decoration:underline;}
.row{margin-left:-20px;*zoom:1;}.row:before,.row:after{display:table;content:"";}
.row:after{clear:both;}
[class*="span"]{float:left;margin-left:20px;}
.container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px;}
.span12{width:940px;}
.span11{width:860px;}
.span10{width:780px;}
.span9{width:700px;}
.span8{width:620px;}
.span7{width:540px;}
.span6{width:460px;}
.span5{width:380px;}
.span4{width:300px;}
.span3{width:220px;}
.span2{width:140px;}
.span1{width:60px;}
.offset12{margin-left:980px;}
.offset11{margin-left:900px;}
.offset10{margin-left:820px;}
.offset9{margin-left:740px;}
.offset8{margin-left:660px;}
.offset7{margin-left:580px;}
.offset6{margin-left:500px;}
.offset5{margin-left:420px;}
.offset4{margin-left:340px;}
.offset3{margin-left:260px;}
.offset2{margin-left:180px;}
.offset1{margin-left:100px;}
.row-fluid{width:100%;*zoom:1;}.row-fluid:before,.row-fluid:after{display:table;content:"";}
.row-fluid:after{clear:both;}
.row-fluid>[class*="span"]{float:left;margin-left:2.127659574%;}
.row-fluid>[class*="span"]:first-child{margin-left:0;}
.row-fluid > .span12{width:99.99999998999999%;}
.row-fluid > .span11{width:91.489361693%;}
.row-fluid > .span10{width:82.97872339599999%;}
.row-fluid > .span9{width:74.468085099%;}
.row-fluid > .span8{width:65.95744680199999%;}
.row-fluid > .span7{width:57.446808505%;}
.row-fluid > .span6{width:48.93617020799999%;}
.row-fluid > .span5{width:40.425531911%;}
.row-fluid > .span4{width:31.914893614%;}
.row-fluid > .span3{width:23.404255317%;}
.row-fluid > .span2{width:14.89361702%;}
.row-fluid > .span1{width:6.382978723%;}
.container{margin-left:auto;margin-right:auto;*zoom:1;}.container:before,.container:after{display:table;content:"";}
.container:after{clear:both;}
.container-fluid{padding-left:20px;padding-right:20px;*zoom:1;}.container-fluid:before,.container-fluid:after{display:table;content:"";}
.container-fluid:after{clear:both;}
p{margin:0 0 9px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;}p small{font-size:11px;color:#999999;}
.lead{margin-bottom:18px;font-size:20px;font-weight:200;line-height:27px;}
h1,h2,h3,h4,h5,h6{margin:0;font-family:inherit;font-weight:bold;color:inherit;text-rendering:optimizelegibility;}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-weight:normal;color:#999999;}
h1{font-size:30px;line-height:36px;}h1 small{font-size:18px;}
h2{font-size:24px;line-height:36px;}h2 small{font-size:18px;}
h3{line-height:27px;font-size:18px;}h3 small{font-size:14px;}
h4,h5,h6{line-height:18px;}
h4{font-size:14px;}h4 small{font-size:12px;}
h5{font-size:12px;}
h6{font-size:11px;color:#999999;text-transform:uppercase;}
.page-header{padding-bottom:17px;margin:18px 0;border-bottom:1px solid #eeeeee;}
.page-header h1{line-height:1;}
ul,ol{padding:0;margin:0 0 9px 25px;}
ul ul,ul ol,ol ol,ol ul{margin-bottom:0;}
ul{list-style:disc;}
ol{list-style:decimal;}
li{line-height:18px;}
ul.unstyled,ol.unstyled{margin-left:0;list-style:none;}
dl{margin-bottom:18px;}
dt,dd{line-height:18px;}
dt{font-weight:bold;line-height:17px;}
dd{margin-left:9px;}
.dl-horizontal dt{float:left;clear:left;width:120px;text-align:right;}
.dl-horizontal dd{margin-left:130px;}
hr{margin:18px 0;border:0;border-top:1px solid #eeeeee;border-bottom:1px solid #ffffff;}
strong{font-weight:bold;}
em{font-style:italic;}
.muted{color:#999999;}
abbr[title]{border-bottom:1px dotted #ddd;cursor:help;}
abbr.initialism{font-size:90%;text-transform:uppercase;}
blockquote{padding:0 0 0 15px;margin:0 0 18px;border-left:5px solid #eeeeee;}blockquote p{margin-bottom:0;font-size:16px;font-weight:300;line-height:22.5px;}
blockquote small{display:block;line-height:18px;color:#999999;}blockquote small:before{content:'\2014 \00A0';}
blockquote.pull-right{float:right;padding-left:0;padding-right:15px;border-left:0;border-right:5px solid #eeeeee;}blockquote.pull-right p,blockquote.pull-right small{text-align:right;}
q:before,q:after,blockquote:before,blockquote:after{content:"";}
address{display:block;margin-bottom:18px;line-height:18px;font-style:normal;}
small{font-size:100%;}
cite{font-style:normal;}
code,pre{padding:0 3px 2px;font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;color:#333333;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
code{padding:2px 4px;color:#d14;background-color:#f7f7f9;border:1px solid #e1e1e8;}
pre{display:block;padding:8.5px;margin:0 0 9px;font-size:12.025px;line-height:18px;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0, 0, 0, 0.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;white-space:pre;white-space:pre-wrap;word-break:break-all;word-wrap:break-word;}pre.prettyprint{margin-bottom:18px;}
pre code{padding:0;color:inherit;background-color:transparent;border:0;}
.pre-scrollable{max-height:340px;overflow-y:scroll;}
form{margin:0 0 18px;}
fieldset{padding:0;margin:0;border:0;}
legend{display:block;width:100%;padding:0;margin-bottom:27px;font-size:19.5px;line-height:36px;color:#333333;border:0;border-bottom:1px solid #eee;}legend small{font-size:13.5px;color:#999999;}
label,input,button,select,textarea{font-size:13px;font-weight:normal;line-height:18px;}
input,button,select,textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;}
label{display:block;margin-bottom:5px;color:#333333;}
input,textarea,select,.uneditable-input{display:inline-block;width:210px;height:18px;padding:4px;margin-bottom:9px;font-size:13px;line-height:18px;color:#555555;border:1px solid #cccccc;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
.uneditable-textarea{width:auto;height:auto;}
label input,label textarea,label select{display:block;}
input[type="image"],input[type="checkbox"],input[type="radio"]{width:auto;height:auto;padding:0;margin:3px 0;*margin-top:0;line-height:normal;cursor:pointer;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;border:0 \9;}
input[type="image"]{border:0;}
input[type="file"]{width:auto;padding:initial;line-height:initial;border:initial;background-color:#ffffff;background-color:initial;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
input[type="button"],input[type="reset"],input[type="submit"]{width:auto;height:auto;}
select,input[type="file"]{height:28px;*margin-top:4px;line-height:28px;}
input[type="file"]{line-height:18px \9;}
select{width:220px;background-color:#ffffff;}
select[multiple],select[size]{height:auto;}
input[type="image"]{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
textarea{height:auto;}
input[type="hidden"]{display:none;}
.radio,.checkbox{padding-left:18px;}
.radio input[type="radio"],.checkbox input[type="checkbox"]{float:left;margin-left:-18px;}
.controls>.radio:first-child,.controls>.checkbox:first-child{padding-top:5px;}
.radio.inline,.checkbox.inline{display:inline-block;padding-top:5px;margin-bottom:0;vertical-align:middle;}
.radio.inline+.radio.inline,.checkbox.inline+.checkbox.inline{margin-left:10px;}
input,textarea{-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-webkit-transition:border linear 0.2s,box-shadow linear 0.2s;-moz-transition:border linear 0.2s,box-shadow linear 0.2s;-ms-transition:border linear 0.2s,box-shadow linear 0.2s;-o-transition:border linear 0.2s,box-shadow linear 0.2s;transition:border linear 0.2s,box-shadow linear 0.2s;}
input:focus,textarea:focus{border-color:rgba(82, 168, 236, 0.8);-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);outline:0;outline:thin dotted \9;}
input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus,select:focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}
.input-mini{width:60px;}
.input-small{width:90px;}
.input-medium{width:150px;}
.input-large{width:210px;}
.input-xlarge{width:270px;}
.input-xxlarge{width:530px;}
input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input{float:none;margin-left:0;}
input,textarea,.uneditable-input{margin-left:0;}
input.span12, textarea.span12, .uneditable-input.span12{width:930px;}
input.span11, textarea.span11, .uneditable-input.span11{width:850px;}
input.span10, textarea.span10, .uneditable-input.span10{width:770px;}
input.span9, textarea.span9, .uneditable-input.span9{width:690px;}
input.span8, textarea.span8, .uneditable-input.span8{width:610px;}
input.span7, textarea.span7, .uneditable-input.span7{width:530px;}
input.span6, textarea.span6, .uneditable-input.span6{width:450px;}
input.span5, textarea.span5, .uneditable-input.span5{width:370px;}
input.span4, textarea.span4, .uneditable-input.span4{width:290px;}
input.span3, textarea.span3, .uneditable-input.span3{width:210px;}
input.span2, textarea.span2, .uneditable-input.span2{width:130px;}
input.span1, textarea.span1, .uneditable-input.span1{width:50px;}
input[disabled],select[disabled],textarea[disabled],input[readonly],select[readonly],textarea[readonly]{background-color:#eeeeee;border-color:#ddd;cursor:not-allowed;}
.control-group.warning>label,.control-group.warning .help-block,.control-group.warning .help-inline{color:#c09853;}
.control-group.warning input,.control-group.warning select,.control-group.warning textarea{color:#c09853;border-color:#c09853;}.control-group.warning input:focus,.control-group.warning select:focus,.control-group.warning textarea:focus{border-color:#a47e3c;-webkit-box-shadow:0 0 6px #dbc59e;-moz-box-shadow:0 0 6px #dbc59e;box-shadow:0 0 6px #dbc59e;}
.control-group.warning .input-prepend .add-on,.control-group.warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853;}
.control-group.error>label,.control-group.error .help-block,.control-group.error .help-inline{color:#b94a48;}
.control-group.error input,.control-group.error select,.control-group.error textarea{color:#b94a48;border-color:#b94a48;}.control-group.error input:focus,.control-group.error select:focus,.control-group.error textarea:focus{border-color:#953b39;-webkit-box-shadow:0 0 6px #d59392;-moz-box-shadow:0 0 6px #d59392;box-shadow:0 0 6px #d59392;}
.control-group.error .input-prepend .add-on,.control-group.error .input-append .add-on{color:#b94a48;background-color:#f2dede;border-color:#b94a48;}
.control-group.success>label,.control-group.success .help-block,.control-group.success .help-inline{color:#468847;}
.control-group.success input,.control-group.success select,.control-group.success textarea{color:#468847;border-color:#468847;}.control-group.success input:focus,.control-group.success select:focus,.control-group.success textarea:focus{border-color:#356635;-webkit-box-shadow:0 0 6px #7aba7b;-moz-box-shadow:0 0 6px #7aba7b;box-shadow:0 0 6px #7aba7b;}
.control-group.success .input-prepend .add-on,.control-group.success .input-append .add-on{color:#468847;background-color:#dff0d8;border-color:#468847;}
input:focus:required:invalid,textarea:focus:required:invalid,select:focus:required:invalid{color:#b94a48;border-color:#ee5f5b;}input:focus:required:invalid:focus,textarea:focus:required:invalid:focus,select:focus:required:invalid:focus{border-color:#e9322d;-webkit-box-shadow:0 0 6px #f8b9b7;-moz-box-shadow:0 0 6px #f8b9b7;box-shadow:0 0 6px #f8b9b7;}
.form-actions{padding:17px 20px 18px;margin-top:18px;margin-bottom:18px;background-color:#eeeeee;border-top:1px solid #ddd;*zoom:1;}.form-actions:before,.form-actions:after{display:table;content:"";}
.form-actions:after{clear:both;}
.uneditable-input{display:block;background-color:#ffffff;border-color:#eee;-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);cursor:not-allowed;}
:-moz-placeholder{color:#999999;}
::-webkit-input-placeholder{color:#999999;}
.help-block,.help-inline{color:#555555;}
.help-block{display:block;margin-bottom:9px;}
.help-inline{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;padding-left:5px;}
.input-prepend,.input-append{margin-bottom:5px;}.input-prepend input,.input-append input,.input-prepend select,.input-append select,.input-prepend .uneditable-input,.input-append .uneditable-input{*margin-left:0;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;}.input-prepend input:focus,.input-append input:focus,.input-prepend select:focus,.input-append select:focus,.input-prepend .uneditable-input:focus,.input-append .uneditable-input:focus{position:relative;z-index:2;}
.input-prepend .uneditable-input,.input-append .uneditable-input{border-left-color:#ccc;}
.input-prepend .add-on,.input-append .add-on{display:inline-block;width:auto;min-width:16px;height:18px;padding:4px 5px;font-weight:normal;line-height:18px;text-align:center;text-shadow:0 1px 0 #ffffff;vertical-align:middle;background-color:#eeeeee;border:1px solid #ccc;}
.input-prepend .add-on,.input-append .add-on,.input-prepend .btn,.input-append .btn{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;}
.input-prepend .active,.input-append .active{background-color:#a9dba9;border-color:#46a546;}
.input-prepend .add-on,.input-prepend .btn{margin-right:-1px;}
.input-append input,.input-append select .uneditable-input{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;}
.input-append .uneditable-input{border-left-color:#eee;border-right-color:#ccc;}
.input-append .add-on,.input-append .btn{margin-left:-1px;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;}
.input-prepend.input-append input,.input-prepend.input-append select,.input-prepend.input-append .uneditable-input{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
.input-prepend.input-append .add-on:first-child,.input-prepend.input-append .btn:first-child{margin-right:-1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;}
.input-prepend.input-append .add-on:last-child,.input-prepend.input-append .btn:last-child{margin-left:-1px;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;}
.search-query{padding-left:14px;padding-right:14px;margin-bottom:0;-webkit-border-radius:14px;-moz-border-radius:14px;border-radius:14px;}
.form-search input,.form-inline input,.form-horizontal input,.form-search textarea,.form-inline textarea,.form-horizontal textarea,.form-search select,.form-inline select,.form-horizontal select,.form-search .help-inline,.form-inline .help-inline,.form-horizontal .help-inline,.form-search .uneditable-input,.form-inline .uneditable-input,.form-horizontal .uneditable-input,.form-search .input-prepend,.form-inline .input-prepend,.form-horizontal .input-prepend,.form-search .input-append,.form-inline .input-append,.form-horizontal .input-append{display:inline-block;margin-bottom:0;}
.form-search .hide,.form-inline .hide,.form-horizontal .hide{display:none;}
.form-search label,.form-inline label{display:inline-block;}
.form-search .input-append,.form-inline .input-append,.form-search .input-prepend,.form-inline .input-prepend{margin-bottom:0;}
.form-search .radio,.form-search .checkbox,.form-inline .radio,.form-inline .checkbox{padding-left:0;margin-bottom:0;vertical-align:middle;}
.form-search .radio input[type="radio"],.form-search .checkbox input[type="checkbox"],.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{float:left;margin-left:0;margin-right:3px;}
.control-group{margin-bottom:9px;}
legend+.control-group{margin-top:18px;-webkit-margin-top-collapse:separate;}
.form-horizontal .control-group{margin-bottom:18px;*zoom:1;}.form-horizontal .control-group:before,.form-horizontal .control-group:after{display:table;content:"";}
.form-horizontal .control-group:after{clear:both;}
.form-horizontal .control-label{float:left;width:140px;padding-top:5px;text-align:right;}
.form-horizontal .controls{margin-left:160px;*display:inline-block;*margin-left:0;*padding-left:20px;}
.form-horizontal .help-block{margin-top:9px;margin-bottom:0;}
.form-horizontal .form-actions{padding-left:160px;}
table{max-width:100%;border-collapse:collapse;border-spacing:0;background-color:transparent;}
.table{width:100%;margin-bottom:18px;}.table th,.table td{padding:8px;line-height:18px;text-align:left;vertical-align:top;border-top:1px solid #dddddd;}
.table th{font-weight:bold;}
.table thead th{vertical-align:bottom;}
.table colgroup+thead tr:first-child th,.table colgroup+thead tr:first-child td,.table thead:first-child tr:first-child th,.table thead:first-child tr:first-child td{border-top:0;}
.table tbody+tbody{border-top:2px solid #dddddd;}
.table-condensed th,.table-condensed td{padding:4px 5px;}
.table-bordered{border:1px solid #dddddd;border-left:0;border-collapse:separate;*border-collapse:collapsed;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}.table-bordered th,.table-bordered td{border-left:1px solid #dddddd;}
.table-bordered thead:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child td{border-top:0;}
.table-bordered thead:first-child tr:first-child th:first-child,.table-bordered tbody:first-child tr:first-child td:first-child{-webkit-border-radius:4px 0 0 0;-moz-border-radius:4px 0 0 0;border-radius:4px 0 0 0;}
.table-bordered thead:first-child tr:first-child th:last-child,.table-bordered tbody:first-child tr:first-child td:last-child{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0;}
.table-bordered thead:last-child tr:last-child th:first-child,.table-bordered tbody:last-child tr:last-child td:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px;}
.table-bordered thead:last-child tr:last-child th:last-child,.table-bordered tbody:last-child tr:last-child td:last-child{-webkit-border-radius:0 0 4px 0;-moz-border-radius:0 0 4px 0;border-radius:0 0 4px 0;}
.table-striped tbody tr:nth-child(odd) td,.table-striped tbody tr:nth-child(odd) th{background-color:#f9f9f9;}
.table tbody tr:hover td,.table tbody tr:hover th{background-color:#f5f5f5;}
table .span1{float:none;width:44px;margin-left:0;}
table .span2{float:none;width:124px;margin-left:0;}
table .span3{float:none;width:204px;margin-left:0;}
table .span4{float:none;width:284px;margin-left:0;}
table .span5{float:none;width:364px;margin-left:0;}
table .span6{float:none;width:444px;margin-left:0;}
table .span7{float:none;width:524px;margin-left:0;}
table .span8{float:none;width:604px;margin-left:0;}
table .span9{float:none;width:684px;margin-left:0;}
table .span10{float:none;width:764px;margin-left:0;}
table .span11{float:none;width:844px;margin-left:0;}
table .span12{float:none;width:924px;margin-left:0;}
table .span13{float:none;width:1004px;margin-left:0;}
table .span14{float:none;width:1084px;margin-left:0;}
table .span15{float:none;width:1164px;margin-left:0;}
table .span16{float:none;width:1244px;margin-left:0;}
table .span17{float:none;width:1324px;margin-left:0;}
table .span18{float:none;width:1404px;margin-left:0;}
table .span19{float:none;width:1484px;margin-left:0;}
table .span20{float:none;width:1564px;margin-left:0;}
table .span21{float:none;width:1644px;margin-left:0;}
table .span22{float:none;width:1724px;margin-left:0;}
table .span23{float:none;width:1804px;margin-left:0;}
table .span24{float:none;width:1884px;margin-left:0;}
[class^="icon-"],[class*=" icon-"]{display:inline-block;width:14px;height:14px;line-height:14px;vertical-align:text-top;background-image:url("../img/glyphicons-halflings.png");background-position:14px 14px;background-repeat:no-repeat;*margin-right:.3em;}[class^="icon-"]:last-child,[class*=" icon-"]:last-child{*margin-left:0;}
.icon-white{background-image:url("../img/glyphicons-halflings-white.png");}
.icon-glass{background-position:0 0;}
.icon-music{background-position:-24px 0;}
.icon-search{background-position:-48px 0;}
.icon-envelope{background-position:-72px 0;}
.icon-heart{background-position:-96px 0;}
.icon-star{background-position:-120px 0;}
.icon-star-empty{background-position:-144px 0;}
.icon-user{background-position:-168px 0;}
.icon-film{background-position:-192px 0;}
.icon-th-large{background-position:-216px 0;}
.icon-th{background-position:-240px 0;}
.icon-th-list{background-position:-264px 0;}
.icon-ok{background-position:-288px 0;}
.icon-remove{background-position:-312px 0;}
.icon-zoom-in{background-position:-336px 0;}
.icon-zoom-out{background-position:-360px 0;}
.icon-off{background-position:-384px 0;}
.icon-signal{background-position:-408px 0;}
.icon-cog{background-position:-432px 0;}
.icon-trash{background-position:-456px 0;}
.icon-home{background-position:0 -24px;}
.icon-file{background-position:-24px -24px;}
.icon-time{background-position:-48px -24px;}
.icon-road{background-position:-72px -24px;}
.icon-download-alt{background-position:-96px -24px;}
.icon-download{background-position:-120px -24px;}
.icon-upload{background-position:-144px -24px;}
.icon-inbox{background-position:-168px -24px;}
.icon-play-circle{background-position:-192px -24px;}
.icon-repeat{background-position:-216px -24px;}
.icon-refresh{background-position:-240px -24px;}
.icon-list-alt{background-position:-264px -24px;}
.icon-lock{background-position:-287px -24px;}
.icon-flag{background-position:-312px -24px;}
.icon-headphones{background-position:-336px -24px;}
.icon-volume-off{background-position:-360px -24px;}
.icon-volume-down{background-position:-384px -24px;}
.icon-volume-up{background-position:-408px -24px;}
.icon-qrcode{background-position:-432px -24px;}
.icon-barcode{background-position:-456px -24px;}
.icon-tag{background-position:0 -48px;}
.icon-tags{background-position:-25px -48px;}
.icon-book{background-position:-48px -48px;}
.icon-bookmark{background-position:-72px -48px;}
.icon-print{background-position:-96px -48px;}
.icon-camera{background-position:-120px -48px;}
.icon-font{background-position:-144px -48px;}
.icon-bold{background-position:-167px -48px;}
.icon-italic{background-position:-192px -48px;}
.icon-text-height{background-position:-216px -48px;}
.icon-text-width{background-position:-240px -48px;}
.icon-align-left{background-position:-264px -48px;}
.icon-align-center{background-position:-288px -48px;}
.icon-align-right{background-position:-312px -48px;}
.icon-align-justify{background-position:-336px -48px;}
.icon-list{background-position:-360px -48px;}
.icon-indent-left{background-position:-384px -48px;}
.icon-indent-right{background-position:-408px -48px;}
.icon-facetime-video{background-position:-432px -48px;}
.icon-picture{background-position:-456px -48px;}
.icon-pencil{background-position:0 -72px;}
.icon-map-marker{background-position:-24px -72px;}
.icon-adjust{background-position:-48px -72px;}
.icon-tint{background-position:-72px -72px;}
.icon-edit{background-position:-96px -72px;}
.icon-share{background-position:-120px -72px;}
.icon-check{background-position:-144px -72px;}
.icon-move{background-position:-168px -72px;}
.icon-step-backward{background-position:-192px -72px;}
.icon-fast-backward{background-position:-216px -72px;}
.icon-backward{background-position:-240px -72px;}
.icon-play{background-position:-264px -72px;}
.icon-pause{background-position:-288px -72px;}
.icon-stop{background-position:-312px -72px;}
.icon-forward{background-position:-336px -72px;}
.icon-fast-forward{background-position:-360px -72px;}
.icon-step-forward{background-position:-384px -72px;}
.icon-eject{background-position:-408px -72px;}
.icon-chevron-left{background-position:-432px -72px;}
.icon-chevron-right{background-position:-456px -72px;}
.icon-plus-sign{background-position:0 -96px;}
.icon-minus-sign{background-position:-24px -96px;}
.icon-remove-sign{background-position:-48px -96px;}
.icon-ok-sign{background-position:-72px -96px;}
.icon-question-sign{background-position:-96px -96px;}
.icon-info-sign{background-position:-120px -96px;}
.icon-screenshot{background-position:-144px -96px;}
.icon-remove-circle{background-position:-168px -96px;}
.icon-ok-circle{background-position:-192px -96px;}
.icon-ban-circle{background-position:-216px -96px;}
.icon-arrow-left{background-position:-240px -96px;}
.icon-arrow-right{background-position:-264px -96px;}
.icon-arrow-up{background-position:-289px -96px;}
.icon-arrow-down{background-position:-312px -96px;}
.icon-share-alt{background-position:-336px -96px;}
.icon-resize-full{background-position:-360px -96px;}
.icon-resize-small{background-position:-384px -96px;}
.icon-plus{background-position:-408px -96px;}
.icon-minus{background-position:-433px -96px;}
.icon-asterisk{background-position:-456px -96px;}
.icon-exclamation-sign{background-position:0 -120px;}
.icon-gift{background-position:-24px -120px;}
.icon-leaf{background-position:-48px -120px;}
.icon-fire{background-position:-72px -120px;}
.icon-eye-open{background-position:-96px -120px;}
.icon-eye-close{background-position:-120px -120px;}
.icon-warning-sign{background-position:-144px -120px;}
.icon-plane{background-position:-168px -120px;}
.icon-calendar{background-position:-192px -120px;}
.icon-random{background-position:-216px -120px;}
.icon-comment{background-position:-240px -120px;}
.icon-magnet{background-position:-264px -120px;}
.icon-chevron-up{background-position:-288px -120px;}
.icon-chevron-down{background-position:-313px -119px;}
.icon-retweet{background-position:-336px -120px;}
.icon-shopping-cart{background-position:-360px -120px;}
.icon-folder-close{background-position:-384px -120px;}
.icon-folder-open{background-position:-408px -120px;}
.icon-resize-vertical{background-position:-432px -119px;}
.icon-resize-horizontal{background-position:-456px -118px;}
.dropdown{position:relative;}
.dropdown-toggle{*margin-bottom:-3px;}
.dropdown-toggle:active,.open .dropdown-toggle{outline:0;}
.caret{display:inline-block;width:0;height:0;vertical-align:top;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #000000;opacity:0.3;filter:alpha(opacity=30);content:"";}
.dropdown .caret{margin-top:8px;margin-left:2px;}
.dropdown:hover .caret,.open.dropdown .caret{opacity:1;filter:alpha(opacity=100);}
.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;display:none;min-width:160px;padding:4px 0;margin:0;list-style:none;background-color:#ffffff;border-color:#ccc;border-color:rgba(0, 0, 0, 0.2);border-style:solid;border-width:1px;-webkit-border-radius:0 0 5px 5px;-moz-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px;-webkit-box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);-moz-box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;*border-right-width:2px;*border-bottom-width:2px;}.dropdown-menu.pull-right{right:0;left:auto;}
.dropdown-menu .divider{height:1px;margin:8px 1px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #ffffff;*width:100%;*margin:-5px 0 5px;}
.dropdown-menu a{display:block;padding:3px 15px;clear:both;font-weight:normal;line-height:18px;color:#333333;white-space:nowrap;}
.dropdown-menu li>a:hover,.dropdown-menu .active>a,.dropdown-menu .active>a:hover{color:#ffffff;text-decoration:none;background-color:#0088cc;}
.dropdown.open{*z-index:1000;}.dropdown.open .dropdown-toggle{color:#ffffff;background:#ccc;background:rgba(0, 0, 0, 0.3);}
.dropdown.open .dropdown-menu{display:block;}
.pull-right .dropdown-menu{left:auto;right:0;}
.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000000;content:"\2191";}
.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px;}
.typeahead{margin-top:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #eee;border:1px solid rgba(0, 0, 0, 0.05);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);}.well blockquote{border-color:#ddd;border-color:rgba(0, 0, 0, 0.15);}
.well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;}
.well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
.fade{-webkit-transition:opacity 0.15s linear;-moz-transition:opacity 0.15s linear;-ms-transition:opacity 0.15s linear;-o-transition:opacity 0.15s linear;transition:opacity 0.15s linear;opacity:0;}.fade.in{opacity:1;}
.collapse{-webkit-transition:height 0.35s ease;-moz-transition:height 0.35s ease;-ms-transition:height 0.35s ease;-o-transition:height 0.35s ease;transition:height 0.35s ease;position:relative;overflow:hidden;height:0;}.collapse.in{height:auto;}
.close{float:right;font-size:20px;font-weight:bold;line-height:18px;color:#000000;text-shadow:0 1px 0 #ffffff;opacity:0.2;filter:alpha(opacity=20);}.close:hover{color:#000000;text-decoration:none;opacity:0.4;filter:alpha(opacity=40);cursor:pointer;}
.btn{display:inline-block;*display:inline;*zoom:1;padding:4px 10px 4px;margin-bottom:0;font-size:13px;line-height:18px;color:#333333;text-align:center;text-shadow:0 1px 1px rgba(255, 255, 255, 0.75);vertical-align:middle;background-color:#f5f5f5;background-image:-moz-linear-gradient(top, #ffffff, #e6e6e6);background-image:-ms-linear-gradient(top, #ffffff, #e6e6e6);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));background-image:-webkit-linear-gradient(top, #ffffff, #e6e6e6);background-image:-o-linear-gradient(top, #ffffff, #e6e6e6);background-image:linear-gradient(top, #ffffff, #e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(enabled=false);border:1px solid #cccccc;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);cursor:pointer;*margin-left:.3em;}.btn:hover,.btn:active,.btn.active,.btn.disabled,.btn[disabled]{background-color:#e6e6e6;}
.btn:active,.btn.active{background-color:#cccccc \9;}
.btn:first-child{*margin-left:0;}
.btn:hover{color:#333333;text-decoration:none;background-color:#e6e6e6;background-position:0 -15px;-webkit-transition:background-position 0.1s linear;-moz-transition:background-position 0.1s linear;-ms-transition:background-position 0.1s linear;-o-transition:background-position 0.1s linear;transition:background-position 0.1s linear;}
.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}
.btn.active,.btn:active{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);background-color:#e6e6e6;background-color:#d9d9d9 \9;outline:0;}
.btn.disabled,.btn[disabled]{cursor:default;background-image:none;background-color:#e6e6e6;opacity:0.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
.btn-large{padding:9px 14px;font-size:15px;line-height:normal;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
.btn-large [class^="icon-"]{margin-top:1px;}
.btn-small{padding:5px 9px;font-size:11px;line-height:16px;}
.btn-small [class^="icon-"]{margin-top:-1px;}
.btn-mini{padding:2px 6px;font-size:11px;line-height:14px;}
.btn-primary,.btn-primary:hover,.btn-warning,.btn-warning:hover,.btn-danger,.btn-danger:hover,.btn-success,.btn-success:hover,.btn-info,.btn-info:hover,.btn-inverse,.btn-inverse:hover{text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);color:#ffffff;}
.btn-primary.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active,.btn-inverse.active{color:rgba(255, 255, 255, 0.75);}
.btn-primary{background-color:#0074cc;background-image:-moz-linear-gradient(top, #0088cc, #0055cc);background-image:-ms-linear-gradient(top, #0088cc, #0055cc);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0055cc));background-image:-webkit-linear-gradient(top, #0088cc, #0055cc);background-image:-o-linear-gradient(top, #0088cc, #0055cc);background-image:linear-gradient(top, #0088cc, #0055cc);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0055cc', GradientType=0);border-color:#0055cc #0055cc #003580;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(enabled=false);}.btn-primary:hover,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.btn-primary[disabled]{background-color:#0055cc;}
.btn-primary:active,.btn-primary.active{background-color:#004099 \9;}
.btn-warning{background-color:#faa732;background-image:-moz-linear-gradient(top, #fbb450, #f89406);background-image:-ms-linear-gradient(top, #fbb450, #f89406);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));background-image:-webkit-linear-gradient(top, #fbb450, #f89406);background-image:-o-linear-gradient(top, #fbb450, #f89406);background-image:linear-gradient(top, #fbb450, #f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);border-color:#f89406 #f89406 #ad6704;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(enabled=false);}.btn-warning:hover,.btn-warning:active,.btn-warning.active,.btn-warning.disabled,.btn-warning[disabled]{background-color:#f89406;}
.btn-warning:active,.btn-warning.active{background-color:#c67605 \9;}
.btn-danger{background-color:#da4f49;background-image:-moz-linear-gradient(top, #ee5f5b, #bd362f);background-image:-ms-linear-gradient(top, #ee5f5b, #bd362f);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));background-image:-webkit-linear-gradient(top, #ee5f5b, #bd362f);background-image:-o-linear-gradient(top, #ee5f5b, #bd362f);background-image:linear-gradient(top, #ee5f5b, #bd362f);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0);border-color:#bd362f #bd362f #802420;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(enabled=false);}.btn-danger:hover,.btn-danger:active,.btn-danger.active,.btn-danger.disabled,.btn-danger[disabled]{background-color:#bd362f;}
.btn-danger:active,.btn-danger.active{background-color:#942a25 \9;}
.btn-success{background-color:#5bb75b;background-image:-moz-linear-gradient(top, #62c462, #51a351);background-image:-ms-linear-gradient(top, #62c462, #51a351);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));background-image:-webkit-linear-gradient(top, #62c462, #51a351);background-image:-o-linear-gradient(top, #62c462, #51a351);background-image:linear-gradient(top, #62c462, #51a351);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);border-color:#51a351 #51a351 #387038;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(enabled=false);}.btn-success:hover,.btn-success:active,.btn-success.active,.btn-success.disabled,.btn-success[disabled]{background-color:#51a351;}
.btn-success:active,.btn-success.active{background-color:#408140 \9;}
.btn-info{background-color:#49afcd;background-image:-moz-linear-gradient(top, #5bc0de, #2f96b4);background-image:-ms-linear-gradient(top, #5bc0de, #2f96b4);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));background-image:-webkit-linear-gradient(top, #5bc0de, #2f96b4);background-image:-o-linear-gradient(top, #5bc0de, #2f96b4);background-image:linear-gradient(top, #5bc0de, #2f96b4);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0);border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(enabled=false);}.btn-info:hover,.btn-info:active,.btn-info.active,.btn-info.disabled,.btn-info[disabled]{background-color:#2f96b4;}
.btn-info:active,.btn-info.active{background-color:#24748c \9;}
.btn-inverse{background-color:#414141;background-image:-moz-linear-gradient(top, #555555, #222222);background-image:-ms-linear-gradient(top, #555555, #222222);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#222222));background-image:-webkit-linear-gradient(top, #555555, #222222);background-image:-o-linear-gradient(top, #555555, #222222);background-image:linear-gradient(top, #555555, #222222);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#555555', endColorstr='#222222', GradientType=0);border-color:#222222 #222222 #000000;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(enabled=false);}.btn-inverse:hover,.btn-inverse:active,.btn-inverse.active,.btn-inverse.disabled,.btn-inverse[disabled]{background-color:#222222;}
.btn-inverse:active,.btn-inverse.active{background-color:#080808 \9;}
button.btn,input[type="submit"].btn{*padding-top:2px;*padding-bottom:2px;}button.btn::-moz-focus-inner,input[type="submit"].btn::-moz-focus-inner{padding:0;border:0;}
button.btn.btn-large,input[type="submit"].btn.btn-large{*padding-top:7px;*padding-bottom:7px;}
button.btn.btn-small,input[type="submit"].btn.btn-small{*padding-top:3px;*padding-bottom:3px;}
button.btn.btn-mini,input[type="submit"].btn.btn-mini{*padding-top:1px;*padding-bottom:1px;}
.btn-group{position:relative;*zoom:1;*margin-left:.3em;}.btn-group:before,.btn-group:after{display:table;content:"";}
.btn-group:after{clear:both;}
.btn-group:first-child{*margin-left:0;}
.btn-group+.btn-group{margin-left:5px;}
.btn-toolbar{margin-top:9px;margin-bottom:9px;}.btn-toolbar .btn-group{display:inline-block;*display:inline;*zoom:1;}
.btn-group .btn{position:relative;float:left;margin-left:-1px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
.btn-group .btn:first-child{margin-left:0;-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px;}
.btn-group .btn:last-child,.btn-group .dropdown-toggle{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px;}
.btn-group .btn.large:first-child{margin-left:0;-webkit-border-top-left-radius:6px;-moz-border-radius-topleft:6px;border-top-left-radius:6px;-webkit-border-bottom-left-radius:6px;-moz-border-radius-bottomleft:6px;border-bottom-left-radius:6px;}
.btn-group .btn.large:last-child,.btn-group .large.dropdown-toggle{-webkit-border-top-right-radius:6px;-moz-border-radius-topright:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;-moz-border-radius-bottomright:6px;border-bottom-right-radius:6px;}
.btn-group .btn:hover,.btn-group .btn:focus,.btn-group .btn:active,.btn-group .btn.active{z-index:2;}
.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0;}
.btn-group .dropdown-toggle{padding-left:8px;padding-right:8px;-webkit-box-shadow:inset 1px 0 0 rgba(255, 255, 255, 0.125),inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 1px 0 0 rgba(255, 255, 255, 0.125),inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 1px 0 0 rgba(255, 255, 255, 0.125),inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);*padding-top:3px;*padding-bottom:3px;}
.btn-group .btn-mini.dropdown-toggle{padding-left:5px;padding-right:5px;*padding-top:1px;*padding-bottom:1px;}
.btn-group .btn-small.dropdown-toggle{*padding-top:4px;*padding-bottom:4px;}
.btn-group .btn-large.dropdown-toggle{padding-left:12px;padding-right:12px;}
.btn-group.open{*z-index:1000;}.btn-group.open .dropdown-menu{display:block;margin-top:1px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
.btn-group.open .dropdown-toggle{background-image:none;-webkit-box-shadow:inset 0 1px 6px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 6px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 6px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);}
.btn .caret{margin-top:7px;margin-left:0;}
.btn:hover .caret,.open.btn-group .caret{opacity:1;filter:alpha(opacity=100);}
.btn-mini .caret{margin-top:5px;}
.btn-small .caret{margin-top:6px;}
.btn-large .caret{margin-top:6px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #000000;}
.btn-primary .caret,.btn-warning .caret,.btn-danger .caret,.btn-info .caret,.btn-success .caret,.btn-inverse .caret{border-top-color:#ffffff;border-bottom-color:#ffffff;opacity:0.75;filter:alpha(opacity=75);}
.alert{padding:8px 35px 8px 14px;margin-bottom:18px;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);background-color:#fcf8e3;border:1px solid #fbeed5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;color:#c09853;}
.alert-heading{color:inherit;}
.alert .close{position:relative;top:-2px;right:-21px;line-height:18px;}
.alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#468847;}
.alert-danger,.alert-error{background-color:#f2dede;border-color:#eed3d7;color:#b94a48;}
.alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#3a87ad;}
.alert-block{padding-top:14px;padding-bottom:14px;}
.alert-block>p,.alert-block>ul{margin-bottom:0;}
.alert-block p+p{margin-top:5px;}
.nav{margin-left:0;margin-bottom:18px;list-style:none;}
.nav>li>a{display:block;}
.nav>li>a:hover{text-decoration:none;background-color:#eeeeee;}
.nav .nav-header{display:block;padding:3px 15px;font-size:11px;font-weight:bold;line-height:18px;color:#999999;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);text-transform:uppercase;}
.nav li+.nav-header{margin-top:9px;}
.nav-list{padding-left:15px;padding-right:15px;margin-bottom:0;}
.nav-list>li>a,.nav-list .nav-header{margin-left:-15px;margin-right:-15px;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);}
.nav-list>li>a{padding:3px 15px;}
.nav-list>.active>a,.nav-list>.active>a:hover{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.2);background-color:#0088cc;}
.nav-list [class^="icon-"]{margin-right:2px;}
.nav-list .divider{height:1px;margin:8px 1px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #ffffff;*width:100%;*margin:-5px 0 5px;}
.nav-tabs,.nav-pills{*zoom:1;}.nav-tabs:before,.nav-pills:before,.nav-tabs:after,.nav-pills:after{display:table;content:"";}
.nav-tabs:after,.nav-pills:after{clear:both;}
.nav-tabs>li,.nav-pills>li{float:left;}
.nav-tabs>li>a,.nav-pills>li>a{padding-right:12px;padding-left:12px;margin-right:2px;line-height:14px;}
.nav-tabs{border-bottom:1px solid #ddd;}
.nav-tabs>li{margin-bottom:-1px;}
.nav-tabs>li>a{padding-top:8px;padding-bottom:8px;line-height:18px;border:1px solid transparent;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;}.nav-tabs>li>a:hover{border-color:#eeeeee #eeeeee #dddddd;}
.nav-tabs>.active>a,.nav-tabs>.active>a:hover{color:#555555;background-color:#ffffff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default;}
.nav-pills>li>a{padding-top:8px;padding-bottom:8px;margin-top:2px;margin-bottom:2px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
.nav-pills>.active>a,.nav-pills>.active>a:hover{color:#ffffff;background-color:#0088cc;}
.nav-stacked>li{float:none;}
.nav-stacked>li>a{margin-right:0;}
.nav-tabs.nav-stacked{border-bottom:0;}
.nav-tabs.nav-stacked>li>a{border:1px solid #ddd;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
.nav-tabs.nav-stacked>li:first-child>a{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;}
.nav-tabs.nav-stacked>li:last-child>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;}
.nav-tabs.nav-stacked>li>a:hover{border-color:#ddd;z-index:2;}
.nav-pills.nav-stacked>li>a{margin-bottom:3px;}
.nav-pills.nav-stacked>li:last-child>a{margin-bottom:1px;}
.nav-tabs .dropdown-menu,.nav-pills .dropdown-menu{margin-top:1px;border-width:1px;}
.nav-pills .dropdown-menu{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
.nav-tabs .dropdown-toggle .caret,.nav-pills .dropdown-toggle .caret{border-top-color:#0088cc;border-bottom-color:#0088cc;margin-top:6px;}
.nav-tabs .dropdown-toggle:hover .caret,.nav-pills .dropdown-toggle:hover .caret{border-top-color:#005580;border-bottom-color:#005580;}
.nav-tabs .active .dropdown-toggle .caret,.nav-pills .active .dropdown-toggle .caret{border-top-color:#333333;border-bottom-color:#333333;}
.nav>.dropdown.active>a:hover{color:#000000;cursor:pointer;}
.nav-tabs .open .dropdown-toggle,.nav-pills .open .dropdown-toggle,.nav>.open.active>a:hover{color:#ffffff;background-color:#999999;border-color:#999999;}
.nav .open .caret,.nav .open.active .caret,.nav .open a:hover .caret{border-top-color:#ffffff;border-bottom-color:#ffffff;opacity:1;filter:alpha(opacity=100);}
.tabs-stacked .open>a:hover{border-color:#999999;}
.tabbable{*zoom:1;}.tabbable:before,.tabbable:after{display:table;content:"";}
.tabbable:after{clear:both;}
.tab-content{display:table;width:100%;}
.tabs-below .nav-tabs,.tabs-right .nav-tabs,.tabs-left .nav-tabs{border-bottom:0;}
.tab-content>.tab-pane,.pill-content>.pill-pane{display:none;}
.tab-content>.active,.pill-content>.active{display:block;}
.tabs-below .nav-tabs{border-top:1px solid #ddd;}
.tabs-below .nav-tabs>li{margin-top:-1px;margin-bottom:0;}
.tabs-below .nav-tabs>li>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;}.tabs-below .nav-tabs>li>a:hover{border-bottom-color:transparent;border-top-color:#ddd;}
.tabs-below .nav-tabs .active>a,.tabs-below .nav-tabs .active>a:hover{border-color:transparent #ddd #ddd #ddd;}
.tabs-left .nav-tabs>li,.tabs-right .nav-tabs>li{float:none;}
.tabs-left .nav-tabs>li>a,.tabs-right .nav-tabs>li>a{min-width:74px;margin-right:0;margin-bottom:3px;}
.tabs-left .nav-tabs{float:left;margin-right:19px;border-right:1px solid #ddd;}
.tabs-left .nav-tabs>li>a{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px;}
.tabs-left .nav-tabs>li>a:hover{border-color:#eeeeee #dddddd #eeeeee #eeeeee;}
.tabs-left .nav-tabs .active>a,.tabs-left .nav-tabs .active>a:hover{border-color:#ddd transparent #ddd #ddd;*border-right-color:#ffffff;}
.tabs-right .nav-tabs{float:right;margin-left:19px;border-left:1px solid #ddd;}
.tabs-right .nav-tabs>li>a{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;}
.tabs-right .nav-tabs>li>a:hover{border-color:#eeeeee #eeeeee #eeeeee #dddddd;}
.tabs-right .nav-tabs .active>a,.tabs-right .nav-tabs .active>a:hover{border-color:#ddd #ddd #ddd transparent;*border-left-color:#ffffff;}
.navbar{*position:relative;*z-index:2;overflow:visible;margin-bottom:18px;}
.navbar-inner{padding-left:20px;padding-right:20px;background-color:#2c2c2c;background-image:-moz-linear-gradient(top, #333333, #222222);background-image:-ms-linear-gradient(top, #333333, #222222);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#333333), to(#222222));background-image:-webkit-linear-gradient(top, #333333, #222222);background-image:-o-linear-gradient(top, #333333, #222222);background-image:linear-gradient(top, #333333, #222222);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);-moz-box-shadow:0 1px 3px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);box-shadow:0 1px 3px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);}
.navbar .container{width:auto;}
.btn-navbar{display:none;float:right;padding:7px 10px;margin-left:5px;margin-right:5px;background-color:#2c2c2c;background-image:-moz-linear-gradient(top, #333333, #222222);background-image:-ms-linear-gradient(top, #333333, #222222);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#333333), to(#222222));background-image:-webkit-linear-gradient(top, #333333, #222222);background-image:-o-linear-gradient(top, #333333, #222222);background-image:linear-gradient(top, #333333, #222222);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);border-color:#222222 #222222 #000000;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.075);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.075);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.075);}.btn-navbar:hover,.btn-navbar:active,.btn-navbar.active,.btn-navbar.disabled,.btn-navbar[disabled]{background-color:#222222;}
.btn-navbar:active,.btn-navbar.active{background-color:#080808 \9;}
.btn-navbar .icon-bar{display:block;width:18px;height:2px;background-color:#f5f5f5;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0, 0, 0, 0.25);-moz-box-shadow:0 1px 0 rgba(0, 0, 0, 0.25);box-shadow:0 1px 0 rgba(0, 0, 0, 0.25);}
.btn-navbar .icon-bar+.icon-bar{margin-top:3px;}
.nav-collapse.collapse{height:auto;}
.navbar{color:#999999;}.navbar .brand:hover{text-decoration:none;}
.navbar .brand{float:left;display:block;padding:8px 20px 12px;margin-left:-20px;font-size:20px;font-weight:200;line-height:1;color:#ffffff;}
.navbar .navbar-text{margin-bottom:0;line-height:40px;}
.navbar .btn,.navbar .btn-group{margin-top:5px;}
.navbar .btn-group .btn{margin-top:0;}
.navbar-form{margin-bottom:0;*zoom:1;}.navbar-form:before,.navbar-form:after{display:table;content:"";}
.navbar-form:after{clear:both;}
.navbar-form input,.navbar-form select,.navbar-form .radio,.navbar-form .checkbox{margin-top:5px;}
.navbar-form input,.navbar-form select{display:inline-block;margin-bottom:0;}
.navbar-form input[type="image"],.navbar-form input[type="checkbox"],.navbar-form input[type="radio"]{margin-top:3px;}
.navbar-form .input-append,.navbar-form .input-prepend{margin-top:6px;white-space:nowrap;}.navbar-form .input-append input,.navbar-form .input-prepend input{margin-top:0;}
.navbar-search{position:relative;float:left;margin-top:6px;margin-bottom:0;}.navbar-search .search-query{padding:4px 9px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:normal;line-height:1;color:#ffffff;background-color:#626262;border:1px solid #151515;-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0px rgba(255, 255, 255, 0.15);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0px rgba(255, 255, 255, 0.15);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0px rgba(255, 255, 255, 0.15);-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none;}.navbar-search .search-query:-moz-placeholder{color:#cccccc;}
.navbar-search .search-query::-webkit-input-placeholder{color:#cccccc;}
.navbar-search .search-query:focus,.navbar-search .search-query.focused{padding:5px 10px;color:#333333;text-shadow:0 1px 0 #ffffff;background-color:#ffffff;border:0;-webkit-box-shadow:0 0 3px rgba(0, 0, 0, 0.15);-moz-box-shadow:0 0 3px rgba(0, 0, 0, 0.15);box-shadow:0 0 3px rgba(0, 0, 0, 0.15);outline:0;}
.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;margin-bottom:0;}
.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding-left:0;padding-right:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px;}
.navbar-fixed-top{top:0;}
.navbar-fixed-bottom{bottom:0;}
.navbar .nav{position:relative;left:0;display:block;float:left;margin:0 10px 0 0;}
.navbar .nav.pull-right{float:right;}
.navbar .nav>li{display:block;float:left;}
.navbar .nav>li>a{float:none;padding:10px 10px 11px;line-height:19px;color:#999999;text-decoration:none;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);}
.navbar .nav>li>a:hover{background-color:transparent;color:#ffffff;text-decoration:none;}
.navbar .nav .active>a,.navbar .nav .active>a:hover{color:#ffffff;text-decoration:none;background-color:#222222;}
.navbar .divider-vertical{height:40px;width:1px;margin:0 9px;overflow:hidden;background-color:#222222;border-right:1px solid #333333;}
.navbar .nav.pull-right{margin-left:10px;margin-right:0;}
.navbar .dropdown-menu{margin-top:1px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}.navbar .dropdown-menu:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0, 0, 0, 0.2);position:absolute;top:-7px;left:9px;}
.navbar .dropdown-menu:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #ffffff;position:absolute;top:-6px;left:10px;}
.navbar-fixed-bottom .dropdown-menu:before{border-top:7px solid #ccc;border-top-color:rgba(0, 0, 0, 0.2);border-bottom:0;bottom:-7px;top:auto;}
.navbar-fixed-bottom .dropdown-menu:after{border-top:6px solid #ffffff;border-bottom:0;bottom:-6px;top:auto;}
.navbar .nav .dropdown-toggle .caret,.navbar .nav .open.dropdown .caret{border-top-color:#ffffff;border-bottom-color:#ffffff;}
.navbar .nav .active .caret{opacity:1;filter:alpha(opacity=100);}
.navbar .nav .open>.dropdown-toggle,.navbar .nav .active>.dropdown-toggle,.navbar .nav .open.active>.dropdown-toggle{background-color:transparent;}
.navbar .nav .active>.dropdown-toggle:hover{color:#ffffff;}
.navbar .nav.pull-right .dropdown-menu,.navbar .nav .dropdown-menu.pull-right{left:auto;right:0;}.navbar .nav.pull-right .dropdown-menu:before,.navbar .nav .dropdown-menu.pull-right:before{left:auto;right:12px;}
.navbar .nav.pull-right .dropdown-menu:after,.navbar .nav .dropdown-menu.pull-right:after{left:auto;right:13px;}
.breadcrumb{padding:7px 14px;margin:0 0 18px;list-style:none;background-color:#fbfbfb;background-image:-moz-linear-gradient(top, #ffffff, #f5f5f5);background-image:-ms-linear-gradient(top, #ffffff, #f5f5f5);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f5f5f5));background-image:-webkit-linear-gradient(top, #ffffff, #f5f5f5);background-image:-o-linear-gradient(top, #ffffff, #f5f5f5);background-image:linear-gradient(top, #ffffff, #f5f5f5);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f5f5f5', GradientType=0);border:1px solid #ddd;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 1px 0 #ffffff;-moz-box-shadow:inset 0 1px 0 #ffffff;box-shadow:inset 0 1px 0 #ffffff;}.breadcrumb li{display:inline-block;*display:inline;*zoom:1;text-shadow:0 1px 0 #ffffff;}
.breadcrumb .divider{padding:0 5px;color:#999999;}
.breadcrumb .active a{color:#333333;}
.pagination{height:36px;margin:18px 0;}
.pagination ul{display:inline-block;*display:inline;*zoom:1;margin-left:0;margin-bottom:0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);}
.pagination li{display:inline;}
.pagination a{float:left;padding:0 14px;line-height:34px;text-decoration:none;border:1px solid #ddd;border-left-width:0;}
.pagination a:hover,.pagination .active a{background-color:#f5f5f5;}
.pagination .active a{color:#999999;cursor:default;}
.pagination .disabled span,.pagination .disabled a,.pagination .disabled a:hover{color:#999999;background-color:transparent;cursor:default;}
.pagination li:first-child a{border-left-width:1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;}
.pagination li:last-child a{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;}
.pagination-centered{text-align:center;}
.pagination-right{text-align:right;}
.pager{margin-left:0;margin-bottom:18px;list-style:none;text-align:center;*zoom:1;}.pager:before,.pager:after{display:table;content:"";}
.pager:after{clear:both;}
.pager li{display:inline;}
.pager a{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;}
.pager a:hover{text-decoration:none;background-color:#f5f5f5;}
.pager .next a{float:right;}
.pager .previous a{float:left;}
.pager .disabled a,.pager .disabled a:hover{color:#999999;background-color:#fff;cursor:default;}
.modal-open .dropdown-menu{z-index:2050;}
.modal-open .dropdown.open{*z-index:2050;}
.modal-open .popover{z-index:2060;}
.modal-open .tooltip{z-index:2070;}
.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000000;}.modal-backdrop.fade{opacity:0;}
.modal-backdrop,.modal-backdrop.fade.in{opacity:0.8;filter:alpha(opacity=80);}
.modal{position:fixed;top:50%;left:50%;z-index:1050;overflow:auto;width:560px;margin:-250px 0 0 -280px;background-color:#ffffff;border:1px solid #999;border:1px solid rgba(0, 0, 0, 0.3);*border:1px solid #999;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);-moz-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;}.modal.fade{-webkit-transition:opacity .3s linear, top .3s ease-out;-moz-transition:opacity .3s linear, top .3s ease-out;-ms-transition:opacity .3s linear, top .3s ease-out;-o-transition:opacity .3s linear, top .3s ease-out;transition:opacity .3s linear, top .3s ease-out;top:-25%;}
.modal.fade.in{top:50%;}
.modal-header{padding:9px 15px;border-bottom:1px solid #eee;}.modal-header .close{margin-top:2px;}
.modal-body{overflow-y:auto;max-height:400px;padding:15px;}
.modal-form{margin-bottom:0;}
.modal-footer{padding:14px 15px 15px;margin-bottom:0;text-align:right;background-color:#f5f5f5;border-top:1px solid #ddd;-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px;-webkit-box-shadow:inset 0 1px 0 #ffffff;-moz-box-shadow:inset 0 1px 0 #ffffff;box-shadow:inset 0 1px 0 #ffffff;*zoom:1;}.modal-footer:before,.modal-footer:after{display:table;content:"";}
.modal-footer:after{clear:both;}
.modal-footer .btn+.btn{margin-left:5px;margin-bottom:0;}
.modal-footer .btn-group .btn+.btn{margin-left:-1px;}
.tooltip{position:absolute;z-index:1020;display:block;visibility:visible;padding:5px;font-size:11px;opacity:0;filter:alpha(opacity=0);}.tooltip.in{opacity:0.8;filter:alpha(opacity=80);}
.tooltip.top{margin-top:-2px;}
.tooltip.right{margin-left:2px;}
.tooltip.bottom{margin-top:2px;}
.tooltip.left{margin-left:-2px;}
.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #000000;}
.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;}
.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #000000;}
.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000;}
.tooltip-inner{max-width:200px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
.tooltip-arrow{position:absolute;width:0;height:0;}
.popover{position:absolute;top:0;left:0;z-index:1010;display:none;padding:5px;}.popover.top{margin-top:-5px;}
.popover.right{margin-left:5px;}
.popover.bottom{margin-top:5px;}
.popover.left{margin-left:-5px;}
.popover.top .arrow{bottom:0;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #000000;}
.popover.right .arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000;}
.popover.bottom .arrow{top:0;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #000000;}
.popover.left .arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;}
.popover .arrow{position:absolute;width:0;height:0;}
.popover-inner{padding:3px;width:280px;overflow:hidden;background:#000000;background:rgba(0, 0, 0, 0.8);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);-moz-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);}
.popover-title{padding:9px 15px;line-height:1;background-color:#f5f5f5;border-bottom:1px solid #eee;-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;}
.popover-content{padding:14px;background-color:#ffffff;-webkit-border-radius:0 0 3px 3px;-moz-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;}.popover-content p,.popover-content ul,.popover-content ol{margin-bottom:0;}
.thumbnails{margin-left:-20px;list-style:none;*zoom:1;}.thumbnails:before,.thumbnails:after{display:table;content:"";}
.thumbnails:after{clear:both;}
.thumbnails>li{float:left;margin:0 0 18px 20px;}
.thumbnail{display:block;padding:4px;line-height:1;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);}
a.thumbnail:hover{border-color:#0088cc;-webkit-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);-moz-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);}
.thumbnail>img{display:block;max-width:100%;margin-left:auto;margin-right:auto;}
.thumbnail .caption{padding:9px;}
.label{padding:1px 4px 2px;font-size:10.998px;font-weight:bold;line-height:13px;color:#ffffff;vertical-align:middle;white-space:nowrap;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#999999;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
.label:hover{color:#ffffff;text-decoration:none;}
.label-important{background-color:#b94a48;}
.label-important:hover{background-color:#953b39;}
.label-warning{background-color:#f89406;}
.label-warning:hover{background-color:#c67605;}
.label-success{background-color:#468847;}
.label-success:hover{background-color:#356635;}
.label-info{background-color:#3a87ad;}
.label-info:hover{background-color:#2d6987;}
.label-inverse{background-color:#333333;}
.label-inverse:hover{background-color:#1a1a1a;}
.badge{padding:1px 9px 2px;font-size:12.025px;font-weight:bold;white-space:nowrap;color:#ffffff;background-color:#999999;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;}
.badge:hover{color:#ffffff;text-decoration:none;cursor:pointer;}
.badge-error{background-color:#b94a48;}
.badge-error:hover{background-color:#953b39;}
.badge-warning{background-color:#f89406;}
.badge-warning:hover{background-color:#c67605;}
.badge-success{background-color:#468847;}
.badge-success:hover{background-color:#356635;}
.badge-info{background-color:#3a87ad;}
.badge-info:hover{background-color:#2d6987;}
.badge-inverse{background-color:#333333;}
.badge-inverse:hover{background-color:#1a1a1a;}
@-webkit-keyframes progress-bar-stripes{from{background-position:0 0;} to{background-position:40px 0;}}@-moz-keyframes progress-bar-stripes{from{background-position:0 0;} to{background-position:40px 0;}}@-ms-keyframes progress-bar-stripes{from{background-position:0 0;} to{background-position:40px 0;}}@keyframes progress-bar-stripes{from{background-position:0 0;} to{background-position:40px 0;}}.progress{overflow:hidden;height:18px;margin-bottom:18px;background-color:#f7f7f7;background-image:-moz-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:-ms-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9));background-image:-webkit-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:-o-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:linear-gradient(top, #f5f5f5, #f9f9f9);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#f9f9f9', GradientType=0);-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
.progress .bar{width:0%;height:18px;color:#ffffff;font-size:12px;text-align:center;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#0e90d2;background-image:-moz-linear-gradient(top, #149bdf, #0480be);background-image:-ms-linear-gradient(top, #149bdf, #0480be);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be));background-image:-webkit-linear-gradient(top, #149bdf, #0480be);background-image:-o-linear-gradient(top, #149bdf, #0480be);background-image:linear-gradient(top, #149bdf, #0480be);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#149bdf', endColorstr='#0480be', GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);-moz-box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width 0.6s ease;-moz-transition:width 0.6s ease;-ms-transition:width 0.6s ease;-o-transition:width 0.6s ease;transition:width 0.6s ease;}
.progress-striped .bar{background-color:#149bdf;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);-webkit-background-size:40px 40px;-moz-background-size:40px 40px;-o-background-size:40px 40px;background-size:40px 40px;}
.progress.active .bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite;}
.progress-danger .bar{background-color:#dd514c;background-image:-moz-linear-gradient(top, #ee5f5b, #c43c35);background-image:-ms-linear-gradient(top, #ee5f5b, #c43c35);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35));background-image:-webkit-linear-gradient(top, #ee5f5b, #c43c35);background-image:-o-linear-gradient(top, #ee5f5b, #c43c35);background-image:linear-gradient(top, #ee5f5b, #c43c35);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0);}
.progress-danger.progress-striped .bar{background-color:#ee5f5b;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}
.progress-success .bar{background-color:#5eb95e;background-image:-moz-linear-gradient(top, #62c462, #57a957);background-image:-ms-linear-gradient(top, #62c462, #57a957);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957));background-image:-webkit-linear-gradient(top, #62c462, #57a957);background-image:-o-linear-gradient(top, #62c462, #57a957);background-image:linear-gradient(top, #62c462, #57a957);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0);}
.progress-success.progress-striped .bar{background-color:#62c462;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}
.progress-info .bar{background-color:#4bb1cf;background-image:-moz-linear-gradient(top, #5bc0de, #339bb9);background-image:-ms-linear-gradient(top, #5bc0de, #339bb9);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9));background-image:-webkit-linear-gradient(top, #5bc0de, #339bb9);background-image:-o-linear-gradient(top, #5bc0de, #339bb9);background-image:linear-gradient(top, #5bc0de, #339bb9);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0);}
.progress-info.progress-striped .bar{background-color:#5bc0de;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}
.progress-warning .bar{background-color:#faa732;background-image:-moz-linear-gradient(top, #fbb450, #f89406);background-image:-ms-linear-gradient(top, #fbb450, #f89406);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));background-image:-webkit-linear-gradient(top, #fbb450, #f89406);background-image:-o-linear-gradient(top, #fbb450, #f89406);background-image:linear-gradient(top, #fbb450, #f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);}
.progress-warning.progress-striped .bar{background-color:#fbb450;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}
.accordion{margin-bottom:18px;}
.accordion-group{margin-bottom:2px;border:1px solid #e5e5e5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
.accordion-heading{border-bottom:0;}
.accordion-heading .accordion-toggle{display:block;padding:8px 15px;}
.accordion-inner{padding:9px 15px;border-top:1px solid #e5e5e5;}
.carousel{position:relative;margin-bottom:18px;line-height:1;}
.carousel-inner{overflow:hidden;width:100%;position:relative;}
.carousel .item{display:none;position:relative;-webkit-transition:0.6s ease-in-out left;-moz-transition:0.6s ease-in-out left;-ms-transition:0.6s ease-in-out left;-o-transition:0.6s ease-in-out left;transition:0.6s ease-in-out left;}
.carousel .item>img{display:block;line-height:1;}
.carousel .active,.carousel .next,.carousel .prev{display:block;}
.carousel .active{left:0;}
.carousel .next,.carousel .prev{position:absolute;top:0;width:100%;}
.carousel .next{left:100%;}
.carousel .prev{left:-100%;}
.carousel .next.left,.carousel .prev.right{left:0;}
.carousel .active.left{left:-100%;}
.carousel .active.right{left:100%;}
.carousel-control{position:absolute;top:40%;left:15px;width:40px;height:40px;margin-top:-20px;font-size:60px;font-weight:100;line-height:30px;color:#ffffff;text-align:center;background:#222222;border:3px solid #ffffff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:0.5;filter:alpha(opacity=50);}.carousel-control.right{left:auto;right:15px;}
.carousel-control:hover{color:#ffffff;text-decoration:none;opacity:0.9;filter:alpha(opacity=90);}
.carousel-caption{position:absolute;left:0;right:0;bottom:0;padding:10px 15px 5px;background:#333333;background:rgba(0, 0, 0, 0.75);}
.carousel-caption h4,.carousel-caption p{color:#ffffff;}
.hero-unit{padding:60px;margin-bottom:30px;background-color:#eeeeee;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;}.hero-unit h1{margin-bottom:0;font-size:60px;line-height:1;color:inherit;letter-spacing:-1px;}
.hero-unit p{font-size:18px;font-weight:200;line-height:27px;color:inherit;}
.pull-right{float:right;}
.pull-left{float:left;}
.hide{display:none;}
.show{display:block;}
.invisible{visibility:hidden;}

View file

@ -1,303 +0,0 @@
/* Font Awesome
the iconic font designed for use with Twitter Bootstrap
-------------------------------------------------------
The full suite of pictographic icons, examples, and documentation
can be found at: http://fortawesome.github.com/Font-Awesome/
License
-------------------------------------------------------
The Font Awesome webfont, CSS, and LESS files are licensed under CC BY 3.0:
http://creativecommons.org/licenses/by/3.0/ A mention of
'Font Awesome - http://fortawesome.github.com/Font-Awesome' in human-readable
source code is considered acceptable attribution (most common on the web).
If human readable source code is not available to the end user, a mention in
an 'About' or 'Credits' screen is considered acceptable (most common in desktop
or mobile software).
Contact
-------------------------------------------------------
Email: dave@davegandy.com
Twitter: http://twitter.com/fortaweso_me
Work: http://lemonwi.se co-founder
*/
@font-face {
font-family: "FontAwesome";
src: url('../font/fontawesome-webfont.eot');
src: url('../font/fontawesome-webfont.eot?#iefix') format('eot'), url('../font/fontawesome-webfont.woff') format('woff'), url('../font/fontawesome-webfont.ttf') format('truetype'), url('../font/fontawesome-webfont.svg#FontAwesome') format('svg');
font-weight: normal;
font-style: normal;
}
/* Font Awesome styles
------------------------------------------------------- */
[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
display: inline-block;
text-decoration: inherit;
}
a [class^="icon-"], a [class*=" icon-"] {
display: inline-block;
text-decoration: inherit;
}
/* makes the font 33% larger relative to the icon container */
.icon-large:before {
vertical-align: top;
font-size: 1.3333333333333333em;
}
.btn [class^="icon-"], .btn [class*=" icon-"] {
/* keeps button heights with and without icons the same */
line-height: .9em;
}
li [class^="icon-"], li [class*=" icon-"] {
display: inline-block;
width: 1.25em;
text-align: center;
}
li .icon-large[class^="icon-"], li .icon-large[class*=" icon-"] {
/* 1.5 increased font size for icon-large * 1.25 width */
width: 1.875em;
}
li[class^="icon-"], li[class*=" icon-"] {
margin-left: 0;
list-style-type: none;
}
li[class^="icon-"]:before, li[class*=" icon-"]:before {
text-indent: -2em;
text-align: center;
}
li[class^="icon-"].icon-large:before, li[class*=" icon-"].icon-large:before {
text-indent: -1.3333333333333333em;
}
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
.icon-glass:before { content: "\f000"; }
.icon-music:before { content: "\f001"; }
.icon-search:before { content: "\f002"; }
.icon-envelope:before { content: "\f003"; }
.icon-heart:before { content: "\f004"; }
.icon-star:before { content: "\f005"; }
.icon-star-empty:before { content: "\f006"; }
.icon-user:before { content: "\f007"; }
.icon-film:before { content: "\f008"; }
.icon-th-large:before { content: "\f009"; }
.icon-th:before { content: "\f00a"; }
.icon-th-list:before { content: "\f00b"; }
.icon-ok:before { content: "\f00c"; }
.icon-remove:before { content: "\f00d"; }
.icon-zoom-in:before { content: "\f00e"; }
.icon-zoom-out:before { content: "\f010"; }
.icon-off:before { content: "\f011"; }
.icon-signal:before { content: "\f012"; }
.icon-cog:before { content: "\f013"; }
.icon-trash:before { content: "\f014"; }
.icon-home:before { content: "\f015"; }
.icon-file:before { content: "\f016"; }
.icon-time:before { content: "\f017"; }
.icon-road:before { content: "\f018"; }
.icon-download-alt:before { content: "\f019"; }
.icon-download:before { content: "\f01a"; }
.icon-upload:before { content: "\f01b"; }
.icon-inbox:before { content: "\f01c"; }
.icon-play-circle:before { content: "\f01d"; }
.icon-repeat:before { content: "\f01e"; }
/* \f020 doesn't work in Safari. all shifted one down */
.icon-refresh:before { content: "\f021"; }
.icon-list-alt:before { content: "\f022"; }
.icon-lock:before { content: "\f023"; }
.icon-flag:before { content: "\f024"; }
.icon-headphones:before { content: "\f025"; }
.icon-volume-off:before { content: "\f026"; }
.icon-volume-down:before { content: "\f027"; }
.icon-volume-up:before { content: "\f028"; }
.icon-qrcode:before { content: "\f029"; }
.icon-barcode:before { content: "\f02a"; }
.icon-tag:before { content: "\f02b"; }
.icon-tags:before { content: "\f02c"; }
.icon-book:before { content: "\f02d"; }
.icon-bookmark:before { content: "\f02e"; }
.icon-print:before { content: "\f02f"; }
.icon-camera:before { content: "\f030"; }
.icon-font:before { content: "\f031"; }
.icon-bold:before { content: "\f032"; }
.icon-italic:before { content: "\f033"; }
.icon-text-height:before { content: "\f034"; }
.icon-text-width:before { content: "\f035"; }
.icon-align-left:before { content: "\f036"; }
.icon-align-center:before { content: "\f037"; }
.icon-align-right:before { content: "\f038"; }
.icon-align-justify:before { content: "\f039"; }
.icon-list:before { content: "\f03a"; }
.icon-indent-left:before { content: "\f03b"; }
.icon-indent-right:before { content: "\f03c"; }
.icon-facetime-video:before { content: "\f03d"; }
.icon-picture:before { content: "\f03e"; }
.icon-pencil:before { content: "\f040"; }
.icon-map-marker:before { content: "\f041"; }
.icon-adjust:before { content: "\f042"; }
.icon-tint:before { content: "\f043"; }
.icon-edit:before { content: "\f044"; }
.icon-share:before { content: "\f045"; }
.icon-check:before { content: "\f046"; }
.icon-move:before { content: "\f047"; }
.icon-step-backward:before { content: "\f048"; }
.icon-fast-backward:before { content: "\f049"; }
.icon-backward:before { content: "\f04a"; }
.icon-play:before { content: "\f04b"; }
.icon-pause:before { content: "\f04c"; }
.icon-stop:before { content: "\f04d"; }
.icon-forward:before { content: "\f04e"; }
.icon-fast-forward:before { content: "\f050"; }
.icon-step-forward:before { content: "\f051"; }
.icon-eject:before { content: "\f052"; }
.icon-chevron-left:before { content: "\f053"; }
.icon-chevron-right:before { content: "\f054"; }
.icon-plus-sign:before { content: "\f055"; }
.icon-minus-sign:before { content: "\f056"; }
.icon-remove-sign:before { content: "\f057"; }
.icon-ok-sign:before { content: "\f058"; }
.icon-question-sign:before { content: "\f059"; }
.icon-info-sign:before { content: "\f05a"; }
.icon-screenshot:before { content: "\f05b"; }
.icon-remove-circle:before { content: "\f05c"; }
.icon-ok-circle:before { content: "\f05d"; }
.icon-ban-circle:before { content: "\f05e"; }
.icon-arrow-left:before { content: "\f060"; }
.icon-arrow-right:before { content: "\f061"; }
.icon-arrow-up:before { content: "\f062"; }
.icon-arrow-down:before { content: "\f063"; }
.icon-share-alt:before { content: "\f064"; }
.icon-resize-full:before { content: "\f065"; }
.icon-resize-small:before { content: "\f066"; }
.icon-plus:before { content: "\f067"; }
.icon-minus:before { content: "\f068"; }
.icon-asterisk:before { content: "\f069"; }
.icon-exclamation-sign:before { content: "\f06a"; }
.icon-gift:before { content: "\f06b"; }
.icon-leaf:before { content: "\f06c"; }
.icon-fire:before { content: "\f06d"; }
.icon-eye-open:before { content: "\f06e"; }
.icon-eye-close:before { content: "\f070"; }
.icon-warning-sign:before { content: "\f071"; }
.icon-plane:before { content: "\f072"; }
.icon-calendar:before { content: "\f073"; }
.icon-random:before { content: "\f074"; }
.icon-comment:before { content: "\f075"; }
.icon-magnet:before { content: "\f076"; }
.icon-chevron-up:before { content: "\f077"; }
.icon-chevron-down:before { content: "\f078"; }
.icon-retweet:before { content: "\f079"; }
.icon-shopping-cart:before { content: "\f07a"; }
.icon-folder-close:before { content: "\f07b"; }
.icon-folder-open:before { content: "\f07c"; }
.icon-resize-vertical:before { content: "\f07d"; }
.icon-resize-horizontal:before { content: "\f07e"; }
.icon-bar-chart:before { content: "\f080"; }
.icon-twitter-sign:before { content: "\f081"; }
.icon-facebook-sign:before { content: "\f082"; }
.icon-camera-retro:before { content: "\f083"; }
.icon-key:before { content: "\f084"; }
.icon-cogs:before { content: "\f085"; }
.icon-comments:before { content: "\f086"; }
.icon-thumbs-up:before { content: "\f087"; }
.icon-thumbs-down:before { content: "\f088"; }
.icon-star-half:before { content: "\f089"; }
.icon-heart-empty:before { content: "\f08a"; }
.icon-signout:before { content: "\f08b"; }
.icon-linkedin-sign:before { content: "\f08c"; }
.icon-pushpin:before { content: "\f08d"; }
.icon-external-link:before { content: "\f08e"; }
.icon-signin:before { content: "\f090"; }
.icon-trophy:before { content: "\f091"; }
.icon-github-sign:before { content: "\f092"; }
.icon-upload-alt:before { content: "\f093"; }
.icon-lemon:before { content: "\f094"; }
.icon-phone:before { content: "\f095"; }
.icon-check-empty:before { content: "\f096"; }
.icon-bookmark-empty:before { content: "\f097"; }
.icon-phone-sign:before { content: "\f098"; }
.icon-twitter:before { content: "\f099"; }
.icon-facebook:before { content: "\f09a"; }
.icon-github:before { content: "\f09b"; }
.icon-unlock:before { content: "\f09c"; }
.icon-credit-card:before { content: "\f09d"; }
.icon-rss:before { content: "\f09e"; }
.icon-hdd:before { content: "\f0a0"; }
.icon-bullhorn:before { content: "\f0a1"; }
.icon-bell:before { content: "\f0a2"; }
.icon-certificate:before { content: "\f0a3"; }
.icon-hand-right:before { content: "\f0a4"; }
.icon-hand-left:before { content: "\f0a5"; }
.icon-hand-up:before { content: "\f0a6"; }
.icon-hand-down:before { content: "\f0a7"; }
.icon-circle-arrow-left:before { content: "\f0a8"; }
.icon-circle-arrow-right:before { content: "\f0a9"; }
.icon-circle-arrow-up:before { content: "\f0aa"; }
.icon-circle-arrow-down:before { content: "\f0ab"; }
.icon-globe:before { content: "\f0ac"; }
.icon-wrench:before { content: "\f0ad"; }
.icon-tasks:before { content: "\f0ae"; }
.icon-filter:before { content: "\f0b0"; }
.icon-briefcase:before { content: "\f0b1"; }
.icon-fullscreen:before { content: "\f0b2"; }
.icon-group:before { content: "\f0c0"; }
.icon-link:before { content: "\f0c1"; }
.icon-cloud:before { content: "\f0c2"; }
.icon-beaker:before { content: "\f0c3"; }
.icon-cut:before { content: "\f0c4"; }
.icon-copy:before { content: "\f0c5"; }
.icon-paper-clip:before { content: "\f0c6"; }
.icon-save:before { content: "\f0c7"; }
.icon-sign-blank:before { content: "\f0c8"; }
.icon-reorder:before { content: "\f0c9"; }
.icon-list-ul:before { content: "\f0ca"; }
.icon-list-ol:before { content: "\f0cb"; }
.icon-strikethrough:before { content: "\f0cc"; }
.icon-underline:before { content: "\f0cd"; }
.icon-table:before { content: "\f0ce"; }
.icon-magic:before { content: "\f0d0"; }
.icon-truck:before { content: "\f0d1"; }
.icon-pinterest:before { content: "\f0d2"; }
.icon-pinterest-sign:before { content: "\f0d3"; }
.icon-google-plus-sign:before { content: "\f0d4"; }
.icon-google-plus:before { content: "\f0d5"; }
.icon-money:before { content: "\f0d6"; }
.icon-caret-down:before { content: "\f0d7"; }
.icon-caret-up:before { content: "\f0d8"; }
.icon-caret-left:before { content: "\f0d9"; }
.icon-caret-right:before { content: "\f0da"; }
.icon-columns:before { content: "\f0db"; }
.icon-sort:before { content: "\f0dc"; }
.icon-sort-down:before { content: "\f0dd"; }
.icon-sort-up:before { content: "\f0de"; }
.icon-envelope-alt:before { content: "\f0e0"; }
.icon-linkedin:before { content: "\f0e1"; }
.icon-undo:before { content: "\f0e2"; }
.icon-legal:before { content: "\f0e3"; }
.icon-dashboard:before { content: "\f0e4"; }
.icon-comment-alt:before { content: "\f0e5"; }
.icon-comments-alt:before { content: "\f0e6"; }
.icon-bolt:before { content: "\f0e7"; }
.icon-sitemap:before { content: "\f0e8"; }
.icon-umbrella:before { content: "\f0e9"; }
.icon-paste:before { content: "\f0ea"; }
.icon-user-md:before { content: "\f200"; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 296 KiB

File diff suppressed because one or more lines are too long

View file

@ -16,17 +16,20 @@ $(function () {
function loadCallback(evt) {
var form = document.getElementById("searchbox");
var input = form.query;
form.onsubmit = function (evt) {
var query = input.value;
if (query) {
input.value = "";
input.blur();
var url = "https://www.google.com/search?q=" + encodeURIComponent("site:ace.ajax.org/api" + " " + query);
window.open(url);
}
return false;
};
if (form) {
var input = form.query;
form.onsubmit = function (evt) {
var query = input.value;
if (query) {
input.value = "";
input.blur();
var url = "https://www.google.com/search?q=" + encodeURIComponent("site:ace.ajax.org" + " " + query);
window.open(url);
}
return false;
};
}
}
// init search
@ -68,59 +71,6 @@ function ux() {
}
else sx = 0;
$('.members').each(function (i) {
var $classContent = $(this).closest('.classContent');
$(this).scrollspy({
min: $classContent.position().top + 5,
max: $classContent.position().top + $classContent.height() - 35,
onEnter: function (element, position) {
var $pagination = $(element);
var $paginationContent = $('.membersContent pos' + i);
var $tabs = $('.tabs pos' + i);
$paginationContent.css('left', -1 * sx);
$paginationContent.css('top', 0);
$pagination.addClass('shadow').stop().css({
height: 31
}).closest('.classContent').addClass('srolled');
$tabs.addClass('tabsSansBorder');
},
onLeave: function (element, position) {
var $pagination = $(element);
var $paginationContent = $('.membersContent pos' + i);
var $tabs = $('.tabs pos' + i);
$paginationContent.stop().css({
top: 11
});
$pagination.css({
'position': 'absolute',
'top': 193
});
$pagination.stop().removeClass('shadow').css({
height: 42
});
$paginationContent.css('left', 0);
// setTimeout(function () {
$paginationContent.css({
'top': ''
});
$pagination.css({
'position': '',
'top': ''
});
$paginationContent.css('left', 0);
$pagination.closest('.classContent').removeClass('srolled')
$tabs.removeClass('tabsSansBorder');
// }, 300);
}
});
});
$('span.methodClicker, article.article, i.methodClicker').each(function () {
var a = $(this);
var constructorPos = a.attr("id").indexOf("new ");

View file

@ -1,19 +1,261 @@
<div id="documentation" class="span8"><div class="classContent"><div class="membersBackground"></div><div class=" members pos0"><div class=" membersContent pos0"><h1 class="memberHeader"><span class="name">ScrollBar<span class="editInC9"> <a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%2Face.git' title='Edit in Cloud9 IDE'>[edit]</a></span></span></h1><ul data-tabs="tabs" class="nav tabs pos0"><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Events (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_ScrollBar.event.scroll" data-id="ScrollBar.event.scroll" class="memberLink"><a href="#ScrollBar.event.scroll" class="" title="ScrollBar.event.scroll (event)" data-id="ScrollBar.event.scroll">scroll</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_ScrollBar.new" data-id="ScrollBar.new" class="memberLink"><a href="#ScrollBar.new" class="" title="ScrollBar.new (constructor)" data-id="ScrollBar.new">new</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (4)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_ScrollBar.getWidth" data-id="ScrollBar.getWidth" class="memberLink"><a href="#ScrollBar.getWidth" class="" title="ScrollBar.getWidth (class method)" data-id="ScrollBar.getWidth">getWidth</a></li><li id="dropdown_ScrollBar.setHeight" data-id="ScrollBar.setHeight" class="memberLink"><a href="#ScrollBar.setHeight" class="" title="ScrollBar.setHeight (class method)" data-id="ScrollBar.setHeight">setHeight</a></li><li id="dropdown_ScrollBar.setInnerHeight" data-id="ScrollBar.setInnerHeight" class="memberLink"><a href="#ScrollBar.setInnerHeight" class="" title="ScrollBar.setInnerHeight (class method)" data-id="ScrollBar.setInnerHeight">setInnerHeight</a></li><li id="dropdown_ScrollBar.setScrollTop" data-id="ScrollBar.setScrollTop" class="memberLink"><a href="#ScrollBar.setScrollTop" class="" title="ScrollBar.setScrollTop (class method)" data-id="ScrollBar.setScrollTop">setScrollTop</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li></ul></div></div><article id="ScrollBar" data-title="ScrollBar (class)" class="article"><div class="section description"><div class="memberContent"><p>A set of methods for setting and retrieving the editor&#39;s scrollbar.</p>
</div></div></article><h3 class="sectionHeader">Constructors</h3><article id="ScrollBar.new" data-title="ScrollBar.new (constructor)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="ScrollBar.new" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="constructorIdentifier">new </span><span id="ScrollBar.new" class="member-name methodClicker">ScrollBar</span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en/DOM/element" class="argument methodClicker" title="DOMElement" data-id="DOMElement">DOMElement</a> parent</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_ScrollBar.new" class="ellipsis_description"><p>Creates a new <code>ScrollBar</code>. <code>parent</code> is the owner of the scroll bar.</p>
</div><div class="description"><p>Creates a new <code>ScrollBar</code>. <code>parent</code> is the owner of the scroll bar.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">parent</td><td class="argType" "><a href="https://developer.mozilla.org/en/DOM/element" class="" title="DOMElement" data-id="DOMElement">DOMElement</a></td><td class="argDescription "><p>Required. A DOM element </p>
</td></tr></table></div></div></div></div></article><h3 class="sectionHeader">Events</h3><article id="ScrollBar.event.scroll" data-title="ScrollBar.event.scroll (event)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="ScrollBar.event.scroll" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="eventObjName">ScrollBar</span><span class="eventListenerStart">.on("</span><span id="ScrollBar.event.scroll" class="member-name eventMember methodClicker">scroll</span><span class="eventListenerClose">", </span><span class="eventFunctionOpen">function(</span><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="argument methodClicker" title="Object" data-id="Object">Object</a> e<span class="eventFunctionClose">))</span></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_ScrollBar.event.scroll" class="ellipsis_description"><p>Emitted when the scroll bar, well, scrolls.</p>
</div><div class="description"><p>Emitted when the scroll bar, well, scrolls.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">e</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. Contains one property, <code>&quot;data&quot;</code>, which indicates the current scroll top position</p>
</td></tr></table></div></div></div></div></article><h3 class="sectionHeader">Methods</h3><article id="ScrollBar.getWidth" data-title="ScrollBar.getWidth (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="ScrollBar.getWidth" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="ScrollBar.getWidth" class="member-name methodClicker"><span class="sigClassName">ScrollBar.</span><span class="sigMemberName">getWidth</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="returnType " title="Number" data-id="Number">Number</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_ScrollBar.getWidth" class="ellipsis_description"><p>Returns the width of the scroll bar.</p>
</div><div class="description"><p>Returns the width of the scroll bar.</p>
</div></div></div></div></article><article id="ScrollBar.setHeight" data-title="ScrollBar.setHeight (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="ScrollBar.setHeight" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="ScrollBar.setHeight" class="member-name methodClicker"><span class="sigClassName">ScrollBar.</span><span class="sigMemberName">setHeight</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> height</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_ScrollBar.setHeight" class="ellipsis_description"><p>Sets the height of the scroll bar, in pixels.</p>
</div><div class="description"><p>Sets the height of the scroll bar, in pixels.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">height</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The new height</p>
</td></tr></table></div></div></div></div></article><article id="ScrollBar.setInnerHeight" data-title="ScrollBar.setInnerHeight (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="ScrollBar.setInnerHeight" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="ScrollBar.setInnerHeight" class="member-name methodClicker"><span class="sigClassName">ScrollBar.</span><span class="sigMemberName">setInnerHeight</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> height</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_ScrollBar.setInnerHeight" class="ellipsis_description"><p>Sets the inner height of the scroll bar, in pixels.</p>
</div><div class="description"><p>Sets the inner height of the scroll bar, in pixels.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">height</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The new inner height</p>
</td></tr></table></div></div></div></div></article><article id="ScrollBar.setScrollTop" data-title="ScrollBar.setScrollTop (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="ScrollBar.setScrollTop" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="ScrollBar.setScrollTop" class="member-name methodClicker"><span class="sigClassName">ScrollBar.</span><span class="sigMemberName">setScrollTop</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> scrollTop</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_ScrollBar.setScrollTop" class="ellipsis_description"><p>Sets the scroll top of the scroll bar.</p>
</div><div class="description"><p>Sets the scroll top of the scroll bar.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">scrollTop</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The new scroll top</p>
</td></tr></table></div></div></div></div></article></div><script defer src="./resources/javascripts/ux.js"></script><script src="./resources/javascripts/clicker.js"></script><script src="./resources/javascripts/jquery-scrollspy.js"></script><script defer src="./resources/javascripts/disqus-ext.js"></script><script defer src="./resources/javascripts/ga.js"></script><div id="disqus_thread"></div></div>
<div id="documentation" class="span9">
<div class="classContent">
<div class="membersBackground"></div>
<div class=" members pos0">
<div class=" membersContent pos0">
<h1 class="memberHeader"><span class="name">ScrollBar</span>
</h1>
<ul data-tabs="tabs" class="nav tabs pos0">
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Events (1)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_ScrollBar.event.scroll" data-id="ScrollBar.event.scroll" class="memberLink"><a href="#ScrollBar.event.scroll" class="" title="ScrollBar.event.scroll (event)" data-id="ScrollBar.event.scroll">scroll</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_ScrollBar.new" data-id="ScrollBar.new" class="memberLink"><a href="#ScrollBar.new" class="" title="ScrollBar.new (constructor)" data-id="ScrollBar.new">new</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (5)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_ScrollBar.getWidth" data-id="ScrollBar.getWidth" class="memberLink"><a href="#ScrollBar.getWidth" class="" title="ScrollBar.getWidth (class method)" data-id="ScrollBar.getWidth">getWidth</a>
</li>
<li id="dropdown_ScrollBar.onScroll" data-id="ScrollBar.onScroll" class="memberLink"><a href="#ScrollBar.onScroll" class="" title="ScrollBar.onScroll (class method)" data-id="ScrollBar.onScroll">onScroll</a>
</li>
<li id="dropdown_ScrollBar.setHeight" data-id="ScrollBar.setHeight" class="memberLink"><a href="#ScrollBar.setHeight" class="" title="ScrollBar.setHeight (class method)" data-id="ScrollBar.setHeight">setHeight</a>
</li>
<li id="dropdown_ScrollBar.setInnerHeight" data-id="ScrollBar.setInnerHeight" class="memberLink"><a href="#ScrollBar.setInnerHeight" class="" title="ScrollBar.setInnerHeight (class method)" data-id="ScrollBar.setInnerHeight">setInnerHeight</a>
</li>
<li id="dropdown_ScrollBar.setScrollTop" data-id="ScrollBar.setScrollTop" class="memberLink"><a href="#ScrollBar.setScrollTop" class="" title="ScrollBar.setScrollTop (class method)" data-id="ScrollBar.setScrollTop">setScrollTop</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
<article id="ScrollBar" data-title="ScrollBar (class)" class="article">
<div class="section description">
<div class="memberContent"><p>A set of methods for setting and retrieving the editor&#39;s scrollbar.</p>
</div>
</div>
</article>
<h3 class="sectionHeader">Constructors</h3>
<article id="ScrollBar.new" data-title="ScrollBar.new (constructor)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="ScrollBar.new" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span class="constructorIdentifier">new </span><span id="ScrollBar.new" class="member-name methodClicker">ScrollBar</span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en/DOM/element" class="argument methodClicker" title="DOMElement" data-id="DOMElement">DOMElement</a> parent</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_ScrollBar.new" class="ellipsis_description"><p>Creates a new <code>ScrollBar</code>. <code>parent</code> is the owner of the scroll bar.</p>
</div>
<div class="description"><p>Creates a new <code>ScrollBar</code>. <code>parent</code> is the owner of the scroll bar.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">parent</td><td class="argType" "><a href="https://developer.mozilla.org/en/DOM/element" class="" title="DOMElement" data-id="DOMElement">DOMElement</a></td><td class="argDescription "><p>Required. A DOM element</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<h3 class="sectionHeader">Events</h3>
<article id="ScrollBar.event.scroll" data-title="ScrollBar.event.scroll (event)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="ScrollBar.event.scroll" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span class="eventObjName">ScrollBar</span><span class="eventListenerStart">.on("</span><span id="ScrollBar.event.scroll" class="member-name eventMember methodClicker">scroll</span><span class="eventListenerClose">", </span><span class="eventFunctionOpen">function(</span><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="argument methodClicker" title="Object" data-id="Object">Object</a> e<span class="eventFunctionClose">))</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_ScrollBar.event.scroll" class="ellipsis_description"><p>Emitted when the scroll bar, well, scrolls.</p>
</div>
<div class="description"><p>Emitted when the scroll bar, well, scrolls.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">e</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. Contains one property, <code>&quot;data&quot;</code>, which indicates the current scroll top position</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<h3 class="sectionHeader">Methods</h3>
<article id="ScrollBar.getWidth" data-title="ScrollBar.getWidth (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="ScrollBar.getWidth" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="ScrollBar.getWidth" class="member-name methodClicker"><span class="sigClassName">ScrollBar.</span><span class="sigMemberName">getWidth</span></span><span class="emptyArgumentList">()</span>
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="returnType " title="Number" data-id="Number">Number</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_ScrollBar.getWidth" class="ellipsis_description"><p>Returns the width of the scroll bar.</p>
</div>
<div class="description"><p>Returns the width of the scroll bar.</p>
</div>
</div>
</div>
</div>
</article>
<article id="ScrollBar.onScroll" data-title="ScrollBar.onScroll (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="ScrollBar.onScroll" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="ScrollBar.onScroll" class="member-name methodClicker"><span class="sigClassName">ScrollBar.</span><span class="sigMemberName">onScroll</span></span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
<li><span class="label undocumented">Undocumented</span></li>
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_ScrollBar.onScroll" class="ellipsis_description">
</div>
<div class="description">
</div>
</div>
</div>
</div>
</article>
<article id="ScrollBar.setHeight" data-title="ScrollBar.setHeight (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="ScrollBar.setHeight" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="ScrollBar.setHeight" class="member-name methodClicker"><span class="sigClassName">ScrollBar.</span><span class="sigMemberName">setHeight</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> height</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_ScrollBar.setHeight" class="ellipsis_description"><p>Sets the height of the scroll bar, in pixels.</p>
</div>
<div class="description"><p>Sets the height of the scroll bar, in pixels.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">height</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The new height</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="ScrollBar.setInnerHeight" data-title="ScrollBar.setInnerHeight (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="ScrollBar.setInnerHeight" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="ScrollBar.setInnerHeight" class="member-name methodClicker"><span class="sigClassName">ScrollBar.</span><span class="sigMemberName">setInnerHeight</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> height</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_ScrollBar.setInnerHeight" class="ellipsis_description"><p>Sets the inner height of the scroll bar, in pixels.</p>
</div>
<div class="description"><p>Sets the inner height of the scroll bar, in pixels.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">height</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The new inner height</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="ScrollBar.setScrollTop" data-title="ScrollBar.setScrollTop (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="ScrollBar.setScrollTop" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="ScrollBar.setScrollTop" class="member-name methodClicker"><span class="sigClassName">ScrollBar.</span><span class="sigMemberName">setScrollTop</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> scrollTop</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_ScrollBar.setScrollTop" class="ellipsis_description"><p>Sets the scroll top of the scroll bar.</p>
</div>
<div class="description"><p>Sets the scroll top of the scroll bar.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">scrollTop</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The new scroll top</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
</div>
<script defer src="./resources/javascripts/ux.js"></script>
<script src="./resources/javascripts/clicker.js"></script>
<script src="./resources/javascripts/jquery-scrollspy.js"></script>
<script defer src="./resources/javascripts/disqus-ext.js"></script>
<script defer src="./resources/javascripts/ga.js"></script>
<div id="disqus_thread"></div>
</div>

View file

@ -1,35 +1,295 @@
<div id="documentation" class="span8"><div class="classContent"><div class="membersBackground"></div><div class=" members pos0"><div class=" membersContent pos0"><h1 class="memberHeader"><span class="name">Search<span class="editInC9"> <a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%2Face.git' title='Edit in Cloud9 IDE'>[edit]</a></span></span></h1><ul data-tabs="tabs" class="nav tabs pos0"><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_Search.new" data-id="Search.new" class="memberLink"><a href="#Search.new" class="" title="Search.new (constructor)" data-id="Search.new">new</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (6)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_Search.$matchIterator" data-id="Search.$matchIterator" class="memberLink"><a href="#Search.$matchIterator" class="" title="Search.$matchIterator (class method)" data-id="Search.$matchIterator">$matchIterator</a></li><li id="dropdown_Search.find" data-id="Search.find" class="memberLink"><a href="#Search.find" class="" title="Search.find (class method)" data-id="Search.find">find</a></li><li id="dropdown_Search.findAll" data-id="Search.findAll" class="memberLink"><a href="#Search.findAll" class="" title="Search.findAll (class method)" data-id="Search.findAll">findAll</a></li><li id="dropdown_Search.getOptions" data-id="Search.getOptions" class="memberLink"><a href="#Search.getOptions" class="" title="Search.getOptions (class method)" data-id="Search.getOptions">getOptions</a></li><li id="dropdown_Search.replace" data-id="Search.replace" class="memberLink"><a href="#Search.replace" class="" title="Search.replace (class method)" data-id="Search.replace">replace</a></li><li id="dropdown_Search.set" data-id="Search.set" class="memberLink"><a href="#Search.set" class="" title="Search.set (class method)" data-id="Search.set">set</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li></ul></div></div><article id="Search" data-title="Search (class)" class="article"><div class="section description"><div class="memberContent"><p>A class designed to handle all sorts of text searches within a <a href="#nav=api&api=document" class="link-short" title="Document (class)" data-id="Document"><code>Document</code></a>.</p>
</div></div></article><h3 class="sectionHeader">Constructors</h3><article id="Search.new" data-title="Search.new (constructor)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Search.new" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="constructorIdentifier">new </span><span id="Search.new" class="member-name methodClicker">Search</span>(<span class="sigArgList"></span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Search.new" class="ellipsis_description"><p>Creates a new <code>Search</code> object. The following search options are avaliable:</p>
</div><div class="description"><p>Creates a new <code>Search</code> object. The following search options are avaliable:</p>
<div id="documentation" class="span9">
<div class="classContent">
<div class="membersBackground"></div>
<div class=" members pos0">
<div class=" membersContent pos0">
<h1 class="memberHeader"><span class="name">Search</span>
</h1>
<ul data-tabs="tabs" class="nav tabs pos0">
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_Search.new" data-id="Search.new" class="memberLink"><a href="#Search.new" class="" title="Search.new (constructor)" data-id="Search.new">new</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (6)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_Search.find" data-id="Search.find" class="memberLink"><a href="#Search.find" class="" title="Search.find (class method)" data-id="Search.find">find</a>
</li>
<li id="dropdown_Search.findAll" data-id="Search.findAll" class="memberLink"><a href="#Search.findAll" class="" title="Search.findAll (class method)" data-id="Search.findAll">findAll</a>
</li>
<li id="dropdown_Search.getOptions" data-id="Search.getOptions" class="memberLink"><a href="#Search.getOptions" class="" title="Search.getOptions (class method)" data-id="Search.getOptions">getOptions</a>
</li>
<li id="dropdown_Search.replace" data-id="Search.replace" class="memberLink"><a href="#Search.replace" class="" title="Search.replace (class method)" data-id="Search.replace">replace</a>
</li>
<li id="dropdown_Search.set" data-id="Search.set" class="memberLink"><a href="#Search.set" class="" title="Search.set (class method)" data-id="Search.set">set</a>
</li>
<li id="dropdown_Search.setOptions" data-id="Search.setOptions" class="memberLink"><a href="#Search.setOptions" class="" title="Search.setOptions (class method)" data-id="Search.setOptions">setOptions</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
<article id="Search" data-title="Search (class)" class="article">
<div class="section description">
<div class="memberContent"><p>A class designed to handle all sorts of text searches within a <a href="document.html" class="link-short" title="Document (class)" data-id="Document"><code>Document</code></a>.</p>
</div>
</div>
</article>
<h3 class="sectionHeader">Constructors</h3>
<article id="Search.new" data-title="Search.new (constructor)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Search.new" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span class="constructorIdentifier">new </span><span id="Search.new" class="member-name methodClicker">Search</span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Search.new" class="ellipsis_description"><p>Creates a new <code>Search</code> object. The following search options are avaliable:</p>
</div>
<div class="description"><p>Creates a new <code>Search</code> object. The following search options are avaliable:</p>
<ul>
<li><code>needle</code>: The string or regular expression you&#39;re looking for</li>
<li><code>backwards</code>: Whether to search backwards from where cursor currently is. Defaults to <code>false</code>.</li>
<li><code>wrap</code>: Whether to wrap the search back to the beginning when it hits the end. Defaults to <code>false</code>.</li>
<li><code>caseSensitive</code>: Whether the search ought to be case-sensitive. Defaults to <code>false</code>.</li>
<li><code>wholeWord</code>: Whether the search matches only on whole words. Defaults to <code>false</code>.</li>
<li><code>range</code>: The <a href="#nav=api&api=range" class="link-short" title="Range (class)" data-id="Range"><code>Range</code></a> to search within. Set this to <code>null</code> for the whole document</li>
<li><code>range</code>: The <a href="range.html" class="link-short" title="Range (class)" data-id="Range"><code>Range</code></a> to search within. Set this to <code>null</code> for the whole document</li>
<li><code>regExp</code>: Whether the search is a regular expression or not. Defaults to <code>false</code>.</li>
<li><code>start</code>: The starting <a href="#nav=api&api=range" class="link-short" title="Range (class)" data-id="Range"><code>Range</code></a> or cursor position to begin the search</li>
<li><code>start</code>: The starting <a href="range.html" class="link-short" title="Range (class)" data-id="Range"><code>Range</code></a> or cursor position to begin the search</li>
<li><code>skipCurrent</code>: Whether or not to include the current line in the search. Default to <code>false</code>.</li>
</ul>
</div></div></div></div></article><h3 class="sectionHeader">Methods</h3><article id="Search.$matchIterator" data-title="Search.$matchIterator (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Search.$matchIterator" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Search.$matchIterator" class="member-name methodClicker"><span class="sigClassName">Search.</span><span class="sigMemberName">$matchIterator</span></span>(<span class="sigArgList"><a href="#nav=api&api=edit_session" class="argument methodClicker" title="EditSession (class)" data-id="EditSession">EditSession</a> session</span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="returnType " title="String" data-id="String">String</a></li><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/Boolean.html" class="returnType " title="Boolean" data-id="Boolean">Boolean</a></li></ul></li></li></ul><ul class="metaInfo"><li><span class="label internal">Internal</span></li></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Search.$matchIterator" class="ellipsis_description"></div><div class="description"><h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">session</td><td class="argType" "><a href="#nav=api&api=edit_session" class="" title="EditSession (class)" data-id="EditSession">EditSession</a></td><td class="argDescription "><p>Required. The session to search with</p>
</td></tr></table></div></div></div></div></article><article id="Search.find" data-title="Search.find (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Search.find" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Search.find" class="member-name methodClicker"><span class="sigClassName">Search.</span><span class="sigMemberName">find</span></span>(<span class="sigArgList"><a href="#nav=api&api=edit_session" class="argument methodClicker" title="EditSession (class)" data-id="EditSession">EditSession</a> session</span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="#nav=api&api=range" class="returnType " title="Range (class)" data-id="Range">Range</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Search.find" class="ellipsis_description"><p>Searches for <code>options.needle</code>. If found, this method returns the <a href="#nav=api&api=range" class="link-short" title="Range (class)" data-id="Range"><code>Range</code></a> where the text first occurs. If <code>options.backwards</code> is <code>true</code>, the search goes backwards in the session.</p>
</div><div class="description"><p>Searches for <code>options.needle</code>. If found, this method returns the <a href="#nav=api&api=range" class="link-short" title="Range (class)" data-id="Range"><code>Range</code></a> where the text first occurs. If <code>options.backwards</code> is <code>true</code>, the search goes backwards in the session.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">session</td><td class="argType" "><a href="#nav=api&api=edit_session" class="" title="EditSession (class)" data-id="EditSession">EditSession</a></td><td class="argDescription "><p>Required. The session to search with</p>
</td></tr></table></div></div></div></div></article><article id="Search.findAll" data-title="Search.findAll (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Search.findAll" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Search.findAll" class="member-name methodClicker"><span class="sigClassName">Search.</span><span class="sigMemberName">findAll</span></span>(<span class="sigArgList"><a href="#nav=api&api=edit_session" class="argument methodClicker" title="EditSession (class)" data-id="EditSession">EditSession</a> session</span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type">[ <a href="#nav=api&api=range" class="returnType " title="Range (class)" data-id="Range">Range</a> ]</li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Search.findAll" class="ellipsis_description"><p>Searches for all occurances <code>options.needle</code>. If found, this method returns an array of <a href="#nav=api&api=range" class="link-short" title="Range (class)" data-id="Range"><code>Range</code>s</a> where the text first occurs. If <code>options.backwards</code> is <code>true</code>, the search goes backwards in the session.</p>
</div><div class="description"><p>Searches for all occurances <code>options.needle</code>. If found, this method returns an array of <a href="#nav=api&api=range" class="link-short" title="Range (class)" data-id="Range"><code>Range</code>s</a> where the text first occurs. If <code>options.backwards</code> is <code>true</code>, the search goes backwards in the session.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">session</td><td class="argType" "><a href="#nav=api&api=edit_session" class="" title="EditSession (class)" data-id="EditSession">EditSession</a></td><td class="argDescription "><p>Required. The session to search with</p>
</td></tr></table></div></div></div></div></article><article id="Search.getOptions" data-title="Search.getOptions (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Search.getOptions" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Search.getOptions" class="member-name methodClicker"><span class="sigClassName">Search.</span><span class="sigMemberName">getOptions</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="returnType " title="Object" data-id="Object">Object</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Search.getOptions" class="ellipsis_description"><p>Returns an object containing all the search options.</p>
</div><div class="description"><p>Returns an object containing all the search options.</p>
</div></div></div></div></article><article id="Search.replace" data-title="Search.replace (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Search.replace" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Search.replace" class="member-name methodClicker"><span class="sigClassName">Search.</span><span class="sigMemberName">replace</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="argument methodClicker" title="String" data-id="String">String</a> input, <a href="http://www.nodemanual.org/latest/js_doc/String.html" class="argument methodClicker" title="String" data-id="String">String</a> replacement</span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="returnType " title="String" data-id="String">String</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Search.replace" class="ellipsis_description"><p>Searches for <code>options.needle</code> in <code>input</code>, and, if found, replaces it with <code>replacement</code>.</p>
</div><div class="description"><p>Searches for <code>options.needle</code> in <code>input</code>, and, if found, replaces it with <code>replacement</code>.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">input</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="" title="String" data-id="String">String</a></td><td class="argDescription "><p>Required. The text to search in</p>
</td></tr><tr class="argumentRow "><td class="argName ">replacement</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="" title="String" data-id="String">String</a></td><td class="argDescription "><p>Required. The replacing text</p>
</td></tr></table><h4>Returns</h4><table class="returnTable return-list table table-striped table-bordered"><tr class=" "><td class="returnType "><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="" title="String" data-id="String">String</a></td><td class="returnDescription "><p> If <code>options.regExp</code> is <code>true</code>, this function returns <code>input</code> with the replacement already made. Otherwise, this function just returns <code>replacement</code>.<br/></p>
</div>
</div>
</div>
</div>
</article>
<h3 class="sectionHeader">Methods</h3>
<article id="Search.find" data-title="Search.find (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Search.find" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Search.find" class="member-name methodClicker"><span class="sigClassName">Search.</span><span class="sigMemberName">find</span></span>(<span class="sigArgList"><a href="edit_session.html" class="argument methodClicker" title="EditSession (class)" data-id="EditSession">EditSession</a> session</span>)
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="range.html" class="returnType " title="Range (class)" data-id="Range">Range</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Search.find" class="ellipsis_description"><p>Searches for <code>options.needle</code>. If found, this method returns the <a href="range.html" class="link-short" title="Range (class)" data-id="Range"><code>Range</code></a> where the text first occurs. If <code>options.backwards</code> is <code>true</code>, the search goes backwards in the session.</p>
</div>
<div class="description"><p>Searches for <code>options.needle</code>. If found, this method returns the <a href="range.html" class="link-short" title="Range (class)" data-id="Range"><code>Range</code></a> where the text first occurs. If <code>options.backwards</code> is <code>true</code>, the search goes backwards in the session.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">session</td><td class="argType" "><a href="edit_session.html" class="" title="EditSession (class)" data-id="EditSession">EditSession</a></td><td class="argDescription "><p>Required. The session to search with</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="Search.findAll" data-title="Search.findAll (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Search.findAll" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Search.findAll" class="member-name methodClicker"><span class="sigClassName">Search.</span><span class="sigMemberName">findAll</span></span>(<span class="sigArgList"><a href="edit_session.html" class="argument methodClicker" title="EditSession (class)" data-id="EditSession">EditSession</a> session</span>)
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="range.html" class="returnType " title="Range (class)" data-id="Range">Range</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Search.findAll" class="ellipsis_description"><p>Searches for all occurances <code>options.needle</code>. If found, this method returns an array of <a href="range.html" class="link-short" title="Range (class)" data-id="Range"><code>Range</code>s</a> where the text first occurs. If <code>options.backwards</code> is <code>true</code>, the search goes backwards in the session.</p>
</div>
<div class="description"><p>Searches for all occurances <code>options.needle</code>. If found, this method returns an array of <a href="range.html" class="link-short" title="Range (class)" data-id="Range"><code>Range</code>s</a> where the text first occurs. If <code>options.backwards</code> is <code>true</code>, the search goes backwards in the session.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">session</td><td class="argType" "><a href="edit_session.html" class="" title="EditSession (class)" data-id="EditSession">EditSession</a></td><td class="argDescription "><p>Required. The session to search with</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="Search.getOptions" data-title="Search.getOptions (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Search.getOptions" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Search.getOptions" class="member-name methodClicker"><span class="sigClassName">Search.</span><span class="sigMemberName">getOptions</span></span><span class="emptyArgumentList">()</span>
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="returnType " title="Object" data-id="Object">Object</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Search.getOptions" class="ellipsis_description"><p>Returns an object containing all the search options.</p>
</div>
<div class="description"><p>Returns an object containing all the search options.</p>
</div>
</div>
</div>
</div>
</article>
<article id="Search.replace" data-title="Search.replace (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Search.replace" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Search.replace" class="member-name methodClicker"><span class="sigClassName">Search.</span><span class="sigMemberName">replace</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="argument methodClicker" title="String" data-id="String">String</a> input, <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="argument methodClicker" title="String" data-id="String">String</a> replacement</span>)
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="returnType " title="String" data-id="String">String</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Search.replace" class="ellipsis_description"><p>Searches for <code>options.needle</code> in <code>input</code>, and, if found, replaces it with <code>replacement</code>.</p>
</div>
<div class="description"><p>Searches for <code>options.needle</code> in <code>input</code>, and, if found, replaces it with <code>replacement</code>.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">input</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="" title="String" data-id="String">String</a></td><td class="argDescription "><p>Required. The text to search in</p>
</td></tr><tr class="argumentRow "><td class="argName ">replacement</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="" title="String" data-id="String">String</a></td><td class="argDescription "><p>Required. The replacing text</p>
<ul>
<li>If <code>options.needle</code> was not found, this function returns <code>null</code>.</li>
<li>(String): If <code>options.regExp</code> is <code>true</code>, this function returns <code>input</code> with the replacement already made. Otherwise, this function just returns <code>replacement</code>.<br/>
If <code>options.needle</code> was not found, this function returns <code>null</code>.</li>
</ul>
</td></tr></table></div></div></div></div></article><article id="Search.set" data-title="Search.set (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Search.set" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Search.set" class="member-name methodClicker"><span class="sigClassName">Search.</span><span class="sigMemberName">set</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="argument methodClicker" title="Object" data-id="Object">Object</a> options</span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="#Search" class="returnType " title="Search (class)" data-id="Search">Search</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Search.set" class="ellipsis_description"><p>Sets the search options via the <code>options</code> parameter.</p>
</div><div class="description"><p>Sets the search options via the <code>options</code> parameter.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">options</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. An object containing all the new search properties</p>
</td></tr></table></div></div></div></div></article></div><script defer src="./resources/javascripts/ux.js"></script><script src="./resources/javascripts/clicker.js"></script><script src="./resources/javascripts/jquery-scrollspy.js"></script><script defer src="./resources/javascripts/disqus-ext.js"></script><script defer src="./resources/javascripts/ga.js"></script><div id="disqus_thread"></div></div>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="Search.set" data-title="Search.set (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Search.set" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Search.set" class="member-name methodClicker"><span class="sigClassName">Search.</span><span class="sigMemberName">set</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="argument methodClicker" title="Object" data-id="Object">Object</a> options</span>)
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="search.html" class="returnType " title="Search (class)" data-id="Search">Search</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
<li><span class="label chainable">Chainable</span></li>
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Search.set" class="ellipsis_description"><p>Sets the search options via the <code>options</code> parameter.</p>
</div>
<div class="description"><p>Sets the search options via the <code>options</code> parameter.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">options</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. An object containing all the new search properties</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="Search.setOptions" data-title="Search.setOptions (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Search.setOptions" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Search.setOptions" class="member-name methodClicker"><span class="sigClassName">Search.</span><span class="sigMemberName">setOptions</span></span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
<li><span class="label undocumented">Undocumented</span></li>
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Search.setOptions" class="ellipsis_description">
</div>
<div class="description">
</div>
</div>
</div>
</div>
</article>
</div>
<script defer src="./resources/javascripts/ux.js"></script>
<script src="./resources/javascripts/clicker.js"></script>
<script src="./resources/javascripts/jquery-scrollspy.js"></script>
<script defer src="./resources/javascripts/disqus-ext.js"></script>
<script defer src="./resources/javascripts/ga.js"></script>
<div id="disqus_thread"></div>
</div>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,18 +1,248 @@
<div id="documentation" class="span8"><div class="classContent"><div class="membersBackground"></div><div class=" members pos0"><div class=" membersContent pos0"><h1 class="memberHeader"><span class="name">TokenIterator<span class="editInC9"> <a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%2Face.git' title='Edit in Cloud9 IDE'>[edit]</a></span></span></h1><ul data-tabs="tabs" class="nav tabs pos0"><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_TokenIterator.new" data-id="TokenIterator.new" class="memberLink"><a href="#TokenIterator.new" class="" title="TokenIterator.new (constructor)" data-id="TokenIterator.new">new</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (5)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_TokenIterator.getCurrentToken" data-id="TokenIterator.getCurrentToken" class="memberLink"><a href="#TokenIterator.getCurrentToken" class="" title="TokenIterator.getCurrentToken (class method)" data-id="TokenIterator.getCurrentToken">getCurrentToken</a></li><li id="dropdown_TokenIterator.getCurrentTokenColumn" data-id="TokenIterator.getCurrentTokenColumn" class="memberLink"><a href="#TokenIterator.getCurrentTokenColumn" class="" title="TokenIterator.getCurrentTokenColumn (class method)" data-id="TokenIterator.getCurrentTokenColumn">getCurrentTokenColumn</a></li><li id="dropdown_TokenIterator.getCurrentTokenRow" data-id="TokenIterator.getCurrentTokenRow" class="memberLink"><a href="#TokenIterator.getCurrentTokenRow" class="" title="TokenIterator.getCurrentTokenRow (class method)" data-id="TokenIterator.getCurrentTokenRow">getCurrentTokenRow</a></li><li id="dropdown_TokenIterator.stepBackward" data-id="TokenIterator.stepBackward" class="memberLink"><a href="#TokenIterator.stepBackward" class="" title="TokenIterator.stepBackward (class method)" data-id="TokenIterator.stepBackward">stepBackward</a></li><li id="dropdown_TokenIterator.stepForward" data-id="TokenIterator.stepForward" class="memberLink"><a href="#TokenIterator.stepForward" class="" title="TokenIterator.stepForward (class method)" data-id="TokenIterator.stepForward">stepForward</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li></ul></div></div><article id="TokenIterator" data-title="TokenIterator (class)" class="article"><div class="section description"><div class="memberContent"><p>This class provides an essay way to treat the document as a stream of tokens, and provides methods to iterate over these tokens.</p>
</div></div></article><h3 class="sectionHeader">Constructors</h3><article id="TokenIterator.new" data-title="TokenIterator.new (constructor)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="TokenIterator.new" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="constructorIdentifier">new </span><span id="TokenIterator.new" class="member-name methodClicker">TokenIterator</span>(<span class="sigArgList"><a href="#nav=api&api=edit_session" class="argument methodClicker" title="EditSession (class)" data-id="EditSession">EditSession</a> session, <a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> initialRow, <a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="argument methodClicker" title="Number" data-id="Number">Number</a> initialColumn</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_TokenIterator.new" class="ellipsis_description"><p>Creates a new token iterator object. The inital token index is set to the provided row and column coordinates.</p>
</div><div class="description"><p>Creates a new token iterator object. The inital token index is set to the provided row and column coordinates.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">session</td><td class="argType" "><a href="#nav=api&api=edit_session" class="" title="EditSession (class)" data-id="EditSession">EditSession</a></td><td class="argDescription "><p>Required. The session to associate with</p>
</td></tr><tr class="argumentRow "><td class="argName ">initialRow</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The row to start the tokenizing at</p>
</td></tr><tr class="argumentRow "><td class="argName ">initialColumn</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The column to start the tokenizing at</p>
</td></tr></table></div></div></div></div></article><h3 class="sectionHeader">Methods</h3><article id="TokenIterator.getCurrentToken" data-title="TokenIterator.getCurrentToken (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="TokenIterator.getCurrentToken" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="TokenIterator.getCurrentToken" class="member-name methodClicker"><span class="sigClassName">TokenIterator.</span><span class="sigMemberName">getCurrentToken</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="returnType " title="String" data-id="String">String</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_TokenIterator.getCurrentToken" class="ellipsis_description"><p>Returns the current tokenized string.</p>
</div><div class="description"><p>Returns the current tokenized string.</p>
</div></div></div></div></article><article id="TokenIterator.getCurrentTokenColumn" data-title="TokenIterator.getCurrentTokenColumn (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="TokenIterator.getCurrentTokenColumn" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="TokenIterator.getCurrentTokenColumn" class="member-name methodClicker"><span class="sigClassName">TokenIterator.</span><span class="sigMemberName">getCurrentTokenColumn</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="returnType " title="Number" data-id="Number">Number</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_TokenIterator.getCurrentTokenColumn" class="ellipsis_description"><p>Returns the current column.</p>
</div><div class="description"><p>Returns the current column.</p>
</div></div></div></div></article><article id="TokenIterator.getCurrentTokenRow" data-title="TokenIterator.getCurrentTokenRow (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="TokenIterator.getCurrentTokenRow" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="TokenIterator.getCurrentTokenRow" class="member-name methodClicker"><span class="sigClassName">TokenIterator.</span><span class="sigMemberName">getCurrentTokenRow</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/Number.html" class="returnType " title="Number" data-id="Number">Number</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_TokenIterator.getCurrentTokenRow" class="ellipsis_description"><p>Returns the current row.</p>
</div><div class="description"><p>Returns the current row.</p>
</div></div></div></div></article><article id="TokenIterator.stepBackward" data-title="TokenIterator.stepBackward (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="TokenIterator.stepBackward" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="TokenIterator.stepBackward" class="member-name methodClicker"><span class="sigClassName">TokenIterator.</span><span class="sigMemberName">stepBackward</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type">[ <a href="http://www.nodemanual.org/latest/js_doc/String.html" class="returnType " title="String" data-id="String">String</a> ]</li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_TokenIterator.stepBackward" class="ellipsis_description"><p>Tokenizes all the items from the current point to the row prior in the document.</p>
</div><div class="description"><p>Tokenizes all the items from the current point to the row prior in the document.</p>
<h4>Returns</h4><table class="returnTable return-list table table-striped table-bordered"><tr class=" "><td class="returnType "><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="" title="String" data-id="String">String</a></td><td class="returnDescription "><p> If the current point is not at the top of the file, this function returns <code>null</code>. Otherwise, it returns an array of the tokenized strings.</p>
</td></tr></table></div></div></div></div></article><article id="TokenIterator.stepForward" data-title="TokenIterator.stepForward (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="TokenIterator.stepForward" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="TokenIterator.stepForward" class="member-name methodClicker"><span class="sigClassName">TokenIterator.</span><span class="sigMemberName">stepForward</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="returnType " title="String" data-id="String">String</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_TokenIterator.stepForward" class="ellipsis_description"><p>Tokenizes all the items from the current point until the next row in the document. If the current point is at the end of the file, this function returns <code>null</code>. Otherwise, it returns the tokenized string.</p>
</div><div class="description"><p>Tokenizes all the items from the current point until the next row in the document. If the current point is at the end of the file, this function returns <code>null</code>. Otherwise, it returns the tokenized string.</p>
</div></div></div></div></article></div><script defer src="./resources/javascripts/ux.js"></script><script src="./resources/javascripts/clicker.js"></script><script src="./resources/javascripts/jquery-scrollspy.js"></script><script defer src="./resources/javascripts/disqus-ext.js"></script><script defer src="./resources/javascripts/ga.js"></script><div id="disqus_thread"></div></div>
<div id="documentation" class="span9">
<div class="classContent">
<div class="membersBackground"></div>
<div class=" members pos0">
<div class=" membersContent pos0">
<h1 class="memberHeader"><span class="name">TokenIterator</span>
</h1>
<ul data-tabs="tabs" class="nav tabs pos0">
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_TokenIterator.new" data-id="TokenIterator.new" class="memberLink"><a href="#TokenIterator.new" class="" title="TokenIterator.new (constructor)" data-id="TokenIterator.new">new</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (5)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_TokenIterator.getCurrentToken" data-id="TokenIterator.getCurrentToken" class="memberLink"><a href="#TokenIterator.getCurrentToken" class="" title="TokenIterator.getCurrentToken (class method)" data-id="TokenIterator.getCurrentToken">getCurrentToken</a>
</li>
<li id="dropdown_TokenIterator.getCurrentTokenColumn" data-id="TokenIterator.getCurrentTokenColumn" class="memberLink"><a href="#TokenIterator.getCurrentTokenColumn" class="" title="TokenIterator.getCurrentTokenColumn (class method)" data-id="TokenIterator.getCurrentTokenColumn">getCurrentTokenColumn</a>
</li>
<li id="dropdown_TokenIterator.getCurrentTokenRow" data-id="TokenIterator.getCurrentTokenRow" class="memberLink"><a href="#TokenIterator.getCurrentTokenRow" class="" title="TokenIterator.getCurrentTokenRow (class method)" data-id="TokenIterator.getCurrentTokenRow">getCurrentTokenRow</a>
</li>
<li id="dropdown_TokenIterator.stepBackward" data-id="TokenIterator.stepBackward" class="memberLink"><a href="#TokenIterator.stepBackward" class="" title="TokenIterator.stepBackward (class method)" data-id="TokenIterator.stepBackward">stepBackward</a>
</li>
<li id="dropdown_TokenIterator.stepForward" data-id="TokenIterator.stepForward" class="memberLink"><a href="#TokenIterator.stepForward" class="" title="TokenIterator.stepForward (class method)" data-id="TokenIterator.stepForward">stepForward</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
<article id="TokenIterator" data-title="TokenIterator (class)" class="article">
<div class="section description">
<div class="memberContent"><p>This class provides an essay way to treat the document as a stream of tokens, and provides methods to iterate over these tokens.</p>
</div>
</div>
</article>
<h3 class="sectionHeader">Constructors</h3>
<article id="TokenIterator.new" data-title="TokenIterator.new (constructor)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="TokenIterator.new" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span class="constructorIdentifier">new </span><span id="TokenIterator.new" class="member-name methodClicker">TokenIterator</span>(<span class="sigArgList"><a href="edit_session.html" class="argument methodClicker" title="EditSession (class)" data-id="EditSession">EditSession</a> session, <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> initialRow, <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="argument methodClicker" title="Number" data-id="Number">Number</a> initialColumn</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_TokenIterator.new" class="ellipsis_description"><p>Creates a new token iterator object. The inital token index is set to the provided row and column coordinates.</p>
</div>
<div class="description"><p>Creates a new token iterator object. The inital token index is set to the provided row and column coordinates.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">session</td><td class="argType" "><a href="edit_session.html" class="" title="EditSession (class)" data-id="EditSession">EditSession</a></td><td class="argDescription "><p>Required. The session to associate with</p>
</td></tr><tr class="argumentRow "><td class="argName ">initialRow</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The row to start the tokenizing at</p>
</td></tr><tr class="argumentRow "><td class="argName ">initialColumn</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="" title="Number" data-id="Number">Number</a></td><td class="argDescription "><p>Required. The column to start the tokenizing at</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<h3 class="sectionHeader">Methods</h3>
<article id="TokenIterator.getCurrentToken" data-title="TokenIterator.getCurrentToken (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="TokenIterator.getCurrentToken" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="TokenIterator.getCurrentToken" class="member-name methodClicker"><span class="sigClassName">TokenIterator.</span><span class="sigMemberName">getCurrentToken</span></span><span class="emptyArgumentList">()</span>
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="returnType " title="String" data-id="String">String</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_TokenIterator.getCurrentToken" class="ellipsis_description"><p>Returns the current tokenized string.</p>
</div>
<div class="description"><p>Returns the current tokenized string.</p>
</div>
</div>
</div>
</div>
</article>
<article id="TokenIterator.getCurrentTokenColumn" data-title="TokenIterator.getCurrentTokenColumn (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="TokenIterator.getCurrentTokenColumn" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="TokenIterator.getCurrentTokenColumn" class="member-name methodClicker"><span class="sigClassName">TokenIterator.</span><span class="sigMemberName">getCurrentTokenColumn</span></span><span class="emptyArgumentList">()</span>
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="returnType " title="Number" data-id="Number">Number</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_TokenIterator.getCurrentTokenColumn" class="ellipsis_description"><p>Returns the current column.</p>
</div>
<div class="description"><p>Returns the current column.</p>
</div>
</div>
</div>
</div>
</article>
<article id="TokenIterator.getCurrentTokenRow" data-title="TokenIterator.getCurrentTokenRow (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="TokenIterator.getCurrentTokenRow" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="TokenIterator.getCurrentTokenRow" class="member-name methodClicker"><span class="sigClassName">TokenIterator.</span><span class="sigMemberName">getCurrentTokenRow</span></span><span class="emptyArgumentList">()</span>
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number" class="returnType " title="Number" data-id="Number">Number</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_TokenIterator.getCurrentTokenRow" class="ellipsis_description"><p>Returns the current row.</p>
</div>
<div class="description"><p>Returns the current row.</p>
</div>
</div>
</div>
</div>
</article>
<article id="TokenIterator.stepBackward" data-title="TokenIterator.stepBackward (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="TokenIterator.stepBackward" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="TokenIterator.stepBackward" class="member-name methodClicker"><span class="sigClassName">TokenIterator.</span><span class="sigMemberName">stepBackward</span></span><span class="emptyArgumentList">()</span>
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="returnType " title="String" data-id="String">String</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_TokenIterator.stepBackward" class="ellipsis_description"><p>Tokenizes all the items from the current point to the row prior in the document.</p>
</div>
<div class="description"><p>Tokenizes all the items from the current point to the row prior in the document.</p>
</div>
</div>
</div>
</div>
</article>
<article id="TokenIterator.stepForward" data-title="TokenIterator.stepForward (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="TokenIterator.stepForward" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="TokenIterator.stepForward" class="member-name methodClicker"><span class="sigClassName">TokenIterator.</span><span class="sigMemberName">stepForward</span></span><span class="emptyArgumentList">()</span>
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="returnType " title="String" data-id="String">String</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_TokenIterator.stepForward" class="ellipsis_description"><p>Tokenizes all the items from the current point until the next row in the document. If the current point is at the end of the file, this function returns <code>null</code>. Otherwise, it returns the tokenized string.</p>
</div>
<div class="description"><p>Tokenizes all the items from the current point until the next row in the document. If the current point is at the end of the file, this function returns <code>null</code>. Otherwise, it returns the tokenized string.</p>
</div>
</div>
</div>
</div>
</article>
</div>
<script defer src="./resources/javascripts/ux.js"></script>
<script src="./resources/javascripts/clicker.js"></script>
<script src="./resources/javascripts/jquery-scrollspy.js"></script>
<script defer src="./resources/javascripts/disqus-ext.js"></script>
<script defer src="./resources/javascripts/ga.js"></script>
<div id="disqus_thread"></div>
</div>

View file

@ -1,8 +1,122 @@
<div id="documentation" class="span8"><div class="classContent"><div class="membersBackground"></div><div class=" members pos0"><div class=" membersContent pos0"><h1 class="memberHeader"><span class="name">Tokenizer<span class="editInC9"> <a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%2Face.git' title='Edit in Cloud9 IDE'>[edit]</a></span></span></h1><ul data-tabs="tabs" class="nav tabs pos0"><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_Tokenizer.new" data-id="Tokenizer.new" class="memberLink"><a href="#Tokenizer.new" class="" title="Tokenizer.new (constructor)" data-id="Tokenizer.new">new</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_Tokenizer.getLineTokens" data-id="Tokenizer.getLineTokens" class="memberLink"><a href="#Tokenizer.getLineTokens" class="" title="Tokenizer.getLineTokens (class method)" data-id="Tokenizer.getLineTokens">getLineTokens</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li></ul></div></div><article id="Tokenizer" data-title="Tokenizer (class)" class="article"><div class="section description"><div class="memberContent"><p>This class takes a set of highlighting rules, and creates a tokenizer out of them. For more information, see <a href="https://github.com/ajaxorg/ace/wiki/Creating-or-Extending-an-Edit-Mode#wiki-extendingTheHighlighter">the wiki on extending highlighters</a>.</p>
</div></div></article><h3 class="sectionHeader">Constructors</h3><article id="Tokenizer.new" data-title="Tokenizer.new (constructor)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Tokenizer.new" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="constructorIdentifier">new </span><span id="Tokenizer.new" class="member-name methodClicker">Tokenizer</span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="argument methodClicker" title="Object" data-id="Object">Object</a> rules, <a href="http://www.nodemanual.org/latest/js_doc/String.html" class="argument methodClicker" title="String" data-id="String">String</a> flag</span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Tokenizer.new" class="ellipsis_description"><p>Constructs a new tokenizer based on the given rules and flags.</p>
</div><div class="description"><p>Constructs a new tokenizer based on the given rules and flags.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">rules</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. The highlighting rules</p>
</td></tr><tr class="argumentRow "><td class="argName ">flag</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/String.html" class="" title="String" data-id="String">String</a></td><td class="argDescription "><p>Required. Any additional regular expression flags to pass (like &quot;i&quot; for case insensitive)</p>
</td></tr></table></div></div></div></div></article><h3 class="sectionHeader">Methods</h3><article id="Tokenizer.getLineTokens" data-title="Tokenizer.getLineTokens (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="Tokenizer.getLineTokens" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="Tokenizer.getLineTokens" class="member-name methodClicker"><span class="sigClassName">Tokenizer.</span><span class="sigMemberName">getLineTokens</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="returnType " title="Object" data-id="Object">Object</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_Tokenizer.getLineTokens" class="ellipsis_description"><p>Returns an object containing two properties: <code>tokens</code>, which contains all the tokens; and <code>state</code>, the current state.</p>
</div><div class="description"><p>Returns an object containing two properties: <code>tokens</code>, which contains all the tokens; and <code>state</code>, the current state.</p>
</div></div></div></div></article></div><script defer src="./resources/javascripts/ux.js"></script><script src="./resources/javascripts/clicker.js"></script><script src="./resources/javascripts/jquery-scrollspy.js"></script><script defer src="./resources/javascripts/disqus-ext.js"></script><script defer src="./resources/javascripts/ga.js"></script><div id="disqus_thread"></div></div>
<div id="documentation" class="span9">
<div class="classContent">
<div class="membersBackground"></div>
<div class=" members pos0">
<div class=" membersContent pos0">
<h1 class="memberHeader"><span class="name">Tokenizer</span>
</h1>
<ul data-tabs="tabs" class="nav tabs pos0">
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_Tokenizer.new" data-id="Tokenizer.new" class="memberLink"><a href="#Tokenizer.new" class="" title="Tokenizer.new (constructor)" data-id="Tokenizer.new">new</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (1)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_Tokenizer.getLineTokens" data-id="Tokenizer.getLineTokens" class="memberLink"><a href="#Tokenizer.getLineTokens" class="" title="Tokenizer.getLineTokens (class method)" data-id="Tokenizer.getLineTokens">getLineTokens</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
<article id="Tokenizer" data-title="Tokenizer (class)" class="article">
<div class="section description">
<div class="memberContent"><p>This class takes a set of highlighting rules, and creates a tokenizer out of them. For more information, see <a href="https://github.com/ajaxorg/ace/wiki/Creating-or-Extending-an-Edit-Mode#wiki-extendingTheHighlighter">the wiki on extending highlighters</a>.</p>
</div>
</div>
</article>
<h3 class="sectionHeader">Constructors</h3>
<article id="Tokenizer.new" data-title="Tokenizer.new (constructor)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Tokenizer.new" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span class="constructorIdentifier">new </span><span id="Tokenizer.new" class="member-name methodClicker">Tokenizer</span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="argument methodClicker" title="Object" data-id="Object">Object</a> rules, <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="argument methodClicker" title="String" data-id="String">String</a> flag</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Tokenizer.new" class="ellipsis_description"><p>Constructs a new tokenizer based on the given rules and flags.</p>
</div>
<div class="description"><p>Constructs a new tokenizer based on the given rules and flags.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">rules</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. The highlighting rules</p>
</td></tr><tr class="argumentRow "><td class="argName ">flag</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="" title="String" data-id="String">String</a></td><td class="argDescription "><p>Required. Any additional regular expression flags to pass (like &quot;i&quot; for case insensitive)</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<h3 class="sectionHeader">Methods</h3>
<article id="Tokenizer.getLineTokens" data-title="Tokenizer.getLineTokens (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="Tokenizer.getLineTokens" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="Tokenizer.getLineTokens" class="member-name methodClicker"><span class="sigClassName">Tokenizer.</span><span class="sigMemberName">getLineTokens</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="argument methodClicker" title="Object" data-id="Object">Object</a> line, <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="argument methodClicker" title="Object" data-id="Object">Object</a> startState</span>)
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="returnType " title="Object" data-id="Object">Object</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_Tokenizer.getLineTokens" class="ellipsis_description"><p>Returns an object containing two properties: <code>tokens</code>, which contains all the tokens; and <code>state</code>, the current state.</p>
</div>
<div class="description"><p>Returns an object containing two properties: <code>tokens</code>, which contains all the tokens; and <code>state</code>, the current state.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">line</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. </p>
</td></tr><tr class="argumentRow "><td class="argName ">startState</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. </p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
</div>
<script defer src="./resources/javascripts/ux.js"></script>
<script src="./resources/javascripts/clicker.js"></script>
<script src="./resources/javascripts/jquery-scrollspy.js"></script>
<script defer src="./resources/javascripts/disqus-ext.js"></script>
<script defer src="./resources/javascripts/ga.js"></script>
<div id="disqus_thread"></div>
</div>

View file

@ -1,23 +1,271 @@
<div id="documentation" class="span8"><div class="classContent"><div class="membersBackground"></div><div class=" members pos0"><div class=" membersContent pos0"><h1 class="memberHeader"><span class="name">UndoManager<span class="editInC9"> <a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%2Face.git' title='Edit in Cloud9 IDE'>[edit]</a></span></span></h1><ul data-tabs="tabs" class="nav tabs pos0"><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_UndoManager.new" data-id="UndoManager.new" class="memberLink"><a href="#UndoManager.new" class="" title="UndoManager.new (constructor)" data-id="UndoManager.new">new</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (6)</span><b class="caret"></b></a><ul class="dropdown-menu"><li id="dropdown_UndoManager.execute" data-id="UndoManager.execute" class="memberLink"><a href="#UndoManager.execute" class="" title="UndoManager.execute (class method)" data-id="UndoManager.execute">execute</a></li><li id="dropdown_UndoManager.hasRedo" data-id="UndoManager.hasRedo" class="memberLink"><a href="#UndoManager.hasRedo" class="" title="UndoManager.hasRedo (class method)" data-id="UndoManager.hasRedo">hasRedo</a></li><li id="dropdown_UndoManager.hasUndo" data-id="UndoManager.hasUndo" class="memberLink"><a href="#UndoManager.hasUndo" class="" title="UndoManager.hasUndo (class method)" data-id="UndoManager.hasUndo">hasUndo</a></li><li id="dropdown_UndoManager.redo" data-id="UndoManager.redo" class="memberLink"><a href="#UndoManager.redo" class="" title="UndoManager.redo (class method)" data-id="UndoManager.redo">redo</a></li><li id="dropdown_UndoManager.reset" data-id="UndoManager.reset" class="memberLink"><a href="#UndoManager.reset" class="" title="UndoManager.reset (class method)" data-id="UndoManager.reset">reset</a></li><li id="dropdown_UndoManager.undo" data-id="UndoManager.undo" class="memberLink"><a href="#UndoManager.undo" class="" title="UndoManager.undo (class method)" data-id="UndoManager.undo">undo</a></li></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li><li data-dropdown="dropdown" class="dropdown"><ul class="dropdown-menu"></ul></li></ul></div></div><article id="UndoManager" data-title="UndoManager (class)" class="article"><div class="section description"><div class="memberContent"><p>This object maintains the undo stack for an <a href="#nav=api&api=edit_session" class="link-short" title="EditSession (class)" data-id="EditSession"><code>EditSession</code></a>.</p>
</div></div></article><h3 class="sectionHeader">Constructors</h3><article id="UndoManager.new" data-title="UndoManager.new (constructor)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="UndoManager.new" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span class="constructorIdentifier">new </span><span id="UndoManager.new" class="member-name methodClicker">UndoManager</span>(<span class="sigArgList"></span>)</li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_UndoManager.new" class="ellipsis_description"><p>Resets the current undo state and creates a new <code>UndoManager</code>.</p>
</div><div class="description"><p>Resets the current undo state and creates a new <code>UndoManager</code>.</p>
</div></div></div></div></article><h3 class="sectionHeader">Methods</h3><article id="UndoManager.execute" data-title="UndoManager.execute (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="UndoManager.execute" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="UndoManager.execute" class="member-name methodClicker"><span class="sigClassName">UndoManager.</span><span class="sigMemberName">execute</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="argument methodClicker" title="Object" data-id="Object">Object</a> options</span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><span class="returnType " title="UndoManager.execute (class method)">Void</span></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_UndoManager.execute" class="ellipsis_description"><p>Provides a means for implementing your own undo manager. <code>options</code> has one property, <code>args</code>, an <a href="http://www.nodemanual.org/latest/js_doc/Array.html" class="link-short" title="<code>Array</code>" data-id="<code>Array</code>"><code>Array</code></a>, with two elements:</p>
</div><div class="description"><p>Provides a means for implementing your own undo manager. <code>options</code> has one property, <code>args</code>, an <a href="http://www.nodemanual.org/latest/js_doc/Array.html" class="link-short" title="<code>Array</code>" data-id="<code>Array</code>"><code>Array</code></a>, with two elements:</p>
<div id="documentation" class="span9">
<div class="classContent">
<div class="membersBackground"></div>
<div class=" members pos0">
<div class=" membersContent pos0">
<h1 class="memberHeader"><span class="name">UndoManager</span>
</h1>
<ul data-tabs="tabs" class="nav tabs pos0">
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Constructors (1)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_UndoManager.new" data-id="UndoManager.new" class="memberLink"><a href="#UndoManager.new" class="" title="UndoManager.new (constructor)" data-id="UndoManager.new">new</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Functions (6)</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li id="dropdown_UndoManager.execute" data-id="UndoManager.execute" class="memberLink"><a href="#UndoManager.execute" class="" title="UndoManager.execute (class method)" data-id="UndoManager.execute">execute</a>
</li>
<li id="dropdown_UndoManager.hasRedo" data-id="UndoManager.hasRedo" class="memberLink"><a href="#UndoManager.hasRedo" class="" title="UndoManager.hasRedo (class method)" data-id="UndoManager.hasRedo">hasRedo</a>
</li>
<li id="dropdown_UndoManager.hasUndo" data-id="UndoManager.hasUndo" class="memberLink"><a href="#UndoManager.hasUndo" class="" title="UndoManager.hasUndo (class method)" data-id="UndoManager.hasUndo">hasUndo</a>
</li>
<li id="dropdown_UndoManager.redo" data-id="UndoManager.redo" class="memberLink"><a href="#UndoManager.redo" class="" title="UndoManager.redo (class method)" data-id="UndoManager.redo">redo</a>
</li>
<li id="dropdown_UndoManager.reset" data-id="UndoManager.reset" class="memberLink"><a href="#UndoManager.reset" class="" title="UndoManager.reset (class method)" data-id="UndoManager.reset">reset</a>
</li>
<li id="dropdown_UndoManager.undo" data-id="UndoManager.undo" class="memberLink"><a href="#UndoManager.undo" class="" title="UndoManager.undo (class method)" data-id="UndoManager.undo">undo</a>
</li>
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li data-dropdown="dropdown" class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
<article id="UndoManager" data-title="UndoManager (class)" class="article">
<div class="section description">
<div class="memberContent"><p>This object maintains the undo stack for an <a href="edit_session.html" class="link-short" title="EditSession (class)" data-id="EditSession"><code>EditSession</code></a>.</p>
</div>
</div>
</article>
<h3 class="sectionHeader">Constructors</h3>
<article id="UndoManager.new" data-title="UndoManager.new (constructor)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="UndoManager.new" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span class="constructorIdentifier">new </span><span id="UndoManager.new" class="member-name methodClicker">UndoManager</span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_UndoManager.new" class="ellipsis_description"><p>Resets the current undo state and creates a new <code>UndoManager</code>.</p>
</div>
<div class="description"><p>Resets the current undo state and creates a new <code>UndoManager</code>.</p>
</div>
</div>
</div>
</div>
</article>
<h3 class="sectionHeader">Methods</h3>
<article id="UndoManager.execute" data-title="UndoManager.execute (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="UndoManager.execute" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="UndoManager.execute" class="member-name methodClicker"><span class="sigClassName">UndoManager.</span><span class="sigMemberName">execute</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="argument methodClicker" title="Object" data-id="Object">Object</a> options</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_UndoManager.execute" class="ellipsis_description"><p>Provides a means for implementing your own undo manager. <code>options</code> has one property, <code>args</code>, an <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array" class="link-short" title="<code>Array</code>" data-id="<code>Array</code>"><code>Array</code></a>, with two elements:</p>
</div>
<div class="description"><p>Provides a means for implementing your own undo manager. <code>options</code> has one property, <code>args</code>, an <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array" class="link-short" title="<code>Array</code>" data-id="<code>Array</code>"><code>Array</code></a>, with two elements:</p>
<ul>
<li><code>args[0]</code> is an array of deltas</li>
<li><code>args[1]</code> is the document to associate with</li>
</ul>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">options</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Object.html" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. Contains additional properties</p>
</td></tr></table></div></div></div></div></article><article id="UndoManager.hasRedo" data-title="UndoManager.hasRedo (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="UndoManager.hasRedo" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="UndoManager.hasRedo" class="member-name methodClicker"><span class="sigClassName">UndoManager.</span><span class="sigMemberName">hasRedo</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/Boolean.html" class="returnType " title="Boolean" data-id="Boolean">Boolean</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_UndoManager.hasRedo" class="ellipsis_description"><p>Returns <code>true</code> if there are redo operations left to perform.</p>
</div><div class="description"><p>Returns <code>true</code> if there are redo operations left to perform.</p>
</div></div></div></div></article><article id="UndoManager.hasUndo" data-title="UndoManager.hasUndo (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="UndoManager.hasUndo" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="UndoManager.hasUndo" class="member-name methodClicker"><span class="sigClassName">UndoManager.</span><span class="sigMemberName">hasUndo</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="http://www.nodemanual.org/latest/js_doc/Boolean.html" class="returnType " title="Boolean" data-id="Boolean">Boolean</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_UndoManager.hasUndo" class="ellipsis_description"><p>Returns <code>true</code> if there are undo operations left to perform.</p>
</div><div class="description"><p>Returns <code>true</code> if there are undo operations left to perform.</p>
</div></div></div></div></article><article id="UndoManager.redo" data-title="UndoManager.redo (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="UndoManager.redo" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="UndoManager.redo" class="member-name methodClicker"><span class="sigClassName">UndoManager.</span><span class="sigMemberName">redo</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Boolean.html" class="argument methodClicker" title="Boolean" data-id="Boolean">Boolean</a> dontSelect</span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><span class="returnType " title="UndoManager.redo (class method)">Void</span></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_UndoManager.redo" class="ellipsis_description"><p>Perform a redo operation on the document, reimplementing the last change.</p>
</div><div class="description"><p>Perform a redo operation on the document, reimplementing the last change.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">dontSelect</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Boolean.html" class="" title="Boolean" data-id="Boolean">Boolean</a></td><td class="argDescription "><p>Required. If <code>true</code>, doesn&#39;t select the range of where the change occured</p>
</td></tr></table></div></div></div></div></article><article id="UndoManager.reset" data-title="UndoManager.reset (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="UndoManager.reset" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="UndoManager.reset" class="member-name methodClicker"><span class="sigClassName">UndoManager.</span><span class="sigMemberName">reset</span></span>(<span class="sigArgList"></span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><span class="returnType " title="UndoManager.reset (class method)">Void</span></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_UndoManager.reset" class="ellipsis_description"><p>Destroys the stack of undo and redo redo operations.</p>
</div><div class="description"><p>Destroys the stack of undo and redo redo operations.</p>
</div></div></div></div></article><article id="UndoManager.undo" data-title="UndoManager.undo (class method)" class="article"><div class="section method"><div class="memberContent"><div class="title"><i id="UndoManager.undo" class="methodToggle methodClicker inactive icon-caret-right"></i><ul class="signatures"><li class="signature"><ul><li class="signature-call"><span id="UndoManager.undo" class="member-name methodClicker"><span class="sigClassName">UndoManager.</span><span class="sigMemberName">undo</span></span>(<span class="sigArgList"><a href="http://www.nodemanual.org/latest/js_doc/Boolean.html" class="argument methodClicker" title="Boolean" data-id="Boolean">Boolean</a> dontSelect</span>)<li class="signature-returns"><ul class="argument-types"><li class="argument-type"><a href="#nav=api&api=range" class="returnType " title="Range (class)" data-id="Range">Range</a></li></ul></li></li></ul><ul class="metaInfo"></ul></li></ul></div><div class="sideToggler"><div id="ellipsis_UndoManager.undo" class="ellipsis_description"><p>Perform an undo operation on the document, reverting the last change. Returns the range of the undo.</p>
</div><div class="description"><p>Perform an undo operation on the document, reverting the last change. Returns the range of the undo.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">dontSelect</td><td class="argType" "><a href="http://www.nodemanual.org/latest/js_doc/Boolean.html" class="" title="Boolean" data-id="Boolean">Boolean</a></td><td class="argDescription "><p>Required. If <code>true</code>, doesn&#39;t select the range of where the change occured</p>
</td></tr></table></div></div></div></div></article></div><script defer src="./resources/javascripts/ux.js"></script><script src="./resources/javascripts/clicker.js"></script><script src="./resources/javascripts/jquery-scrollspy.js"></script><script defer src="./resources/javascripts/disqus-ext.js"></script><script defer src="./resources/javascripts/ga.js"></script><div id="disqus_thread"></div></div>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">options</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object" class="" title="Object" data-id="Object">Object</a></td><td class="argDescription "><p>Required. Contains additional properties</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="UndoManager.hasRedo" data-title="UndoManager.hasRedo (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="UndoManager.hasRedo" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="UndoManager.hasRedo" class="member-name methodClicker"><span class="sigClassName">UndoManager.</span><span class="sigMemberName">hasRedo</span></span><span class="emptyArgumentList">()</span>
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Boolean" class="returnType " title="Boolean" data-id="Boolean">Boolean</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_UndoManager.hasRedo" class="ellipsis_description"><p>Returns <code>true</code> if there are redo operations left to perform.</p>
</div>
<div class="description"><p>Returns <code>true</code> if there are redo operations left to perform.</p>
</div>
</div>
</div>
</div>
</article>
<article id="UndoManager.hasUndo" data-title="UndoManager.hasUndo (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="UndoManager.hasUndo" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="UndoManager.hasUndo" class="member-name methodClicker"><span class="sigClassName">UndoManager.</span><span class="sigMemberName">hasUndo</span></span><span class="emptyArgumentList">()</span>
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Boolean" class="returnType " title="Boolean" data-id="Boolean">Boolean</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_UndoManager.hasUndo" class="ellipsis_description"><p>Returns <code>true</code> if there are undo operations left to perform.</p>
</div>
<div class="description"><p>Returns <code>true</code> if there are undo operations left to perform.</p>
</div>
</div>
</div>
</div>
</article>
<article id="UndoManager.redo" data-title="UndoManager.redo (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="UndoManager.redo" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="UndoManager.redo" class="member-name methodClicker"><span class="sigClassName">UndoManager.</span><span class="sigMemberName">redo</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Boolean" class="argument methodClicker" title="Boolean" data-id="Boolean">Boolean</a> dontSelect</span>)</li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_UndoManager.redo" class="ellipsis_description"><p>Perform a redo operation on the document, reimplementing the last change.</p>
</div>
<div class="description"><p>Perform a redo operation on the document, reimplementing the last change.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">dontSelect</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Boolean" class="" title="Boolean" data-id="Boolean">Boolean</a></td><td class="argDescription "><p>Required. If <code>true</code>, doesn&#39;t select the range of where the change occured</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
<article id="UndoManager.reset" data-title="UndoManager.reset (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="UndoManager.reset" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="UndoManager.reset" class="member-name methodClicker"><span class="sigClassName">UndoManager.</span><span class="sigMemberName">reset</span></span><span class="emptyArgumentList">()</span></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_UndoManager.reset" class="ellipsis_description"><p>Destroys the stack of undo and redo redo operations.</p>
</div>
<div class="description"><p>Destroys the stack of undo and redo redo operations.</p>
</div>
</div>
</div>
</div>
</article>
<article id="UndoManager.undo" data-title="UndoManager.undo (class method)" class="article">
<div class="section method">
<div class="memberContent">
<div class="title"><i id="UndoManager.undo" class="methodToggle methodClicker inactive icon-caret-right"></i>
<ul class="signatures">
<li class="signature">
<ul>
<li class="signature-call"><span id="UndoManager.undo" class="member-name methodClicker"><span class="sigClassName">UndoManager.</span><span class="sigMemberName">undo</span></span>(<span class="sigArgList"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Boolean" class="argument methodClicker" title="Boolean" data-id="Boolean">Boolean</a> dontSelect</span>)
<li class="signature-returns">
<ul class="argument-types">
<li class="argument-type"><a href="range.html" class="returnType " title="Range (class)" data-id="Range">Range</a></li>
</ul>
</li></li>
</ul>
<ul class="metaInfo">
</ul>
</li>
</ul>
</div>
<div class="sideToggler">
<div id="ellipsis_UndoManager.undo" class="ellipsis_description"><p>Perform an undo operation on the document, reverting the last change.</p>
</div>
<div class="description"><p>Perform an undo operation on the document, reverting the last change.</p>
<h4>Arguments</h4><table class="argumentTable argument-list table table-striped table-bordered"><tr class="argumentRow "><td class="argName ">dontSelect</td><td class="argType" "><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Boolean" class="" title="Boolean" data-id="Boolean">Boolean</a></td><td class="argDescription "><p>Required. If <code>true</code>, doesn&#39;t select the range of where the change occured</p>
</td></tr></table>
</div>
</div>
</div>
</div>
</article>
</div>
<script defer src="./resources/javascripts/ux.js"></script>
<script src="./resources/javascripts/clicker.js"></script>
<script src="./resources/javascripts/jquery-scrollspy.js"></script>
<script defer src="./resources/javascripts/disqus-ext.js"></script>
<script defer src="./resources/javascripts/ga.js"></script>
<div id="disqus_thread"></div>
</div>

File diff suppressed because one or more lines are too long

2
build

@ -1 +1 @@
Subproject commit 86abb02339499ac96f95649ad5e088e66b6b9a9c
Subproject commit a4e495d8901876c6bafe3870a35cb8e32c827e97

View file

@ -20,7 +20,7 @@ function foo() {
var bar = true;
}</textarea><br>
SourceUrl: <br>
<input id="srcURL" style="width:300px" value="http://ajaxorg.github.com/ace-builds/textarea/src/"></input><br>
<input id="srcURL" style="width:300px" value="http://ajaxorg.github.com/ace-builds/src-noconflict"></input><br>
<button id="buBuild">Build Link</button> <br> <a href="#"></a>
<a href="https://github.com/ajaxorg/ace/">
<div class="fork_on_github" ></div>
@ -49,63 +49,60 @@ function foo() {
<script>
function inject(callback) {
var baseUrl = "src/";
var load = window.__ace_loader__ = function(path, module, callback) {
function inject(options, callback) {
var baseUrl = options.baseUrl || "../../src-noconflict";
var load = function(path, callback) {
var head = document.getElementsByTagName('head')[0];
var s = document.createElement('script');
s.src = baseUrl + path;
s.src = baseUrl + "/" + path;
head.appendChild(s);
s.onload = function() {
window.__ace_shadowed__.require([module], callback);
s.onload = s.onreadystatechange = function(_, isAbort) {
if (isAbort || !s.readyState || s.readyState == "loaded" || s.readyState == "complete") {
s = s.onload = s.onreadystatechange = null;
if (!isAbort)
callback();
}
};
};
load('ace-bookmarklet.js', "ace/ext/textarea", function() {
var ace = window.__ace_shadowed__;
ace.options.mode = "javascript";
var Event = ace.require("ace/lib/event");
var areas = document.getElementsByTagName("textarea");
for (var i = 0; i < areas.length; i++) {
Event.addListener(areas[i], "click", function(e) {
if (e.detail == 3) {
ace.transformTextarea(e.target, load);
}
});
}
callback && callback();
load("ace.js", function() {
ace.config.loadModule("ace/ext/textarea", function() {
var event = ace.require("ace/lib/event");
var areas = document.getElementsByTagName("textarea");
for (var i = 0; i < areas.length; i++) {
event.addListener(areas[i], "click", function(e) {
if (e.detail == 3) {
ace.transformTextarea(e.target, options.ace);
}
});
}
callback && callback();
});
});
}
// Call the inject function to load the ace files.
var textAce;
inject(function () {
inject({}, function () {
// Transform the textarea on the page into an ace editor.
var ace = window.__ace_shadowed__;
var t = document.querySelector("textarea");
textAce = ace.transformTextarea(t, window.__ace_loader__);
textAce.setDisplaySettings(true);
textAce = ace.require("ace/ext/textarea").transformTextarea(t);
setTimeout(function(){textAce.setDisplaySettings(true)});
});
document.getElementById("buBuild").onclick = function() {
var injectSrc = inject.toString().split("\n").join("");
injectSrc = injectSrc.replace('baseUrl = "src/"', 'baseUrl="' + document.getElementById("srcURL").value + '"');
var aceOptions = textAce.getOptions();
var opt = [];
for (var option in aceOptions) {
opt.push(option + ":'" + aceOptions[option] + "'");
}
injectSrc = injectSrc.replace('ace.options.mode = "javascript"', 'ace.options = { ' + opt.join(",") + ' }');
injectSrc = injectSrc.replace(/\s+/g, " ");
var options = textAce.getOptions();
options.baseUrl = document.getElementById("srcURL").value;
var a = document.querySelector("a");
a.href = "javascript:(" + injectSrc + ")()";
a.href = "javascript:(" + injectSrc + ")(" + JSON.stringify(options) + ")";
a.innerHTML = "Ace Bookmarklet Link";
}

View file

@ -8,8 +8,8 @@
body {
overflow: hidden;
}
#editor {
#editor {
margin: 0;
position: absolute;
top: 0;
@ -27,7 +27,7 @@
alert("Ace Rocks " + items[i]);
}
}</pre>
<script src="src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<script>
var editor = ace.edit("editor");

View file

@ -3,7 +3,7 @@
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
@ -14,7 +14,7 @@
* * Neither the name of Ajax.org B.V. nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
@ -38,66 +38,62 @@
var ACE_NAMESPACE = "";
var global = (function() {
return this;
})();
var global = (function() { return this; })();
if (!global && typeof window != "undefined") global = window; // strict mode
if (!ACE_NAMESPACE && typeof requirejs !== "undefined")
return;
var _define = function(module, deps, payload) {
if (typeof module !== 'string') {
if (_define.original)
_define.original.apply(window, arguments);
var define = function(module, deps, payload) {
if (typeof module !== "string") {
if (define.original)
define.original.apply(this, arguments);
else {
console.error('dropping module because define wasn\'t a string.');
console.error("dropping module because define wasn\'t a string.");
console.trace();
}
return;
}
if (arguments.length == 2)
payload = deps;
if (!_define.modules)
_define.modules = {};
_define.modules[module] = payload;
if (!define.modules[module]) {
define.payloads[module] = payload;
define.modules[module] = null;
}
};
define.modules = {};
define.payloads = {};
/**
* Get at functionality define()ed using the function above
*/
var _require = function(parentId, module, callback) {
if (Object.prototype.toString.call(module) === "[object Array]") {
if (typeof module === "string") {
var payload = lookup(parentId, module);
if (payload != undefined) {
callback && callback();
return payload;
}
} else if (Object.prototype.toString.call(module) === "[object Array]") {
var params = [];
for (var i = 0, l = module.length; i < l; ++i) {
var dep = lookup(parentId, module[i]);
if (!dep && _require.original)
return _require.original.apply(window, arguments);
if (dep == undefined && require.original)
return;
params.push(dep);
}
if (callback) {
callback.apply(null, params);
}
return callback && callback.apply(null, params) || true;
}
else if (typeof module === 'string') {
var payload = lookup(parentId, module);
if (!payload && _require.original)
return _require.original.apply(window, arguments);
};
if (callback) {
callback();
}
return payload;
}
else {
if (_require.original)
return _require.original.apply(window, arguments);
}
var require = function(module, callback) {
var packagedModule = _require("", module, callback);
if (packagedModule == undefined && require.original)
return require.original.apply(this, arguments);
return packagedModule;
};
var normalizeModule = function(parentId, moduleName) {
@ -116,7 +112,6 @@ var normalizeModule = function(parentId, moduleName) {
moduleName = moduleName.replace(/\/\.\//, "/").replace(/[^\/]+\/\.\.\//, "");
}
}
return moduleName;
};
@ -125,43 +120,35 @@ var normalizeModule = function(parentId, moduleName) {
* definition function if needed.
*/
var lookup = function(parentId, moduleName) {
moduleName = normalizeModule(parentId, moduleName);
var module = _define.modules[moduleName];
var module = define.modules[moduleName];
if (!module) {
return null;
module = define.payloads[moduleName];
if (typeof module === 'function') {
var exports = {};
var mod = {
id: moduleName,
uri: '',
exports: exports,
packaged: true
};
var req = function(module, callback) {
return _require(moduleName, module, callback);
};
var returnValue = module(req, exports, mod);
exports = returnValue || mod.exports;
define.modules[moduleName] = exports;
delete define.payloads[moduleName];
}
module = define.modules[moduleName] = exports || module;
}
if (typeof module === 'function') {
var exports = {};
var mod = {
id: moduleName,
uri: '',
exports: exports,
packaged: true
};
var req = function(module, callback) {
return _require(moduleName, module, callback);
};
var returnValue = module(req, exports, mod);
exports = returnValue || mod.exports;
// cache the resulting module object for next time
_define.modules[moduleName] = exports;
return exports;
}
return module;
};
function exportAce(ns) {
var require = function(module, callback) {
return _require("", module, callback);
};
var root = global;
if (ns) {
if (!global[ns])
@ -170,13 +157,13 @@ function exportAce(ns) {
}
if (!root.define || !root.define.packaged) {
_define.original = root.define;
root.define = _define;
define.original = root.define;
root.define = define;
root.define.packaged = true;
}
if (!root.require || !root.require.packaged) {
_require.original = root.require;
require.original = root.require;
root.require = require;
root.require.packaged = true;
}

View file

@ -4,7 +4,7 @@ body {
margin:0;
padding:0;
background-color:#e6f5fc;
}
H2, H3, H4 {
@ -58,7 +58,7 @@ PRE{
position:relative;
overflow:hidden;
background: url(images/background.png) repeat-x 0 0;
border-bottom:1px solid #c9e8fa;
border-bottom:1px solid #c9e8fa;
}
#header .content .signature {
@ -224,7 +224,3 @@ UL.menu-footer LI A {
UL.menu-footer LI A:hover {
text-decoration:underline;
}

45
demo/autocompletion.html Normal file
View file

@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ACE Autocompletion demo</title>
<style type="text/css" media="screen">
body {
overflow: hidden;
}
#editor {
margin: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
</head>
<body>
<pre id="editor"></pre>
<!-- load ace -->
<script src="../build/src-noconflict/ace.js"></script>
<!-- load ace language tools -->
<script src="../build/src-noconflict/ext-language_tools.js"></script>
<script>
// trigger extension
ace.require("ace/ext/language_tools");
var editor = ace.edit("editor");
editor.session.setMode("ace/mode/html");
editor.setTheme("ace/theme/tomorrow");
// enable autocompletion and snippets
editor.setOptions({
enableBasicAutocompletion: true,
enableSnippets: true,
enableLiveAutocompletion: false
});
</script>
<script src="./show_own_source.js"></script>
</body>
</html>

68
demo/autoresize.html Normal file
View file

@ -0,0 +1,68 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Editor</title>
<style type="text/css" media="screen">
.ace_editor {
border: 1px solid lightgray;
margin: auto;
height: 200px;
width: 80%;
}
.scrollmargin {
height: 80px;
text-align: center;
}
</style>
</head>
<body>
<pre id="editor1">autoresizing editor</pre>
<div class="scrollmargin"></div>
<pre id="editor2">minHeight = 2 lines</pre>
<div class="scrollmargin"></div>
<pre id="editor3" style="width: 40%;"></pre>
<div class="scrollmargin"></div>
<pre id="editor"></pre>
<script src="kitchen-sink/require.js"></script>
<script>
// setup paths
require.config({paths: { "ace" : "../lib/ace"}});
// load ace and extensions
require(["ace/ace"], function(ace) {
var editor1 = ace.edit("editor1");
editor1.setTheme("ace/theme/tomorrow_night_eighties");
editor1.session.setMode("ace/mode/html");
editor1.setAutoScrollEditorIntoView(true);
editor1.setOption("maxLines", 30);
var editor2 = ace.edit("editor2");
editor2.setTheme("ace/theme/tomorrow_night_blue");
editor2.session.setMode("ace/mode/html");
editor2.setAutoScrollEditorIntoView(true);
editor2.setOption("maxLines", 30);
editor2.setOption("minLines", 2);
var editor = ace.edit("editor3");
editor.setOptions({
autoScrollEditorIntoView: true,
maxLines: 8
});
editor.renderer.setScrollMargin(10, 10, 10, 10);
var editor = ace.edit("editor");
editor.setTheme("ace/theme/tomorrow");
editor.session.setMode("ace/mode/html");
editor.setAutoScrollEditorIntoView(true);
editor.setOption("maxLines", 100);
});
</script>
<script src="./show_own_source.js"></script>
</body>
</html>

39
demo/chromevox.html Normal file
View file

@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ACE ChromeVox demo</title>
<style type="text/css" media="screen">
body {
overflow: hidden;
}
#editor {
margin: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
</head>
<body>
<pre id="editor"></pre>
<!-- load ace -->
<script src="../build/src/ace.js"></script>
<!-- load ace accessibility extension -->
<script src="../build/src/ext-chromevox.js"></script>
<script>
// trigger extension
ace.require("ace/ext/chromevox");
var editor = ace.edit("editor");
editor.session.setMode("ace/mode/html");
editor.setTheme("ace/theme/tomorrow");
</script>
<script src="./show_own_source.js"></script>
</body>
</html>

43
demo/emmet.html Normal file
View file

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ACE Emmet demo</title>
<style type="text/css" media="screen">
body {
overflow: hidden;
}
#editor {
margin: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
</head>
<body>
<pre id="editor"></pre>
<!-- load emmet code and snippets compiled for browser -->
<script src="https://cloud9ide.github.io/emmet-core/emmet.js"></script>
<script src="kitchen-sink/require.js"></script>
<script>
// setup paths
require.config({paths: { "ace" : "../lib/ace"}});
// load ace and extensions
require(["ace/ace", "ace/ext/emmet"], function(ace) {
var editor = ace.edit("editor");
editor.session.setMode("ace/mode/html");
// enable emmet on the current editor
editor.setOption("enableEmmet", true);
});
</script>
<script src="./show_own_source.js"></script>
</body>
</html>

44
demo/ie7.html Normal file
View file

@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>ACE Editor StatusBar Demo</title>
<style type="text/css" media="screen">
/*!important without this top: 0; bottom: 0 doesn't work on old ie */
body, html {
position: absolute;
top: 0px; bottom: 0; left: 0; right: 0;
margin:0; padding:0;
overflow:hidden
}
#editor {
margin: 0;
position: absolute;
top: 0; bottom: 0; left: 0; right: 0;
}
</style>
</head>
<body>
<pre id="editor">
require("ace/ext/old_ie");
// now ace will work even on ie7!
var editor = ace.edit("editor");
</pre>
<script src="../build/src/ace.js"></script>
<script src="../build/src/ext-old_ie.js"></script>
<script>
// before creating an editor patch up things for old ie
require("ace/ext/old_ie");
// now ace will work even on ie7!
var editor = ace.edit("editor");
editor.setTheme("ace/theme/textmate");
editor.session.setMode("ace/mode/javascript");
</script>
</body>
</html>

View file

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Editor</title>
<style type="text/css" media="screen">
body {
overflow: hidden;
}
#editor {
margin: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
</head>
<body>
<pre id="editor"></pre>
<script src="kitchen-sink/require.js"></script>
<script>
// setup paths
require.config({paths: { "ace" : "../lib/ace"}});
require(["ace/ace"], function(ace) {
var editor = ace.edit("editor")
editor.setTheme("ace/theme/twilight")
editor.session.setMode("ace/mode/html")
// add command to lazy-load keybinding_menu extension
editor.commands.addCommand({
name: "showKeyboardShortcuts",
bindKey: {win: "Ctrl-Alt-h", mac: "Command-Alt-h"},
exec: function(editor) {
ace.config.loadModule("ace/ext/keybinding_menu", function(module) {
module.init(editor);
editor.showKeyboardShortcuts()
})
}
})
editor.execCommand("showKeyboardShortcuts")
})
</script>
<script src="./show_own_source.js"></script>
</body>
</html>

View file

@ -33,7 +33,15 @@ define(function(require, exports, module) {
"use strict";
require("ace/lib/fixoldbrowsers");
require("ace/config").init();
require("ace/multi_select");
require("ace/ext/spellcheck");
require("./inline_editor");
require("./dev_util");
require("./file_drop");
var config = require("ace/config");
config.init();
var env = {};
var dom = require("ace/lib/dom");
@ -46,16 +54,18 @@ var theme = require("ace/theme/textmate");
var EditSession = require("ace/edit_session").EditSession;
var UndoManager = require("ace/undomanager").UndoManager;
var vim = require("ace/keyboard/vim").handler;
var emacs = require("ace/keyboard/emacs").handler;
var HashHandler = require("ace/keyboard/hash_handler").HashHandler;
var Renderer = require("ace/virtual_renderer").VirtualRenderer;
var Editor = require("ace/editor").Editor;
var MultiSelect = require("ace/multi_select").MultiSelect;
var whitespace = require("ace/ext/whitespace");
var doclist = require("./doclist");
var modelist = require("./modelist");
var modelist = require("ace/ext/modelist");
var themelist = require("ace/ext/themelist");
var layout = require("./layout");
var TokenTooltip = require("./token_tooltip").TokenTooltip;
var util = require("./util");
@ -64,8 +74,18 @@ var fillDropdown = util.fillDropdown;
var bindCheckbox = util.bindCheckbox;
var bindDropdown = util.bindDropdown;
var ElasticTabstopsLite = require("ace/ext/elastic_tabstops_lite").ElasticTabstopsLite;
var IncrementalSearch = require("ace/incremental_search").IncrementalSearch;
var workerModule = require("ace/worker/worker_client");
if (location.href.indexOf("noworker") !== -1) {
workerModule.WorkerClient = workerModule.UIWorkerClient;
}
/*********** create editor ***************************/
var container = document.getElementById("editor");
var container = document.getElementById("editor-container");
// Splitting.
var Split = require("ace/split").Split;
@ -77,21 +97,23 @@ split.on("focus", function(editor) {
});
env.split = split;
window.env = env;
window.ace = env.editor;
env.editor.setAnimatedScroll(true);
// add multiple cursor support to editor
require("ace/multi_select").MultiSelect(env.editor);
var consoleEl = dom.createElement("div");
container.parentNode.appendChild(consoleEl);
consoleEl.style.cssText = "position:fixed; bottom:1px; right:0;\
border:1px solid #baf; zIndex:100";
border:1px solid #baf; z-index:100";
var cmdLine = new layout.singleLineEditor(consoleEl);
cmdLine.editor = env.editor;
env.editor.cmdLine = cmdLine;
env.editor.showCommandLine = function(val) {
this.cmdLine.focus();
if (typeof val == "string")
this.cmdLine.setValue(val, 1);
};
/**
* This demonstrates how you can define commands and bind shortcuts to them.
*/
@ -111,37 +133,80 @@ env.editor.commands.addCommands([{
},
readOnly: true
}, {
name: "find",
bindKey: {win: "Ctrl-F", mac: "Command-F"},
name: "snippet",
bindKey: {win: "Alt-C", mac: "Command-Alt-C"},
exec: function(editor, needle) {
if (typeof needle == "object") {
var arg = this.name + " " + editor.getCopyText();
editor.cmdLine.setValue(arg, 1);
editor.cmdLine.setValue("snippet ", 1);
editor.cmdLine.focus();
return;
}
editor.find(needle);
var s = snippetManager.getSnippetByName(needle, editor);
if (s)
snippetManager.insertSnippet(editor, s.content);
},
readOnly: true
}, {
name: "focusCommandLine",
bindKey: "shift-esc",
bindKey: "shift-esc|ctrl-`",
exec: function(editor, needle) { editor.cmdLine.focus(); },
readOnly: true
}, {
name: "nextFile",
bindKey: "Ctrl-tab",
exec: function(editor) { doclist.cycleOpen(editor, 1); },
readOnly: true
}, {
name: "previousFile",
bindKey: "Ctrl-shift-tab",
exec: function(editor) { doclist.cycleOpen(editor, -1); },
readOnly: true
}, {
name: "execute",
bindKey: "ctrl+enter",
exec: function(editor) {
try {
var r = eval(editor.getCopyText()||editor.getValue());
var r = window.eval(editor.getCopyText() || editor.getValue());
} catch(e) {
r = e;
}
editor.cmdLine.setValue(r + "")
editor.cmdLine.setValue(r + "");
},
readOnly: true
}, {
name: "showKeyboardShortcuts",
bindKey: {win: "Ctrl-Alt-h", mac: "Command-Alt-h"},
exec: function(editor) {
config.loadModule("ace/ext/keybinding_menu", function(module) {
module.init(editor);
editor.showKeyboardShortcuts();
});
}
}, {
name: "increaseFontSize",
bindKey: "Ctrl-=|Ctrl-+",
exec: function(editor) {
var size = parseInt(editor.getFontSize(), 10) || 12;
editor.setFontSize(size + 1);
}
}, {
name: "decreaseFontSize",
bindKey: "Ctrl+-|Ctrl-_",
exec: function(editor) {
var size = parseInt(editor.getFontSize(), 10) || 12;
editor.setFontSize(Math.max(size - 1 || 1));
}
}, {
name: "resetFontSize",
bindKey: "Ctrl+0|Ctrl-Numpad0",
exec: function(editor) {
editor.setFontSize(12);
}
}]);
env.editor.commands.addCommands(whitespace.commands);
cmdLine.commands.bindKeys({
"Shift-Return|Ctrl-Return|Alt-Return": function(cmdLine) { cmdLine.insert("\n"); },
"Esc|Shift-Esc": function(cmdLine){ cmdLine.editor.focus(); },
@ -159,14 +224,37 @@ var commands = env.editor.commands;
commands.addCommand({
name: "save",
bindKey: {win: "Ctrl-S", mac: "Command-S"},
exec: function() {alert("Fake Save File");}
exec: function(arg) {
var session = env.editor.session;
var name = session.name.match(/[^\/]+$/);
localStorage.setItem(
"saved_file:" + name,
session.getValue()
);
env.editor.cmdLine.setValue("saved "+ name);
}
});
commands.addCommand({
name: "load",
bindKey: {win: "Ctrl-O", mac: "Command-O"},
exec: function(arg) {
var session = env.editor.session;
var name = session.name.match(/[^\/]+$/);
var value = localStorage.getItem("saved_file:" + name);
if (typeof value == "string") {
session.setValue(value);
env.editor.cmdLine.setValue("loaded "+ name);
} else {
env.editor.cmdLine.setValue("no previuos value saved for "+ name);
}
}
});
var keybindings = {
// Null = use "default" keymapping
ace: null,
vim: vim,
emacs: emacs,
ace: null, // Null = use "default" keymapping
vim: require("ace/keyboard/vim").handler,
emacs: "ace/keyboard/emacs",
// This is a way to define simple keyboard remappings
custom: new HashHandler({
"gotoright": "Tab",
@ -208,6 +296,7 @@ var showGutterEl = document.getElementById("show_gutter");
var showPrintMarginEl = document.getElementById("show_print_margin");
var highlightSelectedWordE = document.getElementById("highlight_selected_word");
var showHScrollEl = document.getElementById("show_hscroll");
var showVScrollEl = document.getElementById("show_vscroll");
var animateScrollEl = document.getElementById("animate_scroll");
var softTabEl = document.getElementById("soft_tab");
var behavioursEl = document.getElementById("enable_behaviours");
@ -221,16 +310,44 @@ bindDropdown("mode", function(value) {
env.editor.session.modeName = value;
});
doclist.history = doclist.docs.map(function(doc) {
return doc.name;
});
doclist.history.index = 0;
doclist.cycleOpen = function(editor, dir) {
var h = this.history;
h.index += dir;
if (h.index >= h.length)
h.index = 0;
else if (h.index <= 0)
h.index = h.length - 1;
var s = h[h.index];
docEl.value = s;
docEl.onchange();
};
doclist.addToHistory = function(name) {
var h = this.history;
var i = h.indexOf(name);
if (i != h.index) {
if (i != -1)
h.splice(i, 1);
h.index = h.push(name);
}
};
bindDropdown("doc", function(name) {
doclist.loadDoc(name, function(session) {
if (!session)
return;
doclist.addToHistory(session.name);
session = env.split.setSession(session);
whitespace.detectIndentation(session);
updateUIEditorOptions();
env.editor.focus();
});
});
function updateUIEditorOptions() {
var editor = env.editor;
var session = editor.session;
@ -254,20 +371,26 @@ function updateUIEditorOptions() {
saveOption(behavioursEl, editor.getBehavioursEnabled());
}
themelist.themes.forEach(function(x){ x.value = x.theme });
fillDropdown(themeEl, {
Bright: themelist.themes.filter(function(x){return !x.isDark}),
Dark: themelist.themes.filter(function(x){return x.isDark}),
});
event.addListener(themeEl, "mouseover", function(e){
this.desiredValue = e.target.value;
if (!this.$timer)
this.$timer = setTimeout(this.updateTheme);
themeEl.desiredValue = e.target.value;
if (!themeEl.$timer)
themeEl.$timer = setTimeout(themeEl.updateTheme);
});
event.addListener(themeEl, "mouseout", function(e){
this.desiredValue = null;
if (!this.$timer)
this.$timer = setTimeout(this.updateTheme, 20);
themeEl.desiredValue = null;
if (!themeEl.$timer)
themeEl.$timer = setTimeout(themeEl.updateTheme, 20);
});
themeEl.updateTheme = function(){
env.split.setTheme(themeEl.desiredValue || themeEl.selectedValue);
env.split.setTheme((themeEl.desiredValue || themeEl.selectedValue));
themeEl.$timer = null;
};
@ -292,28 +415,11 @@ bindDropdown("folding", function(value) {
});
bindDropdown("soft_wrap", function(value) {
var session = env.editor.session;
var renderer = env.editor.renderer;
switch (value) {
case "off":
session.setUseWrapMode(false);
renderer.setPrintMarginColumn(80);
break;
case "free":
session.setUseWrapMode(true);
session.setWrapLimitRange(null, null);
renderer.setPrintMarginColumn(80);
break;
default:
session.setUseWrapMode(true);
var col = parseInt(value, 10);
session.setWrapLimitRange(col, col);
renderer.setPrintMarginColumn(col);
}
env.editor.setOption("wrap", value);
});
bindCheckbox("select_style", function(checked) {
env.editor.setSelectionStyle(checked ? "line" : "text");
env.editor.setOption("selectionStyle", checked ? "line" : "text");
});
bindCheckbox("highlight_active", function(checked) {
@ -341,7 +447,11 @@ bindCheckbox("highlight_selected_word", function(checked) {
});
bindCheckbox("show_hscroll", function(checked) {
env.editor.renderer.setHScrollBarAlwaysVisible(checked);
env.editor.setOption("hScrollBarAlwaysVisible", checked);
});
bindCheckbox("show_vscroll", function(checked) {
env.editor.setOption("vScrollBarAlwaysVisible", checked);
});
bindCheckbox("animate_scroll", function(checked) {
@ -359,32 +469,53 @@ bindCheckbox("enable_behaviours", function(checked) {
bindCheckbox("fade_fold_widgets", function(checked) {
env.editor.setFadeFoldWidgets(checked);
});
bindCheckbox("read_only", function(checked) {
env.editor.setReadOnly(checked);
});
bindCheckbox("scrollPastEnd", function(checked) {
env.editor.setOption("scrollPastEnd", checked);
});
var secondSession = null;
bindDropdown("split", function(value) {
var sp = env.split;
if (value == "none") {
if (sp.getSplits() == 2) {
secondSession = sp.getEditor(1).session;
}
sp.setSplits(1);
} else {
var newEditor = (sp.getSplits() == 1);
if (value == "below") {
sp.setOrientation(sp.BELOW);
} else {
sp.setOrientation(sp.BESIDE);
}
sp.setOrientation(value == "below" ? sp.BELOW : sp.BESIDE);
sp.setSplits(2);
if (newEditor) {
var session = secondSession || sp.getEditor(0).session;
var session = sp.getEditor(0).session;
var newSession = sp.setSession(session, 1);
newSession.name = session.name;
}
}
});
bindCheckbox("elastic_tabstops", function(checked) {
env.editor.setOption("useElasticTabstops", checked);
});
var iSearchCheckbox = bindCheckbox("isearch", function(checked) {
env.editor.setOption("useIncrementalSearch", checked);
});
env.editor.addEventListener('incrementalSearchSettingChanged', function(event) {
iSearchCheckbox.checked = event.isEnabled;
});
function synchroniseScrolling() {
var s1 = env.split.$editors[0].session;
var s2 = env.split.$editors[1].session;
s1.on('changeScrollTop', function(pos) {s2.setScrollTop(pos)});
s2.on('changeScrollTop', function(pos) {s1.setScrollTop(pos)});
s1.on('changeScrollLeft', function(pos) {s2.setScrollLeft(pos)});
s2.on('changeScrollLeft', function(pos) {s1.setScrollLeft(pos)});
}
bindCheckbox("highlight_token", function(checked) {
var editor = env.editor;
if (editor.tokenTooltip && !checked) {
@ -395,37 +526,60 @@ bindCheckbox("highlight_token", function(checked) {
}
});
/************** dragover ***************************/
event.addListener(container, "dragover", function(e) {
return event.preventDefault(e);
});
event.addListener(container, "drop", function(e) {
var file;
try {
file = e.dataTransfer.files[0];
if (window.FileReader) {
var reader = new FileReader();
reader.onload = function() {
var mode = getModeFromPath(file.name);
env.editor.session.doc.setValue(reader.result);
modeEl.value = mode.name;
env.editor.session.setMode(mode.mode);
env.editor.session.modeName = mode.name;
};
reader.readAsText(file);
}
return event.preventDefault(e);
} catch(err) {
return event.stopEvent(e);
}
});
var StatusBar = require("./statusbar").StatusBar;
var StatusBar = require("ace/ext/statusbar").StatusBar;
new StatusBar(env.editor, cmdLine.container);
var Emmet = require("ace/ext/emmet");
net.loadScript("https://cloud9ide.github.io/emmet-core/emmet.js", function() {
Emmet.setCore(window.emmet);
env.editor.setOption("enableEmmet", true);
});
// require("ace/placeholder").PlaceHolder;
var snippetManager = require("ace/snippets").snippetManager;
env.editSnippets = function() {
var sp = env.split;
if (sp.getSplits() == 2) {
sp.setSplits(1);
return;
}
sp.setSplits(1);
sp.setSplits(2);
sp.setOrientation(sp.BESIDE);
var editor = sp.$editors[1];
var id = sp.$editors[0].session.$mode.$id || "";
var m = snippetManager.files[id];
if (!doclist["snippets/" + id]) {
var text = m.snippetText;
var s = doclist.initDoc(text, "", {});
s.setMode("ace/mode/snippets");
doclist["snippets/" + id] = s;
}
editor.on("blur", function() {
m.snippetText = editor.getValue();
snippetManager.unregister(m.snippets);
m.snippets = snippetManager.parseSnippetFile(m.snippetText, m.scope);
snippetManager.register(m.snippets);
});
sp.$editors[0].once("changeMode", function() {
sp.setSplits(1);
});
editor.setSession(doclist["snippets/" + id], 1);
editor.focus();
};
require("ace/ext/language_tools");
env.editor.setOptions({
enableBasicAutocompletion: true,
enableLiveAutocompletion: false,
enableSnippets: true
});
var beautify = require("ace/ext/beautify");
env.editor.commands.addCommands(beautify.commands);
});

View file

@ -0,0 +1,217 @@
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of Ajax.org B.V. nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* ***** END LICENSE BLOCK ***** */
define(function(require, exports, module) {
var dom = require("ace/lib/dom");
var Range = require("ace/range").Range;
function warn() {
var s = (new Error()).stack || "";
s = s.split("\n");
if (s[1] == "Error") s.shift(); // remove error description on chrome
s.shift(); // remove warn
s.shift(); // remove the getter
s = s.join("\n");
// allow easy access to ace in console, but not in ace code
if (!/at Object.InjectedScript.|@debugger eval|snippets:\/{3}|\(<anonymous>:\d+:\d+\)/.test(s)) {
console.error("trying to access to global variable");
}
}
function def(o, key, get) {
try {
Object.defineProperty(o, key, {
configurable: true,
get: get,
set: function(val) {
delete o[key];
o[key] = val;
}
});
} catch(e) {
console.error(e);
}
}
def(window, "ace", function(){ warn(); return window.env.editor });
def(window, "editor", function(){ warn(); return window.env.editor });
def(window, "session", function(){ warn(); return window.env.editor.session });
def(window, "split", function(){ warn(); return window.env.split });
def(window, "devUtil", function(){ warn(); return exports });
exports.showTextArea = function(argument) {
dom.importCssString("\
.ace_text-input {\
position: absolute;\
z-index: 10!important;\
width: 6em!important;\
height: 1em;\
opacity: 1!important;\
background: rgba(0, 92, 255, 0.11);\
border: none;\
font: inherit;\
padding: 0 1px;\
margin: 0 -1px;\
text-indent: 0em;\
}\
");
};
exports.addGlobals = function() {
window.oop = require("ace/lib/oop");
window.dom = require("ace/lib/dom");
window.Range = require("ace/range").Range;
window.Editor = require("ace/editor").Editor;
window.assert = require("ace/test/asyncjs/assert");
window.asyncjs = require("ace/test/asyncjs/async");
window.UndoManager = require("ace/undomanager").UndoManager;
window.EditSession = require("ace/edit_session").EditSession;
window.MockRenderer = require("ace/test/mockrenderer").MockRenderer;
window.EventEmitter = require("ace/lib/event_emitter").EventEmitter;
window.getSelection = getSelection;
window.setSelection = setSelection;
window.testSelection = testSelection;
};
function getSelection(editor) {
var data = editor.multiSelect.toJSON();
if (!data.length) data = [data];
data = data.map(function(x) {
var a, c;
if (x.isBackwards) {
a = x.end;
c = x.start;
} else {
c = x.end;
a = x.start;
}
return Range.comparePoints(a, c)
? [a.row, a.column, c.row, c.column]
: [a.row, a.column];
});
return data.length > 1 ? data : data[0];
}
function setSelection(editor, data) {
if (typeof data[0] == "number")
data = [data];
editor.selection.fromJSON(data.map(function(x) {
var start = {row: x[0], column: x[1]};
var end = x.length == 2 ? start : {row: x[2], column: x[3]};
var isBackwards = Range.comparePoints(start, end) > 0;
return isBackwards ? {
start: end,
end: start,
isBackwards: true
} : {
start: start,
end: end,
isBackwards: true
};
}));
}
function testSelection(editor, data) {
assert.equal(getSelection(editor) + "", data + "");
}
exports.recordTestCase = function() {
exports.addGlobals();
var editor = window.editor;
var testcase = window.testcase = [];
var assert;
testcase.push({
type: "setValue",
data: editor.getValue()
}, {
type: "setSelection",
data: getSelection(editor)
});
editor.commands.on("afterExec", function(e) {
testcase.push({
type: "exec",
data: e
});
testcase.push({
type: "value",
data: editor.getValue()
});
testcase.push({
type: "selection",
data: getSelection(editor)
});
});
editor.on("mouseup", function() {
testcase.push({
type: "setSelection",
data: getSelection(editor)
});
});
testcase.toString = function() {
var lastValue = "";
// var lastSelection = ""
var str = this.map(function(x) {
var data = x.data;
switch (x.type) {
case "exec":
return 'editor.execCommand("'
+ data.command.name
+ (data.args ? '", ' + JSON.stringify(data.args) : '"')
+ ')';
case "setSelection":
return 'setSelection(editor, ' + JSON.stringify(data) + ')';
case "setValue":
if (lastValue != data) {
lastValue = data;
return 'editor.setValue(' + JSON.stringify(data) + ', -1)';
}
return;
case "selection":
return 'testSelection(editor, ' + JSON.stringify(data) + ')';
case "value":
if (lastValue != data) {
lastValue = data;
return 'assert.equal('
+ 'editor.getValue(),'
+ JSON.stringify(data)
+ ')';
}
return;
}
}).filter(Boolean).join("\n");
return getSelection + "\n"
+ testSelection + "\n"
+ setSelection + "\n"
+ "\n" + str + "\n";
};
};
});

View file

@ -35,7 +35,7 @@ var EditSession = require("ace/edit_session").EditSession;
var UndoManager = require("ace/undomanager").UndoManager;
var net = require("ace/lib/net");
var modelist = require("./modelist");
var modelist = require("ace/ext/modelist");
/*********** demo documents ***************************/
var fileCache = {};
@ -47,13 +47,15 @@ function initDoc(file, path, doc) {
session.setUndoManager(new UndoManager());
doc.session = session;
doc.path = path;
session.name = doc.name;
if (doc.wrapped) {
session.setUseWrapMode(true);
session.setWrapLimitRange(80, 80);
}
var mode = modelist.getModeFromPath(path);
var mode = modelist.getModeForPath(path);
session.modeName = mode.name;
session.setMode(mode.mode);
return session;
}
@ -64,75 +66,51 @@ function makeHuge(txt) {
}
var docs = {
"docs/AsciiDoc.asciidoc": "AsciiDoc",
"docs/javascript.js": "JavaScript",
"docs/clojure.clj": "Clojure",
"docs/coffeescript.coffee": "Coffeescript",
"docs/coldfusion.cfm": "ColdFusion",
"docs/cpp.cpp": "C/C++",
"docs/csharp.cs": "C#",
"docs/css.css": "CSS",
"docs/dart.dart": "Dart",
"docs/diff.diff": "Diff",
"docs/glsl.glsl": "Glsl",
"docs/golang.go": "Go",
"docs/groovy.groovy": "Groovy",
"docs/haml.haml": "Haml",
"docs/Haxe.hx": "haXe",
"docs/html.html": "HTML",
"docs/jade.jade": "Jade",
"docs/java.java": "Java",
"docs/jsp.jsp": "JSP",
"docs/json.json": "JSON",
"docs/jsx.jsx": "JSX",
"docs/javascript.js": {order: 1, name: "JavaScript"},
"docs/latex.tex": {name: "LaTeX", wrapped: true},
"docs/less.less": "LESS",
"docs/lisp.lisp": "Lisp",
"docs/liquid.liquid": "Liquid",
"docs/lua.lua": "Lua",
"docs/lucene.lucene": "Lucene",
"docs/luapage.lp": "LuaPage",
"docs/Makefile": "Makefile",
"docs/markdown.md": {name: "Markdown", wrapped: true},
"docs/objectivec.m": {name: "Objective-C"},
"docs/ocaml.ml": "OCaml",
"docs/OpenSCAD.scad": "OpenSCAD",
"docs/perl.pl": "Perl",
"docs/mushcode.mc": {name: "MUSHCode", wrapped: true},
"docs/pgsql.pgsql": {name: "pgSQL", wrapped: true},
"docs/php.php": "PHP",
"docs/plaintext.txt": {name: "Plain Text", prepare: makeHuge, wrapped: true},
"docs/powershell.ps1": "Powershell",
"docs/python.py": "Python",
"docs/r.r": "R",
"docs/rdoc.Rd": "RDoc",
"docs/rhtml.rhtml": "RHTML",
"docs/ruby.rb": "Ruby",
"docs/abap.abap": "SAP - ABAP",
"docs/scala.scala": "Scala",
"docs/scss.scss": "SCSS",
"docs/sh.sh": "SH",
"docs/stylus.styl": "Stylus",
"docs/sql.sql": {name: "SQL", wrapped: true},
"docs/svg.svg": "SVG",
"docs/tcl.tcl": "Tcl",
"docs/tex.tex": "Tex",
"docs/textile.textile": {name: "Textile", wrapped: true},
"docs/typescript.ts": "Typescript",
"docs/xml.xml": "XML",
"docs/xquery.xq": "XQuery",
"docs/yaml.yaml": "YAML",
"docs/c9search.c9search_results": "C9 Search Results"
"docs/c9search.c9search_results": "C9 Search Results",
"docs/mel.mel": "MEL",
"docs/Nix.nix": "Nix"
};
var ownSource = {
/* filled from require*/
};
var hugeDocs = {
var hugeDocs = require.toUrl ? {
"build/src/ace.js": "",
"build/src-min/ace.js": ""
} : {
"src/ace.js": "",
"src-min/ace.js": ""
};
modelist.modes.forEach(function(m) {
var ext = m.extensions.split("|")[0];
if (ext[0] === "^") {
path = ext.substr(1);
} else {
var path = m.name + "." + ext;
}
path = "docs/" + path;
if (!docs[path]) {
docs[path] = {name: m.caption};
} else if (typeof docs[path] == "object" && !docs[path].name) {
docs[path].name = m.caption;
}
});
if (window.require && window.require.s) try {
for (var path in window.require.s.contexts._.defined) {
if (path.indexOf("!") != -1)
@ -143,6 +121,13 @@ if (window.require && window.require.s) try {
}
} catch(e) {}
function sort(list) {
return list.sort(function(a, b) {
var cmp = (b.order || 0) - (a.order || 0);
return cmp || a.name && a.name.localeCompare(b.name);
});
}
function prepareDocList(docs) {
var list = [];
for (var path in docs) {
@ -184,13 +169,44 @@ function loadDoc(name, callback) {
});
}
function saveDoc(name, callback) {
var doc = fileCache[name] || name;
if (!doc || !doc.session)
return callback("Unknown document: " + name);
var path = doc.path;
var parts = path.split("/");
if (parts[0] == "docs")
path = "demo/kitchen-sink/" + path;
else if (parts[0] == "ace")
path = "lib/" + path;
upload(path, doc.session.getValue(), callback);
}
function upload(url, data, callback) {
url = net.qualifyURL(url);
if (!/https?:/.test(url))
return callback(new Error("Unsupported url scheme"));
var xhr = new XMLHttpRequest();
xhr.open("PUT", url, true);
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
callback(!/^2../.test(xhr.status));
}
};
xhr.send(data);
};
module.exports = {
fileCache: fileCache,
docs: prepareDocList(docs),
docs: sort(prepareDocList(docs)),
ownSource: prepareDocList(ownSource),
hugeDocs: prepareDocList(hugeDocs),
initDoc: initDoc,
loadDoc: loadDoc
loadDoc: loadDoc,
saveDoc: saveDoc,
};
module.exports.all = {
"Mode Examples": module.exports.docs,

11
demo/kitchen-sink/docs/.gitignore vendored Normal file
View file

@ -0,0 +1,11 @@
# A sample .gitignore file.
.buildlog
.DS_Store
.svn
# Negated patterns:
!foo.bar
# Also ignore user settings...
/.settings

View file

@ -0,0 +1,53 @@
#
# example Dockerfile for http://docs.docker.io/en/latest/examples/postgresql_service/
#
FROM ubuntu
MAINTAINER SvenDowideit@docker.com
# Add the PostgreSQL PGP key to verify their Debian packages.
# It should be the same key as https://www.postgresql.org/media/keys/ACCC4CF8.asc
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
# Add PostgreSQL's repository. It contains the most recent stable release
# of PostgreSQL, ``9.3``.
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
# Update the Ubuntu and PostgreSQL repository indexes
RUN apt-get update
# Install ``python-software-properties``, ``software-properties-common`` and PostgreSQL 9.3
# There are some warnings (in red) that show up during the build. You can hide
# them by prefixing each apt-get statement with DEBIAN_FRONTEND=noninteractive
RUN apt-get -y -q install python-software-properties software-properties-common
RUN apt-get -y -q install postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3
# Note: The official Debian and Ubuntu images automatically ``apt-get clean``
# after each ``apt-get``
# Run the rest of the commands as the ``postgres`` user created by the ``postgres-9.3`` package when it was ``apt-get installed``
USER postgres
# Create a PostgreSQL role named ``docker`` with ``docker`` as the password and
# then create a database `docker` owned by the ``docker`` role.
# Note: here we use ``&&\`` to run commands one after the other - the ``\``
# allows the RUN command to span multiple lines.
RUN /etc/init.d/postgresql start &&\
psql --command "CREATE USER docker WITH SUPERUSER PASSWORD 'docker';" &&\
createdb -O docker docker
# Adjust PostgreSQL configuration so that remote connections to the
# database are possible.
RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9.3/main/pg_hba.conf
# And add ``listen_addresses`` to ``/etc/postgresql/9.3/main/postgresql.conf``
RUN echo "listen_addresses='*'" >> /etc/postgresql/9.3/main/postgresql.conf
# Expose the PostgreSQL port
EXPOSE 5432
# Add VOLUMEs to allow backup of config, logs and databases
VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"]
# Set the default command to run when starting the container
CMD ["/usr/lib/postgresql/9.3/bin/postgres", "-D", "/var/lib/postgresql/9.3/main", "-c", "config_file=/etc/postgresql/9.3/main/postgresql.conf"]

View file

@ -0,0 +1,247 @@
vars it, p
p = {label, value|
print("\n" + label)
print(inspect(value))
}
-- Create an array from 0 to 15
p("range", i-collect(range(5)))
-- Create an array from 0 to 15 and break up in chunks of 4
p("chunked range", i-collect(i-chunk(4, range(16))))
-- Check if all or none items in stream pass test.
p("all < 60 in range(60)", i-all?({i|i<60}, range(60)))
p("any < 60 in range(60)", i-any?({i|i>60}, range(60)))
p("all < 60 in range(70)", i-all?({i|i<60}, range(70)))
p("any < 60 in range(70)", i-any?({i|i>60}, range(70)))
-- Zip three different collections together
p("zipped", i-collect(i-zip(
range(10),
[1,2,3,4,5],
i-map({i|i*i}, range(10))
)))
vars names, person, i, doubles, lengths, cubeRange
names = ["Thorin", "Dwalin", "Balin", "Bifur", "Bofur", "Bombur", "Oin",
"Gloin", "Ori", "Nori", "Dori", "Fili", "Kili", "Bilbo", "Gandalf"]
for name in names {
if name != "Bilbo" && name != "Gandalf" {
print(name)
}
}
person = {name: "Tim", age: 30}
for key, value in person {
print(key + " = " + value)
}
i = 0
while i < 10 {
i = i + 1
print(i)
}
print("range")
for i in range(10) {
print(i + 1)
}
for i in range(10) {
print(10 - i)
}
-- Dynamic object that gives the first 10 doubles
doubles = {
@len: {| 10 }
@get: {key|
if key is Integer { key * key }
}
}
print("#doubles", #doubles)
print("Doubles")
for k, v in doubles {
print([k, v])
}
-- Dynamic object that has names list as keys and string lenth as values
lengths = {
@keys: {| names }
@get: {key|
if key is String { #key }
}
}
print ("Lengths")
for k, v in lengths {
print([k, v])
}
cubeRange = {n|
vars i, v
i = 0
{
@call: {|
v = i
i = i + 1
if v < n { v * v * v }
}
}
}
print("Cubes")
for k, v in cubeRange(5) {
print([k, v])
}
print("String")
for k, v in "Hello World" {
print([k, v])
}
print([i for i in range(10)])
print([i for i in range(20) if i % 3])
-- Example showing how to do parallel work using split..and
base = {bootstrap, target-dir|
split {
copy("res", target-dir)
} and {
if newer("src/*.less", target-dir + "/style.css") {
lessc("src/" + bootstrap + ".less", target-dir + "/style.css")
}
} and {
build("src/" + bootstrap + ".js", target-dir + "/app.js")
}
}
vars Dragon, pet
Dragon = {name|
vars asleep, stuff-in-belly, stuff-in-intestine,
feed, walk, put-to-bed, toss, rock,
hungry?, poopy?, passage-of-time
asleep = false
stuff-in-belly = 10 -- He's full.
stuff-in-intestine = 0 -- He doesn't need to go.
print(name + ' is born.')
feed = {|
print('You feed ' + name + '.')
stuff-in-belly = 10
passage-of-time()
}
walk = {|
print('You walk ' + name + ".")
stuff-in-intestine = 0
passage-of-time
}
put-to-bed = {|
print('You put ' + name + ' to bed.')
asleep = true
for i in range(3) {
if asleep {
passage-of-time()
}
if asleep {
print(name + ' snores, filling the room with smoke.')
}
}
if asleep {
asleep = false
print(name + ' wakes up slowly.')
}
}
toss = {|
print('You toss ' + name + ' up into the air.')
print('He giggles, which singes your eyebrows.')
passage-of-time()
}
rock = {|
print('You rock ' + name + ' gently.')
asleep = true
print('He briefly dozes off...')
passage-of-time()
if asleep {
asleep = false
print('...but wakes when you stop.')
}
}
hungry? = {|
stuff-in-belly <= 2
}
poopy? = {|
stuff-in-intestine >= 8
}
passage-of-time = {|
if stuff-in-belly > 0 {
-- Move food from belly to intestine
stuff-in-belly = stuff-in-belly - 1
stuff-in-intestine = stuff-in-intestine + 1
} else { -- Our dragon is starving!
if asleep {
asleep = false
print('He wakes up suddenly!')
}
print(name + ' is starving! In desperation, he ate YOU!')
abort "died"
}
if stuff-in-intestine >= 10 {
stuff-in-intestine = 0
print('Whoops! ' + name + ' had an accident...')
}
if hungry?() {
if asleep {
asleep = false
print('He wakes up suddenly!')
}
print(name + "'s stomach grumbles...")
}
if poopy?() {
if asleep {
asleep = false
print('He wakes up suddenly!')
}
print(name + ' does the potty dance...')
}
}
-- Export the public interface to this closure object.
{
feed: feed
walk: walk
put-to-bed: put-to-bed
toss: toss
rock: rock
}
}
pet = Dragon('Norbert')
pet.feed()
pet.toss()
pet.walk()
pet.put-to-bed()
pet.rock()
pet.put-to-bed()
pet.put-to-bed()
pet.put-to-bed()
pet.put-to-bed()

View file

@ -0,0 +1,57 @@
{
# Name of our deployment
network.description = "HelloWorld";
# Enable rolling back to previous versions of our infrastructure
network.enableRollback = true;
# It consists of a single server named 'helloserver'
helloserver =
# Every server gets passed a few arguments, including a reference
# to nixpkgs (pkgs)
{ config, pkgs, ... }:
let
# We import our custom packages from ./default passing pkgs as argument
packages = import ./default.nix { pkgs = pkgs; };
# This is the nodejs version specified in default.nix
nodejs = packages.nodejs;
# And this is the application we'd like to deploy
app = packages.app;
in
{
# We'll be running our application on port 8080, because a regular
# user cannot bind to port 80
# Then, using some iptables magic we'll forward traffic designated to port 80 to 8080
networking.firewall.enable = true;
# We will open up port 22 (SSH) as well otherwise we're locking ourselves out
networking.firewall.allowedTCPPorts = [ 80 8080 22 ];
networking.firewall.allowPing = true;
# Port forwarding using iptables
networking.firewall.extraCommands = ''
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
'';
# To run our node.js program we're going to use a systemd service
# We can configure the service to automatically start on boot and to restart
# the process in case it crashes
systemd.services.helloserver = {
description = "Hello world application";
# Start the service after the network is available
after = [ "network.target" ];
# We're going to run it on port 8080 in production
environment = { PORT = "8080"; };
serviceConfig = {
# The actual command to run
ExecStart = "${nodejs}/bin/node ${app}/server.js";
# For security reasons we'll run this process as a special 'nodejs' user
User = "nodejs";
Restart = "always";
};
};
# And lastly we ensure the user we run our application as is created
users.extraUsers = {
nodejs = { };
};
};
}

View file

@ -0,0 +1,36 @@
***************************************
** Program: EXAMPLE **
** Author: Joe Byte, 07-Jul-2007 **
***************************************
REPORT BOOKINGS.
* Read flight bookings from the database
SELECT * FROM FLIGHTINFO
WHERE CLASS = 'Y' "Y = economy
OR CLASS = 'C'. "C = business
(...)
REPORT TEST.
WRITE 'Hello World'.
USERPROMPT = 'Please double-click on a line in the output list ' &
'to see the complete details of the transaction.'.
DATA LAST_EOM TYPE D. "last end-of-month date
* Start from today's date
LAST_EOM = SY-DATUM.
* Set characters 6 and 7 (0-relative) of the YYYYMMDD string to "01",
* giving the first day of the current month
LAST_EOM+6(2) = '01'.
* Subtract one day
LAST_EOM = LAST_EOM - 1.
WRITE: 'Last day of previous month was', LAST_EOM.
DATA : BEGIN OF I_VBRK OCCURS 0,
VBELN LIKE VBRK-VBELN,
ZUONR LIKE VBRK-ZUONR,
END OF I_VBRK.

View file

@ -0,0 +1,171 @@
%abc-2.1
H:This file contains some example English tunes
% note that the comments (like this one) are to highlight usages
% and would not normally be included in such detail
O:England % the origin of all tunes is England
X:1 % tune no 1
T:Dusty Miller, The % title
T:Binny's Jig % an alternative title
C:Trad. % traditional
R:DH % double hornpipe
M:3/4 % meter
K:G % key
B>cd BAG|FA Ac BA|B>cd BAG|DG GB AG:|
Bdd gfg|aA Ac BA|Bdd gfa|gG GB AG:|
BG G/2G/2G BG|FA Ac BA|BG G/2G/2G BG|DG GB AG:|
W:Hey, the dusty miller, and his dusty coat;
W:He will win a shilling, or he spend a groat.
W:Dusty was the coat, dusty was the colour;
W:Dusty was the kiss, that I got frae the miller.
X:2
T:Old Sir Simon the King
C:Trad.
S:Offord MSS % from Offord manuscript
N:see also Playford % reference note
M:9/8
R:SJ % slip jig
N:originally in C % transcription note
K:G
D|GFG GAG G2D|GFG GAG F2D|EFE EFE EFG|A2G F2E D2:|
D|GAG GAB d2D|GAG GAB c2D|[1 EFE EFE EFG|[A2G] F2E D2:|\ % no line-break in score
M:12/8 % change of meter
[2 E2E EFE E2E EFG|\ % no line-break in score
M:9/8 % change of meter
A2G F2E D2|]
X:3
T:William and Nancy
T:New Mown Hay
T:Legacy, The
C:Trad.
O:England; Gloucs; Bledington % place of origin
B:Sussex Tune Book % can be found in these books
B:Mally's Cotswold Morris vol.1 2
D:Morris On % can be heard on this record
P:(AB)2(AC)2A % play the parts in this order
M:6/8
K:G
[P:A] D|"G"G2G GBd|"C"e2e "G"dBG|"D7"A2d "G"BAG|"C"E2"D7"F "G"G2:|
[P:B] d|"G"e2d B2d|"C"gfe "G"d2d| "G"e2d B2d|"C"gfe "D7"d2c|
"G"B2B Bcd|"C"e2e "G"dBG|"D7"A2d "G"BAG|"C"E2"D7"F "G"G2:|
% changes of meter, using inline fields
[T:Slows][M:4/4][L:1/4][P:C]"G"d2|"C"e2 "G"d2|B2 d2|"Em"gf "A7"e2|"D7"d2 "G"d2|\
"C"e2 "G"d2|[M:3/8][L:1/8] "G"B2 d |[M:6/8] "C"gfe "D7"d2c|
"G"B2B Bcd|"C"e2e "G"dBG|"D7"A2d "G"BAG|"C"E2"D7"F "G"G2:|
X:4
T:South Downs Jig
R:jig
S:Robert Harbron
M:6/8
L:1/8
K:G
|: d | dcA G3 | EFG AFE | DEF GAB | cde d2d |
dcA G3 | EFG AFE | DEF GAB | cAF G2 :|
B | Bcd e2c | d2B c2A | Bcd e2c | [M:9/8]d2B c2B A3 |
[M:6/8]DGF E3 | cBA FED | DEF GAB |1 cAF G2 :|2 cAF G3 |]
X:5
T:Atholl Brose
% in this example, which reproduces Highland Bagpipe gracing,
% the large number of grace notes mean that it is more convenient to be specific about
% score line-breaks (using the $ symbol), rather than using code line breaks to indicate them
I:linebreak $
K:D
{gcd}c<{e}A {gAGAG}A2 {gef}e>A {gAGAG}Ad|
{gcd}c<{e}A {gAGAG}A>e {ag}a>f {gef}e>d|
{gcd}c<{e}A {gAGAG}A2 {gef}e>A {gAGAG}Ad|
{g}c/d/e {g}G>{d}B {gf}gG {dc}d>B:|$
{g}c<e {gf}g>e {ag}a>e {gf}g>e|
{g}c<e {gf}g>e {ag}a2 {GdG}a>d|
{g}c<e {gf}g>e {ag}a>e {gf}g>f|
{gef}e>d {gf}g>d {gBd}B<{e}G {dc}d>B|
{g}c<e {gf}g>e {ag}a>e {gf}g>e|
{g}c<e {gf}g>e {ag}a2 {GdG}ad|
{g}c<{GdG}e {gf}ga {f}g>e {g}f>d|
{g}e/f/g {Gdc}d>c {gBd}B<{e}G {dc}d2|]
X:6
T:Untitled Reel
C:Trad.
K:D
eg|a2ab ageg|agbg agef|g2g2 fgag|f2d2 d2:|\
ed|cecA B2ed|cAcA E2ed|cecA B2ed|c2A2 A2:|
K:G
AB|cdec BcdB|ABAF GFE2|cdec BcdB|c2A2 A2:|
X:7
T:Kitchen Girl
C:Trad.
K:D
[c4a4] [B4g4]|efed c2cd|e2f2 gaba|g2e2 e2fg|
a4 g4|efed cdef|g2d2 efed|c2A2 A4:|
K:G
ABcA BAGB|ABAG EDEG|A2AB c2d2|e3f edcB|ABcA BAGB|
ABAG EGAB|cBAc BAG2|A4 A4:|
%abc-2.1
%%pagewidth 21cm
%%pageheight 29.7cm
%%topspace 0.5cm
%%topmargin 1cm
%%botmargin 0cm
%%leftmargin 1cm
%%rightmargin 1cm
%%titlespace 0cm
%%titlefont Times-Bold 32
%%subtitlefont Times-Bold 24
%%composerfont Times 16
%%vocalfont Times-Roman 14
%%staffsep 60pt
%%sysstaffsep 20pt
%%musicspace 1cm
%%vocalspace 5pt
%%measurenb 0
%%barsperstaff 5
%%scale 0.7
X: 1
T: Canzonetta a tre voci
C: Claudio Monteverdi (1567-1643)
M: C
L: 1/4
Q: "Andante mosso" 1/4 = 110
%%score [1 2 3]
V: 1 clef=treble name="Soprano"sname="A"
V: 2 clef=treble name="Alto" sname="T"
V: 3 clef=bass middle=d name="Tenor" sname="B"
%%MIDI program 1 75 % recorder
%%MIDI program 2 75
%%MIDI program 3 75
K: Eb
% 1 - 4
[V: 1] |:z4 |z4 |f2ec |_ddcc |
w: Son que-sti~i cre-spi cri-ni~e
w: Que-sti son gli~oc-chi che mi-
[V: 2] |:c2BG|AAGc|(F/G/A/B/)c=A|B2AA |
w: Son que-sti~i cre-spi cri-ni~e que - - - - sto~il vi-so e
w: Que-sti son~gli oc-chi che mi-ran - - - - do fi-so mi-
[V: 3] |:z4 |f2ec|_ddcf |(B/c/_d/e/)ff|
w: Son que-sti~i cre-spi cri-ni~e que - - - - sto~il
w: Que-sti son~gli oc-chi che mi-ran - - - - do
% 5 - 9
[V: 1] cAB2 |cAAA |c3B|G2!fermata!Gz ::e4|
w: que-sto~il vi-so ond' io ri-man-go~uc-ci-so. Deh,
w: ran-do fi-so, tut-to re-stai con-qui-so.
[V: 2] AAG2 |AFFF |A3F|=E2!fermata!Ez::c4|
w: que-sto~il vi-so ond' io ri-man-go~uc-ci-so. Deh,
w: ran-do fi-so tut-to re-stai con-qui-so.
[V: 3] (ag/f/e2)|A_ddd|A3B|c2!fermata!cz ::A4|
w: vi - - - so ond' io ti-man-go~uc-ci-so. Deh,
w: fi - - - so tut-to re-stai con-qui-so.
% 10 - 15
[V: 1] f_dec |B2c2|zAGF |\
w: dim-me-lo ben mi-o, che que-sto\
=EFG2 |1F2z2:|2F8|] % more notes
w: sol de-si-o_. % more lyrics
[V: 2] ABGA |G2AA|GF=EF |(GF3/2=E//D//E)|1F2z2:|2F8|]
w: dim-me-lo ben mi-o, che que-sto sol de-si - - - - o_.
[V: 3] _dBc>d|e2AF|=EFc_d|c4 |1F2z2:|2F8|]
w: dim-me-lo ben mi-o, che que-sto sol de-si-o_.

View file

@ -0,0 +1,51 @@
package code
{
/*****************************************
* based on textmate actionscript bundle
****************************************/
import fl.events.SliderEvent;
public class Foo extends MovieClip
{
//*************************
// Properties:
public var activeSwatch:MovieClip;
// Color offsets
public var c1:Number = 0; // R
//*************************
// Constructor:
public function Foo()
{
// Respond to mouse events
swatch1_btn.addEventListener(MouseEvent.CLICK,swatchHandler,false,0,false);
previewBox_btn.addEventListener(MouseEvent.MOUSE_DOWN,dragPressHandler);
// Respond to drag events
red_slider.addEventListener(SliderEvent.THUMB_DRAG,sliderHandler);
// Draw a frame later
addEventListener(Event.ENTER_FRAME,draw);
}
protected function clickHandler(event:MouseEvent):void
{
car.transform.colorTransform = new ColorTransform(0,0,0,1,c1,c2,c3);
}
protected function changeRGBHandler(event:Event):void
{
c1 = Number(c1_txt.text);
if(!(c1>=0)){
c1 = 0;
}
updateSliders();
}
}
}

View file

@ -0,0 +1,5 @@
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
Put_Line("Hello, world!");
end Hello;

View file

@ -0,0 +1,18 @@
section .text
global main ;must be declared for using gcc
main: ;tell linker entry point
mov edx, len ;message length
mov ecx, msg ;message to write
mov ebx, 1 ;file descriptor (stdout)
mov eax, 4 ;system call number (sys_write)
int 0x80 ;call kernel
mov eax, 1 ;system call number (sys_exit)
int 0x80 ;call kernel
section .data
msg db 'Hello, world!',0xa ;our dear string
len equ $ - msg ;length of our dear string

View file

@ -0,0 +1,35 @@
#NoEnv
SetBatchLines -1
CoordMode Mouse, Screen
OnExit GuiClose
zoom := 9
computeSize(){
global as_x
as_x := Round(ws_x/zoom/2 - 0.5)
if (zoom>1) {
pix := Round(zoom)
} ele {
pix := 1
}
ToolTip Message %as_x% %zoom% %ws_x% %hws_x%
}
hdc_frame := DllCall("GetDC", UInt, MagnifierID)
; comment
DrawCross(byRef x="", rX,rY,z, dc){
;specify the style, thickness and color of the cross lines
h_pen := DllCall( "gdi32.dll\CreatePen", Int, 0, Int, 1, UInt, 0x0000FF)
}
;Ctrl ^; Shift +; Win #; Alt !
^NumPadAdd::
^WheelUp::
^;:: ;comment
If(zoom < ws_x and ( A_ThisHotKey = "^WheelUp" or A_ThisHotKey ="^NumPadAdd") )
zoom *= 1.189207115 ; sqrt(sqrt(2))
Gosub,setZoom
return

View file

@ -0,0 +1,15 @@
:: batch file highlighting in Ace!
@echo off
CALL set var1=%cd%
echo unhide everything in %var1%!
:: FOR loop in bat is super strange!
FOR /f "tokens=*" %%G IN ('dir /A:D /b') DO (
echo %var1%%%G
attrib -r -a -h -s "%var1%%%G" /D /S
)
pause
REM that's all

View file

@ -1,4 +1,4 @@
Searching for 'var' in /workspace/configs
Searching for var in/.c9/metadata/workspace/pluginsregexp, case sensitive, whole word
configs/default.js:
1: var fs = require("fs");

View file

@ -0,0 +1,44 @@
// compound assignment operators
#include <iostream>
#include \
<iostream>
#include \
\
<iostream>
#include \
\
"iostream"
#include <boost/asio/io_service.hpp>
#include "boost/asio/io_service.hpp"
#include \
\
"iostream" \
"string" \
<vector>
using namespace std;
int main ()
{
int a, b=3; /* foobar */
a = b;
a+=2; // equivalent to a=a+2
cout << a;
#if VERBOSE >= 2
prints("trace message");
#endif
return 0;
}
/* Print an error message and get out */
#define ABORT \
do { \
print( "Abort\n" ); \
exit(8); \
} while (0) /* Note: No semicolon */

View file

@ -0,0 +1,42 @@
-- https://github.com/Cirru/cirru-gopher/blob/master/code/scope.cr,
set a (int 2)
print (self)
set c (child)
under c
under parent
print a
print $ get c a
set c x (int 3)
print $ get c x
set just-print $ code
print a
print just-print
eval (self) just-print
eval just-print
print (string "string with space")
print (string "escapes \n \"\\")
brackets ((((()))))
"eval" $ string "eval"
print (add $ (int 1) (int 2))
print $ unwrap $
map (a $ int 1) (b $ int 2)
print a
int 1
, b c
int 2
, d

View file

@ -0,0 +1 @@
TODO

View file

@ -1,13 +0,0 @@
// compound assignment operators
#include <iostream>
using namespace std;
int main ()
{
int a, b=3; /* foobar */
a = b;
a+=2; // equivalent to a=a+2
cout << a;
return 0;
}

View file

@ -1,28 +1,18 @@
.text-layer {
font-family: Monaco, "Courier New", monospace;
font-size: 12px;
font: 12px Monaco, "Courier New", monospace;
cursor: text;
}
.blinker {
animation-duration: 1s;
animation-name: blink;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-timing-function: linear;
animation: blink 1s linear infinite alternate;
}
@keyframes blink {
0% {
0%, 40% {
opacity: 0;
}
40% {
opacity: 0;
}
40.5% {
opacity: 1
}
100% {
40.5%, 100% {
opacity: 1
}
}

View file

@ -0,0 +1,16 @@
<html>
<head>
<style type="text/css">
.text-layer {
font-family: Monaco, "Courier New", monospace;
font-size: 12px;
cursor: text;
}
</style>
</head>
<body>
<h1 style="color:red">{{author_name}}</h1>
</body>
</html>

View file

@ -0,0 +1,14 @@
#!/usr/bin/env rdmd
// Computes average line length for standard input.
import std.stdio;
void main() {
ulong lines = 0;
double sumLength = 0;
foreach (line; stdin.byLine()) {
++lines;
sumLength += line.length;
}
writeln("Average line length: ",
lines ? sumLength / lines : 0);
}

View file

@ -1,58 +1,19 @@
main() {
print('Hello World!');
// Go ahead and modify this example.
import "dart:html";
// Computes the nth Fibonacci number.
int fibonacci(int n) {
if (n < 2) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
// Displays a Fibonacci number.
void main() {
int i = 20;
String message = "fibonacci($i) = ${fibonacci(i)}";
int fib(int n) => (n > 1) ? (fib(n - 1) + fib(n - 2)) : n;
main() {
print('fib(20) = ${fib(20)}');
// This example uses HTML to display the result and it will appear
// in a nested HTML frame (an iframe).
document.body.append(new HeadingElement.h1()..appendText(message));
}
/*asd
asdad
*/
0.67
77
.86
#import("http://dartwatch.com/myOtherLibrary.dart");
#import("myOtherLibrary.dart", prefix:"lib1");
"""asdasdads
asdadsadsasd
asdasdasdad"""
'23424'
0x234
foo is bar
int x = 4 << 10
// Create a class for Point.
class Point {
// Final variables cannot be changed once they are assigned.
// Create two instance variables.
final num x, y;
// A constructor, with syntactic sugar for setting instance variables.
Point(this.x, this.y);
// A named constructor with an initializer list.
Point.origin() : x = 0, y = 0;
// A method.
num distanceTo(Point other) {
var dx = x - other.x;
var dy = y - other.y;
return sqrt(dx * dx + dy * dy);
}
}
// Check for null.
var unicorn;
assert(unicorn == null);
// Check for NaN.
var iMeantToDoThis = 0/0;
assert(iMeantToDoThis.isNaN());

View file

@ -0,0 +1,110 @@
// Original source: http://www.graphviz.org/content/lion_share
##"A few people in the field of genetics are using dot to draw "marriage node diagram" pedigree drawings. Here is one I have done of a test pedigree from the FTREE pedigree drawing package (Lion Share was a racehorse)." Contributed by David Duffy.
##Command to get the layout: "dot -Tpng thisfile > thisfile.png"
digraph Ped_Lion_Share {
# page = "8.2677165,11.692913" ;
ratio = "auto" ;
mincross = 2.0 ;
label = "Pedigree Lion_Share" ;
"001" [shape=box , regular=1,style=filled,fillcolor=white ] ;
"002" [shape=box , regular=1,style=filled,fillcolor=white ] ;
"003" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"004" [shape=box , regular=1,style=filled,fillcolor=white ] ;
"005" [shape=box , regular=1,style=filled,fillcolor=white ] ;
"006" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"007" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"009" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"014" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"015" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"016" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"ZZ01" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"ZZ02" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"017" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"012" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"008" [shape=box , regular=1,style=filled,fillcolor=white ] ;
"011" [shape=box , regular=1,style=filled,fillcolor=white ] ;
"013" [shape=box , regular=1,style=filled,fillcolor=white ] ;
"010" [shape=box , regular=1,style=filled,fillcolor=white ] ;
"023" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"020" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"021" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"018" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"025" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"019" [shape=box , regular=1,style=filled,fillcolor=white ] ;
"022" [shape=box , regular=1,style=filled,fillcolor=white ] ;
"024" [shape=box , regular=1,style=filled,fillcolor=white ] ;
"027" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
"026" [shape=box , regular=1,style=filled,fillcolor=white ] ;
"028" [shape=box , regular=1,style=filled,fillcolor=grey ] ;
"marr0001" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"001" -> "marr0001" [dir=none,weight=1] ;
"007" -> "marr0001" [dir=none,weight=1] ;
"marr0001" -> "017" [dir=none, weight=2] ;
"marr0002" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"001" -> "marr0002" [dir=none,weight=1] ;
"ZZ02" -> "marr0002" [dir=none,weight=1] ;
"marr0002" -> "012" [dir=none, weight=2] ;
"marr0003" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"002" -> "marr0003" [dir=none,weight=1] ;
"003" -> "marr0003" [dir=none,weight=1] ;
"marr0003" -> "008" [dir=none, weight=2] ;
"marr0004" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"002" -> "marr0004" [dir=none,weight=1] ;
"006" -> "marr0004" [dir=none,weight=1] ;
"marr0004" -> "011" [dir=none, weight=2] ;
"marr0005" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"002" -> "marr0005" [dir=none,weight=1] ;
"ZZ01" -> "marr0005" [dir=none,weight=1] ;
"marr0005" -> "013" [dir=none, weight=2] ;
"marr0006" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"004" -> "marr0006" [dir=none,weight=1] ;
"009" -> "marr0006" [dir=none,weight=1] ;
"marr0006" -> "010" [dir=none, weight=2] ;
"marr0007" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"005" -> "marr0007" [dir=none,weight=1] ;
"015" -> "marr0007" [dir=none,weight=1] ;
"marr0007" -> "023" [dir=none, weight=2] ;
"marr0008" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"005" -> "marr0008" [dir=none,weight=1] ;
"016" -> "marr0008" [dir=none,weight=1] ;
"marr0008" -> "020" [dir=none, weight=2] ;
"marr0009" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"005" -> "marr0009" [dir=none,weight=1] ;
"012" -> "marr0009" [dir=none,weight=1] ;
"marr0009" -> "021" [dir=none, weight=2] ;
"marr0010" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"008" -> "marr0010" [dir=none,weight=1] ;
"017" -> "marr0010" [dir=none,weight=1] ;
"marr0010" -> "018" [dir=none, weight=2] ;
"marr0011" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"011" -> "marr0011" [dir=none,weight=1] ;
"023" -> "marr0011" [dir=none,weight=1] ;
"marr0011" -> "025" [dir=none, weight=2] ;
"marr0012" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"013" -> "marr0012" [dir=none,weight=1] ;
"014" -> "marr0012" [dir=none,weight=1] ;
"marr0012" -> "019" [dir=none, weight=2] ;
"marr0013" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"010" -> "marr0013" [dir=none,weight=1] ;
"021" -> "marr0013" [dir=none,weight=1] ;
"marr0013" -> "022" [dir=none, weight=2] ;
"marr0014" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"019" -> "marr0014" [dir=none,weight=1] ;
"020" -> "marr0014" [dir=none,weight=1] ;
"marr0014" -> "024" [dir=none, weight=2] ;
"marr0015" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"022" -> "marr0015" [dir=none,weight=1] ;
"025" -> "marr0015" [dir=none,weight=1] ;
"marr0015" -> "027" [dir=none, weight=2] ;
"marr0016" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"024" -> "marr0016" [dir=none,weight=1] ;
"018" -> "marr0016" [dir=none,weight=1] ;
"marr0016" -> "026" [dir=none, weight=2] ;
"marr0017" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
"026" -> "marr0017" [dir=none,weight=1] ;
"027" -> "marr0017" [dir=none,weight=1] ;
"marr0017" -> "028" [dir=none, weight=2] ;
}

View file

@ -0,0 +1,30 @@
note
description: "Represents a person."
class
PERSON
create
make, make_unknown
feature {NONE} -- Creation
make (a_name: like name)
-- Create a person with `a_name' as `name'.
do
name := a_name
ensure
name = a_name
end
make_unknown
do ensure
name = Void
end
feature -- Access
name: detachable STRING
-- Full name or Void if unknown.
end

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<title>Cloud9 Rocks!</title>
</head>
<body>
<table class="table">
<tr>
<th>Name</th>
<th>Size</th>
</tr>
<% if (!isRoot) { %>
<tr>
<td><a href="..">..</a></td>
<td></td></td>
</tr>
<% } %>
<% entries.forEach(function(entry) { %>
<tr>
<td>
<span class="glyphicon <%= entry.mime == 'directory' ? 'folder': 'file'%>"></span>
<a href="<%= entry.name %>"><%= entry.name %></a>
</td>
<td><%= entry.size %></td>
</tr>
<% }) %>
</table>
</body>
</html>

View file

@ -0,0 +1,42 @@
defmodule HelloModule do
@moduledoc """
This is supposed to be `markdown`.
__Yes__ this is [mark](http://down.format)
# Truly
## marked
* with lists
* more
* and more
Even.with(code)
blocks |> with |> samples
_Docs are first class citizens in Elixir_ (Jose Valim)
"""
# A "Hello world" function
def some_fun do
IO.puts "Juhu Kinners!"
end
# A private function
defp priv do
is_regex ~r"""
This is a regex
spanning several
lines.
"""
x = elem({ :a, :b, :c }, 0) #=> :a
end
end
test_fun = fn(x) ->
cond do
x > 10 ->
:greater_than_ten
true ->
:maybe_ten
end
end

View file

@ -0,0 +1,12 @@
{- Ace {- 4 -} Elm -}
main = lift clock (every second)
clock t = collage 400 400 [ filled lightGrey (ngon 12 110)
, outlined (solid grey) (ngon 12 110)
, hand orange 100 t
, hand charcoal 100 (t/60)
, hand charcoal 60 (t/720) ]
hand clr len time =
let angle = degrees (90 - 6 * inSeconds time)
in traced (solid clr) <| segment (0,0) (len * cos angle, len * sin angle)

View file

@ -0,0 +1,20 @@
%% A process whose only job is to keep a counter.
%% First version
-module(counter).
-export([start/0, codeswitch/1]).
start() -> loop(0).
loop(Sum) ->
receive
{increment, Count} ->
loop(Sum+Count);
{counter, Pid} ->
Pid ! {counter, Sum},
loop(Sum);
code_switch ->
?MODULE:codeswitch(Sum)
% Force the use of 'codeswitch/1' from the latest MODULE version
end.
codeswitch(Sum) -> loop(Sum).

View file

@ -0,0 +1,41 @@
: HELLO ( -- ) CR ." Hello, world!" ;
HELLO <cr>
Hello, world!
: [CHAR] CHAR POSTPONE LITERAL ; IMMEDIATE
0 value ii 0 value jj
0 value KeyAddr 0 value KeyLen
create SArray 256 allot \ state array of 256 bytes
: KeyArray KeyLen mod KeyAddr ;
: get_byte + c@ ;
: set_byte + c! ;
: as_byte 255 and ;
: reset_ij 0 TO ii 0 TO jj ;
: i_update 1 + as_byte TO ii ;
: j_update ii SArray get_byte + as_byte TO jj ;
: swap_s_ij
jj SArray get_byte
ii SArray get_byte jj SArray set_byte
ii SArray set_byte
;
: rc4_init ( KeyAddr KeyLen -- )
256 min TO KeyLen TO KeyAddr
256 0 DO i i SArray set_byte LOOP
reset_ij
BEGIN
ii KeyArray get_byte jj + j_update
swap_s_ij
ii 255 < WHILE
ii i_update
REPEAT
reset_ij
;
: rc4_byte
ii i_update jj j_update
swap_s_ij
ii SArray get_byte jj SArray get_byte + as_byte SArray get_byte xor
;

View file

@ -0,0 +1,46 @@
<#ftl encoding="utf-8" />
<#setting locale="en_US" />
<#import "library" as lib />
<#--
FreeMarker comment
${abc} <#assign a=12 />
-->
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<title>${title!"FreeMarker"}<title>
</head>
<body>
<h1>Hello ${name!""}</h1>
<p>Today is: ${.now?date}</p>
<#assign x = 13>
<#if x &gt; 12 && x lt 14>x equals 13: ${x}</#if>
<ul>
<#list items as item>
<li>${item_index}: ${item.name!?split("\n")[0]}</li>
</#list>
</ul>
User directive: <@lib.function attr1=true attr2='value' attr3=-42.12>Test</@lib.function>
<@anotherOne />
<#if variable?exists>
Deprecated
<#elseif variable??>
Better
<#else>
Default
</#if>
<img src="images/${user.id}.png" />
</body>
</html>

View file

@ -0,0 +1,31 @@
O003 (DIAMOND SQUARE)
N2 G54 G90 G49 G80
N3 M6 T1 (1.ENDMILL)
N4 M3 S1800
N5 G0 X-.6 Y2.050
N6 G43 H1 Z.1
N7 G1 Z-.3 F50.
N8 G41 D1 Y1.45
N9 G1 X0 F20.
N10 G2 J-1.45
(CUTTER COMP CANCEL)
N11 G1 Z-.2 F50.
N12 Y-.990
N13 G40
N14 G0 X-.6 Y1.590
N15 G0 Z.1
N16 M5 G49 G28 G91 Z0
N17 CALL O9456
N18 #500=0.004
N19 #503=[#500+#501]
N20 VC45=0.0006
VS4=0.0007
N21 G90 G10 L20 P3 X5.Y4. Z6.567
N22 G0 X5000
N23 IF [#1 LT 0.370] GOTO 49
N24 X-0.678 Y+.990
N25 G84.3 X-0.1
N26 #4=#5*COS[45]
N27 #4=#5*SIN[45]
N28 VZOFZ=652.9658
%

View file

@ -0,0 +1,28 @@
@these @are @tags
Feature: Serve coffee
Coffee should not be served until paid for
Coffee should not be served until the button has been pressed
If there is no coffee left then money should be refunded
Scenario Outline: Eating
Given there are <start> cucumbers
When I eat <eat> cucumbers
Then I should have <left> cucumbers
Examples:
| start | eat | left |
| 12 | 5 | 7 |
| 20 | 5 | 15 |
Scenario: Buy last coffee
Given there are 1 coffees left in the machine
And I have deposited 1$
When I press the coffee button
Then I should be served a "coffee"
# this a comment
"""
this is a
pystring
"""

View file

@ -0,0 +1,8 @@
{{!-- Ace + :-}} --}}
<div id="comments">
{{#each comments}}
<h2><a href="/posts/{{../permalink}}#{{id}}">{{title}}</a></h2>
<div>{{{body}}}</div>
{{/each}}
</div>

View file

@ -0,0 +1,20 @@
-- Type annotation (optional)
fib :: Int -> Integer
-- With self-referencing data
fib n = fibs !! n
where fibs = 0 : scanl (+) 1 fibs
-- 0,1,1,2,3,5,...
-- Same, coded directly
fib n = fibs !! n
where fibs = 0 : 1 : next fibs
next (a : t@(b:_)) = (a+b) : next t
-- Similar idea, using zipWith
fib n = fibs !! n
where fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
-- Using a generator function
fib n = fibs (0,1) !! n
where fibs (a,b) = a : fibs (b,a+b)

View file

@ -0,0 +1,10 @@
Redirect /linux http://www.linux.org
Redirect 301 /kernel http://www.linux.org
# comment
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*
RewriteRule ^/$ /homepage.max.html [L]
RewriteRule ^/$ /homepage.std.html [L]

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>

View file

@ -0,0 +1,26 @@
<h1>Listing Books</h1>
<table>
<tr>
<th>Title</th>
<th>Summary</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @books.each do |book| %>
<tr>
<%# comment %>
<td><%= book.title %></td>
<td><%= book.content %></td>
<td><%= link_to 'Show', book %></td>
<td><%= link_to 'Edit', edit_book_path(book) %></td>
<td><%= link_to 'Remove', book, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New book', new_book_path %>

View file

@ -0,0 +1,4 @@
[.ShellClassInfo]
IconResource=..\logo.png
[ViewState]
FolderType=Generic

View file

@ -0,0 +1,6 @@
// computes factorial of a number
factorial := method(n,
if(n == 0, return 1)
res := 1
Range 1 to(n) foreach(i, res = res * i)
)

View file

@ -0,0 +1 @@
TODO

View file

@ -0,0 +1,15 @@
for op = (:+, :*, :&, :|, :$)
@eval ($op)(a,b,c) = ($op)(($op)(a,b),c)
end
v = α';
function g(x,y)
return x * y
x + y
end
cd("data") do
open("outfile", "w") do f
write(f, data)
end
end

View file

@ -0,0 +1,9 @@
import logic
section
variables (A : Type) (p q : A Prop)
example : (x : A, p x q x) y : A, p y :=
assume H : x : A, p x q x,
take y : A,
show p y, from and.elim_left (H y)
end

View file

@ -0,0 +1,245 @@
# Defines an editing mode for [Ace](http://ace.ajax.org).
#
# Open [test/ace.html](../test/ace.html) to test.
require, exports, module <-! define \ace/mode/ls
identifier = /(?![\d\s])[$\w\xAA-\uFFDC](?:(?!\s)[$\w\xAA-\uFFDC]|-[A-Za-z])*/$
exports.Mode = class LiveScriptMode extends require(\ace/mode/text)Mode
->
@$tokenizer =
new (require \ace/tokenizer)Tokenizer LiveScriptMode.Rules
if require \ace/mode/matching_brace_outdent
@$outdent = new that.MatchingBraceOutdent
indenter = // (?
: [({[=:]
| [-~]>
| \b (?: e(?:lse|xport) | d(?:o|efault) | t(?:ry|hen) | finally |
import (?:\s* all)? | const | var |
let | new | catch (?:\s* #identifier)? )
) \s* $ //
getNextLineIndent: (state, line, tab) ->
indent = @$getIndent line
{tokens} = @$tokenizer.getLineTokens line, state
unless tokens.length and tokens[*-1]type is \comment
indent += tab if state is \start and indenter.test line
indent
toggleCommentLines: (state, doc, startRow, endRow) ->
comment = /^(\s*)#/; range = new (require \ace/range)Range 0 0 0 0
for i from startRow to endRow
if out = comment.test line = doc.getLine i
then line.=replace comment, \$1
else line.=replace /^\s*/ \$&#
range.end.row = range.start.row = i
range.end.column = line.length + 1
doc.replace range, line
1 - out * 2
checkOutdent: (state, line, input) -> @$outdent?checkOutdent line, input
autoOutdent: (state, doc, row) -> @$outdent?autoOutdent doc, row
### Highlight Rules
keywordend = /(?![$\w]|-[A-Za-z]|\s*:(?![:=]))/$
stringfill = token: \string, regex: '.+'
LiveScriptMode.Rules =
start:
* token: \keyword
regex: //(?
:t(?:h(?:is|row|en)|ry|ypeof!?)
|c(?:on(?:tinue|st)|a(?:se|tch)|lass)
|i(?:n(?:stanceof)?|mp(?:ort(?:\s+all)?|lements)|[fs])
|d(?:e(?:fault|lete|bugger)|o)
|f(?:or(?:\s+own)?|inally|unction)
|s(?:uper|witch)
|e(?:lse|x(?:tends|port)|val)
|a(?:nd|rguments)
|n(?:ew|ot)
|un(?:less|til)
|w(?:hile|ith)
|o[fr]|return|break|let|var|loop
)//$ + keywordend
* token: \constant.language
regex: '(?:true|false|yes|no|on|off|null|void|undefined)' + keywordend
* token: \invalid.illegal
regex: '(?
:p(?:ackage|r(?:ivate|otected)|ublic)
|i(?:mplements|nterface)
|enum|static|yield
)' + keywordend
* token: \language.support.class
regex: '(?
:R(?:e(?:gExp|ferenceError)|angeError)
|S(?:tring|yntaxError)
|E(?:rror|valError)
|Array|Boolean|Date|Function|Number|Object|TypeError|URIError
)' + keywordend
* token: \language.support.function
regex: '(?
:is(?:NaN|Finite)
|parse(?:Int|Float)
|Math|JSON
|(?:en|de)codeURI(?:Component)?
)' + keywordend
* token: \variable.language
regex: '(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)' + keywordend
* token: \identifier
regex: identifier + /\s*:(?![:=])/$
* token: \variable
regex: identifier
* token: \keyword.operator
regex: /(?:\.{3}|\s+\?)/$
* token: \keyword.variable
regex: /(?:@+|::|\.\.)/$
next : \key
* token: \keyword.operator
regex: /\.\s*/$
next : \key
* token: \string
regex: /\\\S[^\s,;)}\]]*/$
* token: \string.doc
regex: \'''
next : \qdoc
* token: \string.doc
regex: \"""
next : \qqdoc
* token: \string
regex: \'
next : \qstring
* token: \string
regex: \"
next : \qqstring
* token: \string
regex: \`
next : \js
* token: \string
regex: '<\\['
next : \words
* token: \string.regex
regex: \//
next : \heregex
* token: \comment.doc
regex: '/\\*'
next : \comment
* token: \comment
regex: '#.*'
* token: \string.regex
regex: //
/(?: [^ [ / \n \\ ]*
(?: (?: \\.
| \[ [^\]\n\\]* (?:\\.[^\]\n\\]*)* \]
) [^ [ / \n \\ ]*
)*
)/ [gimy$]{0,4}
//$
next : \key
* token: \constant.numeric
regex: '(?:0x[\\da-fA-F][\\da-fA-F_]*
|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*
|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)
(?:e[+-]?\\d[\\d_]*)?[\\w$]*)'
* token: \lparen
regex: '[({[]'
* token: \rparen
regex: '[)}\\]]'
next : \key
* token: \keyword.operator
regex: \\\S+
* token: \text
regex: \\\s+
heregex:
* token: \string.regex
regex: '.*?//[gimy$?]{0,4}'
next : \start
* token: \string.regex
regex: '\\s*#{'
* token: \comment.regex
regex: '\\s+(?:#.*)?'
* token: \string.regex
regex: '\\S+'
key:
* token: \keyword.operator
regex: '[.?@!]+'
* token: \identifier
regex: identifier
next : \start
* token: \text
regex: '.'
next : \start
comment:
* token: \comment.doc
regex: '.*?\\*/'
next : \start
* token: \comment.doc
regex: '.+'
qdoc:
token: \string
regex: ".*?'''"
next : \key
stringfill
qqdoc:
token: \string
regex: '.*?"""'
next : \key
stringfill
qstring:
token: \string
regex: /[^\\']*(?:\\.[^\\']*)*'/$
next : \key
stringfill
qqstring:
token: \string
regex: /[^\\"]*(?:\\.[^\\"]*)*"/$
next : \key
stringfill
js:
token: \string
regex: /[^\\`]*(?:\\.[^\\`]*)*`/$
next : \key
stringfill
words:
token: \string
regex: '.*?\\]>'
next : \key
stringfill

View file

@ -0,0 +1,16 @@
// ancestors
parentof("douglas", "john").
parentof("john", "bob").
parentof("bob", "ebbon").
parentof("douglas", "jane").
parentof("jane", "jan").
ancestorof(A, B) <- parentof(A, B).
ancestorof(A, C) <- ancestorof(A, B), parentof(B,C).
grandparentof(A, B) <- parentof(A, C), parentof(C, B).
cousins(A,B) <- grandparentof(C,A), grandparentof(C,B).
parentof[`arg](A, B) -> int[32](A), !string(B).

View file

@ -0,0 +1,75 @@
/*
Testing syntax highlighting
of Ace Editor
for the Linden Scripting Language
*/
integer someIntNormal = 3672;
integer someIntHex = 0x00000000;
integer someIntMath = PI_BY_TWO;
integer event = 5673; // invalid.illegal
key someKeyTexture = TEXTURE_DEFAULT;
string someStringSpecial = EOF;
some_user_defined_function_without_return_type(string inputAsString)
{
llSay(PUBLIC_CHANNEL, inputAsString);
}
string user_defined_function_returning_a_string(key inputAsKey)
{
return (string)inputAsKey;
}
default
{
state_entry()
{
key someKey = NULL_KEY;
someKey = llGetOwner();
string someString = user_defined_function_returning_a_string(someKey);
some_user_defined_function_without_return_type(someString);
}
touch_start(integer num_detected)
{
list agentsInRegion = llGetAgentList(AGENT_LIST_REGION, []);
integer numOfAgents = llGetListLength(agentsInRegion);
integer index; // defaults to 0
for (; index <= numOfAgents - 1; index++) // for each agent in region
{
llRegionSayTo(llList2Key(agentsInRegion, index), PUBLIC_CHANNEL, "Hello, Avatar!");
}
}
touch_end(integer num_detected)
{
someIntNormal = 3672;
someIntHex = 0x00000000;
someIntMath = PI_BY_TWO;
event = 5673; // invalid.illegal
someKeyTexture = TEXTURE_DEFAULT;
someStringSpecial = EOF;
llSetInventoryPermMask("some item", MASK_NEXT, PERM_ALL); // reserved.godmode
llWhisper(PUBLIC_CHANNEL, "Leaving \"default\" now...");
state other;
}
}
state other
{
state_entry()
{
llWhisper(PUBLIC_CHANNEL, "Entered \"state other\", returning to \"default\" again...");
state default;
}
}

View file

@ -34,3 +34,5 @@ print([===[
table.maxn is deprecated, use # instead.
--]=]--
print(table.maxn{1,2,[4]=4,[8]=8) -- outputs 8 instead of 2
print(5 --[[ blah ]])

View file

@ -0,0 +1,52 @@
/* Mask Syntax Demo */
div > ' Test ~[name]';
define :userProfile {
header {
h4 > @title;
button.close;
}
}
:userProfile {
@title > ' Hello ~[: username.toUpperCase()]'
}
style {
html, body {
background: url('name.png') 0 0 no-repeat;
}
}
button {
event click (e) {
this.textContent = `name ${e.clientX} !`;
}
}
md > """
- div
- span
Hello
[one](http://google.com)
""";
header .foo > 'Heading'
button .baz x-signal='click: test' disabled > "
Hello,
world
\"Buddy\"
"
var a = {
name: `name ${window.innerWidth}`
};
span .foo > "~[bind: a.name]"

View file

@ -0,0 +1,17 @@
%{
%{
Ace Matlab demo
%}
%}
classdef hello
methods
function greet(this)
disp('Hello!') % say hi
end
end
end
% transpose
a = [ 'x''y', "x\n\
y", 1' ]' + 2'

View file

@ -0,0 +1,33 @@
// animated duplicates, instances script
proc animatedDuplication (int $rangeStart, int $rangeEnd, int $numOfDuplicates, int $duplicateOrInstance)
{
int $range_start = $rangeStart;
int $range_end = $rangeEnd;
int $num_of_duplicates = $numOfDuplicates;
int $step_size = ($range_end - $range_start) / $num_of_duplicates;
int $i = 0;
int $temp;
currentTime $range_start; // set to range start
string $selectedObjects[]; // to store selected objects
$selectedObjects = `ls -sl`; // store selected objects
select $selectedObjects;
while ($i <= $num_of_duplicates)
{
$temp = $range_start + ($step_size * $i);
currentTime ($temp);
// seleced the objects to duplicate or instance
select $selectedObjects;
if($duplicateOrInstance == 0)
{
duplicate;
}
else
{
instance;
}
$i++;
}
}

View file

@ -0,0 +1,8 @@
@create phone
&pickup phone=$pick up:@ifelse [u(is,u(mode),ICC)]={@pemit %#=You pick up the [fullname(me)].[set(me,PHONER:%#)][set(me,MODE:CIP)][set([u(INCOMING)],CONNECTED:[num(me)])][set(me,CONNECTED:[u(INCOMING)])]%r[showpicture(PICPICKUP)]%rUse '[color(green,black,psay <message>)]' (or '[color(green,black,p <message>)]') to talk into the phone.;@oemit %#=%N picks up the [fullname(me)].},{@pemit %#=You pick up the phone but no one is there. You hear a dialtone and then hang up. [play(u(DIALTONE))];@oemit %#=%N picks up the phone, but no one is on the other end.}
&ringfun phone=[ifelse(eq(comp([u(%0/ringtone)],off),0),[color(black,cyan,INCOMING CALL FROM %1)],[play([switch([u(%0/ringtone)],1,[u(%0/ringtone1)],2,[u(%0/ringtone2)],3,[u(%0/ringtone3)],4,[u(%0/ringtone4)],5,[u(%0/ringtone5)],6,[u(%0/ringtone6)],7,[u(%0/ringtone7)],8,[u(%0/ringtone8)],9,[u(%0/ringtone9)],custom,[u(%0/customtone)],vibrate,[u(%0/vibrate)])])]
&ringloop phone=@switch [u(ringstate)]=1,{@emit [setq(q,[u(connecting)])][set(%qq,rangs:0)][set(%qq,mode:WFC)][set(%qq,INCOMING:)];@ifelse [u(%qq/HASVMB)]={@tr me/ROUTEVMB=[u(connecting)];},{@pemit %#=[u(MSGCNC)];}},2,{@pemit %#=The call is connected.[setq(q,[u(CONNECTING)])][set(me,CONNECTED:%qq)][set(%qq,CONNECTED:[num(me)])][set(%qq,MODE:CIP)];@tr me/ciploop;@tr %qq/ciploop;},3,{@emit On [fullname(me)]'s earpiece you hear a ringing sound.[play(u(LINETONE))];@tr me/ringhere;@increment [u(connecting)]/RANGS;@wait 5={@tr me/ringloop};},4,{}
&ringstate phone=[setq(q,u(connecting))][setq(1,[gt(u(%qq/rangs),sub(u(%qq/rings),1))])][setq(2,[and(u(is,u(%qq/MODE),CIP),u(is,u(%qq/INCOMING),[num(me)]))][setq(3,[u(is,u(%qq/MODE),ICC)])][ifelse(%q1,1,ifelse(%q2,2,ifelse(%q3,3,4)))]
;comment
@@(comment)
say [time()]

View file

@ -0,0 +1 @@
TODO

View file

@ -0,0 +1,48 @@
(*****************************************************************************
* A simple bubble sort program. Reads integers, one per line, and prints *
* them out in sorted order. Blows up if there are more than 49. *
*****************************************************************************)
PROGRAM Sort(input, output);
CONST
(* Max array size. *)
MaxElts = 50;
TYPE
(* Type of the element array. *)
IntArrType = ARRAY [1..MaxElts] OF Integer;
VAR
(* Indexes, exchange temp, array size. *)
i, j, tmp, size: integer;
(* Array of ints *)
arr: IntArrType;
(* Read in the integers. *)
PROCEDURE ReadArr(VAR size: Integer; VAR a: IntArrType);
BEGIN
size := 1;
WHILE NOT eof DO BEGIN
readln(a[size]);
IF NOT eof THEN
size := size + 1
END
END;
BEGIN
(* Read *)
ReadArr(size, arr);
(* Sort using bubble sort. *)
FOR i := size - 1 DOWNTO 1 DO
FOR j := 1 TO i DO
IF arr[j] > arr[j + 1] THEN BEGIN
tmp := arr[j];
arr[j] := arr[j + 1];
arr[j + 1] := tmp;
END;
(* Print. *)
FOR i := 1 TO size DO
writeln(arr[i])
END.

Some files were not shown because too many files have changed in this diff Show more