Commit graph

4,908 commits

Author SHA1 Message Date
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