Permalink
...
Comparing changes
Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a Base Repository
codemirror/CodeMirror
Benvie/CodeMirror
BrendonSled/CodeMirror2
Brijen/CodeMirror2
CodePen/CodeMirrorEditor
DarioGT/CodeMirror2
GerHobbelt/CodeMirror2
GordonSmith/CodeMirror2
Gozala/CodeMirror
Kodowa/CodeMirror
MariusKarthaus/CodeMirror2
MichaelaIvanova/CodeMirror
NV/CodeMirror
Naatan/CodeMirror2
Nahrae/CodeMirror
Necrathex/CodeMirror2
NikhilS/CodeMirror2
Page-/CodeMirror2
ProPuke/CodeMirror2
Raynes/CodeMirror2
SimonWaldherrArchive/CodeMirror2
Suor/CodeMirror2
TheColorRed/CodeMirror2
TypedLambda/CodeMirror2
Visheshk/CodeMirror2
WebKutir/CodeMirror2
WolfgangKluge/CodeMirror2
achicu/CodeMirror2
adam-singer/CodeMirror2
adanlobato/CodeMirror2
adobe/CodeMirror2
aklaswad/CodeMirror2
alexey-k/CodeMirror2
amphro/CodeMirror2
ananyasen/CodeMirror2
andrecharland/CodeMirror2
ankit/CodeMirror2
areos/CodeMirror2
atul-bhouraskar/CodeMirror2
axtro/CodeMirror2
ayachi/CodeMirror2
benbunk/CodeMirror2
bengillies/CodeMirror2
billortell/CodeMirror2
blackvladimir/CodeMirror2
bnowel/CodeMirror2
borawjm/CodeMirror2
botelho/CodeMirror
bridger/CodeMirror2
bsletten/CodeMirror2
capacman/CodeMirror2
captn3m0/CodeMirror2
cethap/CodeMirror2
charles-cai/CodeMirror2
charlieroberts/CodeMirror2
chendeng/CodeMirror2
chris-morgan/CodeMirror2
cicloid/CodeMirror2
ciptard/CodeMirror2
clarkbox/CodeMirror2
clemos/CodeMirror2
cliffkoh/CodeMirror2
cloudgiant/CodeMirror2
codio/CodeMirror
contributed/CodeMirror2
dbja/CodeMirror2
deebugger/CodeMirror2
djiang/CodeMirror2
dparnell/CodeMirror2
durdn/CodeMirror2
dxw/CodeMirror2
dynosmurf/CodeMirror2
dyoo/CodeMirror2
ekhaled/CodeMirror2
espadrine/CodeMirror
est/CodeMirror2
existdissolve/CodeMirror2
fbuchinger/CodeMirror2
felmoon/CodeMirror2
femhub/CodeMirror2
flyabroad/CodeMirror2
fourchette/CodeMirror2
fpo123/CodeMirror2
fprochazka/CodeMirror2
frawa/TestCodeMirror2
fzzr-/CodeMirror2
galambalazs/CodeMirror2
gavriguy/CodeMirror2
greengiant/CodeMirror2
gzdw/CodeMirror2
hans/CodeMirror2
hanxianlong/CodeMirror2
ibdknox/CodeMirror
idflood/CodeMirror2
iee/CodeMirror2
infinnity/CodeMirror2
ingrid/CodeMirror2
j6mes/CodeMirror2
jankeromnes/CodeMirror
jasondavis/CodeMirror2
jbrinkman/CodeMirror2
jem/CodeMirror2
jenlure/CodeMirror2
jimmyoneill/CodeMirror2
jmwong/CodeMirror2
jongalloway/CodeMirror2
jots/CodeMirror2
joycse06/CodeMirror2
jurisv/CodeMirror2
kaniga/CodeMirror2
kasei/CodeMirror2
kjetilk/CodeMirror2
koide/CodeMirror2
koops/CodeMirror2
krockot/CodeMirror2
larscwallin/CodeMirror2
leafo/CodeMirror2
lgastako/CodeMirror2
lm/CodeMirror2
lopuhin/CodeMirror2
luojun/CodeMirror2
maks/CodeMirror2
mamboer/CodeMirror2
manyanlong/CodeMirror2
martn/CodeMirror2
massemanet/CodeMirror
maxkirsch/CodeMirror2
mb-crt/CodeMirror2
mbarkhau/CodeMirror2
mbrevoort/CodeMirror2-xquery
mcelrath/CodeMirror2
metzen/CodeMirror2
michalliu/CodeMirror2
michelemostarda/CodeMirror2
mimecuvalo/CodeMirror2
misfo/CodeMirror2
moon2l/CodeMirror2
movabletype/CodeMirror2
mozes/CodeMirror2
mwmessin/CodeMirror2
mwpark/CodeMirror2
mylittletools/CodeMirror2
mzero/CodeMirror2
nathansobo/CodeMirror2
nazriel/CodeMirror2
ndebeiss/CodeMirror2
nguillaumin/CodeMirror2
nitrous-io-zz/CodeMirror
njx/CodeMirror
nlwillia/CodeMirror2
nvdnkpr/CodeMirror2
onkis/CodeMirror2
oozou/CodeMirror2
openube/CodeMirror2
oxling/CodeMirror2
panchalmukundak/CodeMirror2
pavelfeldman/CodeMirror
peteguhl/CodeMirror2
peterarmstrong/CodeMirror2
peterkroon/CodeMirror2
pombredanne/CodeMirror2
pplaquette/CodeMirror2
purplecabbage/CodeMirror2
rascalmicro/CodeMirror2
rduenasf/CodeMirror2
robermorales/CodeMirror2
robhawkes/CodeMirror2
samuela/CodeMirror2
satchit/CodeMirror2
seanmcgary/CodeMirror2
siefkenj/CodeMirror2
simoneau/CodeMirror2
skirmish/CodeMirror2
skoon/CodeMirror2
sourcelair/CodeMirror
sparkartgroup-archive/CodeMirror2
strax/CodeMirror2
syntagmatic/CodeMirror2
tarr11/CodeMirror2
timelyportfolio/codemirrorR
timjb/CodeMirror
tpiccinini/CodeMirror2
treeform/CodeMirror2
ttscoff/CodeMirror2
tvoliter/CodeMirror2
uboness/CodeMirror2
utahguy/CodeMirror2
vegastexteditor/CodeMirror2
vestimir/CodeMirror2
vmx/CodeMirror2
vodori/CodeMirror2
waywardmonkeys/CodeMirror
whalefood/CodeMirror2
wmchristie/CodeMirror2
wwwlicious/CodeMirror2
xsocher/CodeMirror2
youngrok/CodeMirror2
zarazi/CodeMirror2
zires/CodeMirror2
zptcsoft/CodeMirror
Nothing to show
Choose a base branch
Nothing to show
Choose a Head Repository
codemirror/CodeMirror
Benvie/CodeMirror
BrendonSled/CodeMirror2
Brijen/CodeMirror2
CodePen/CodeMirrorEditor
DarioGT/CodeMirror2
GerHobbelt/CodeMirror2
GordonSmith/CodeMirror2
Gozala/CodeMirror
Kodowa/CodeMirror
MariusKarthaus/CodeMirror2
MichaelaIvanova/CodeMirror
NV/CodeMirror
Naatan/CodeMirror2
Nahrae/CodeMirror
Necrathex/CodeMirror2
NikhilS/CodeMirror2
Page-/CodeMirror2
ProPuke/CodeMirror2
Raynes/CodeMirror2
SimonWaldherrArchive/CodeMirror2
Suor/CodeMirror2
TheColorRed/CodeMirror2
TypedLambda/CodeMirror2
Visheshk/CodeMirror2
WebKutir/CodeMirror2
WolfgangKluge/CodeMirror2
achicu/CodeMirror2
adam-singer/CodeMirror2
adanlobato/CodeMirror2
adobe/CodeMirror2
aklaswad/CodeMirror2
alexey-k/CodeMirror2
amphro/CodeMirror2
ananyasen/CodeMirror2
andrecharland/CodeMirror2
ankit/CodeMirror2
areos/CodeMirror2
atul-bhouraskar/CodeMirror2
axtro/CodeMirror2
ayachi/CodeMirror2
benbunk/CodeMirror2
bengillies/CodeMirror2
billortell/CodeMirror2
blackvladimir/CodeMirror2
bnowel/CodeMirror2
borawjm/CodeMirror2
botelho/CodeMirror
bridger/CodeMirror2
bsletten/CodeMirror2
capacman/CodeMirror2
captn3m0/CodeMirror2
cethap/CodeMirror2
charles-cai/CodeMirror2
charlieroberts/CodeMirror2
chendeng/CodeMirror2
chris-morgan/CodeMirror2
cicloid/CodeMirror2
ciptard/CodeMirror2
clarkbox/CodeMirror2
clemos/CodeMirror2
cliffkoh/CodeMirror2
cloudgiant/CodeMirror2
codio/CodeMirror
contributed/CodeMirror2
dbja/CodeMirror2
deebugger/CodeMirror2
djiang/CodeMirror2
dparnell/CodeMirror2
durdn/CodeMirror2
dxw/CodeMirror2
dynosmurf/CodeMirror2
dyoo/CodeMirror2
ekhaled/CodeMirror2
espadrine/CodeMirror
est/CodeMirror2
existdissolve/CodeMirror2
fbuchinger/CodeMirror2
felmoon/CodeMirror2
femhub/CodeMirror2
flyabroad/CodeMirror2
fourchette/CodeMirror2
fpo123/CodeMirror2
fprochazka/CodeMirror2
frawa/TestCodeMirror2
fzzr-/CodeMirror2
galambalazs/CodeMirror2
gavriguy/CodeMirror2
greengiant/CodeMirror2
gzdw/CodeMirror2
hans/CodeMirror2
hanxianlong/CodeMirror2
ibdknox/CodeMirror
idflood/CodeMirror2
iee/CodeMirror2
infinnity/CodeMirror2
ingrid/CodeMirror2
j6mes/CodeMirror2
jankeromnes/CodeMirror
jasondavis/CodeMirror2
jbrinkman/CodeMirror2
jem/CodeMirror2
jenlure/CodeMirror2
jimmyoneill/CodeMirror2
jmwong/CodeMirror2
jongalloway/CodeMirror2
jots/CodeMirror2
joycse06/CodeMirror2
jurisv/CodeMirror2
kaniga/CodeMirror2
kasei/CodeMirror2
kjetilk/CodeMirror2
koide/CodeMirror2
koops/CodeMirror2
krockot/CodeMirror2
larscwallin/CodeMirror2
leafo/CodeMirror2
lgastako/CodeMirror2
lm/CodeMirror2
lopuhin/CodeMirror2
luojun/CodeMirror2
maks/CodeMirror2
mamboer/CodeMirror2
manyanlong/CodeMirror2
martn/CodeMirror2
massemanet/CodeMirror
maxkirsch/CodeMirror2
mb-crt/CodeMirror2
mbarkhau/CodeMirror2
mbrevoort/CodeMirror2-xquery
mcelrath/CodeMirror2
metzen/CodeMirror2
michalliu/CodeMirror2
michelemostarda/CodeMirror2
mimecuvalo/CodeMirror2
misfo/CodeMirror2
moon2l/CodeMirror2
movabletype/CodeMirror2
mozes/CodeMirror2
mwmessin/CodeMirror2
mwpark/CodeMirror2
mylittletools/CodeMirror2
mzero/CodeMirror2
nathansobo/CodeMirror2
nazriel/CodeMirror2
ndebeiss/CodeMirror2
nguillaumin/CodeMirror2
nitrous-io-zz/CodeMirror
njx/CodeMirror
nlwillia/CodeMirror2
nvdnkpr/CodeMirror2
onkis/CodeMirror2
oozou/CodeMirror2
openube/CodeMirror2
oxling/CodeMirror2
panchalmukundak/CodeMirror2
pavelfeldman/CodeMirror
peteguhl/CodeMirror2
peterarmstrong/CodeMirror2
peterkroon/CodeMirror2
pombredanne/CodeMirror2
pplaquette/CodeMirror2
purplecabbage/CodeMirror2
rascalmicro/CodeMirror2
rduenasf/CodeMirror2
robermorales/CodeMirror2
robhawkes/CodeMirror2
samuela/CodeMirror2
satchit/CodeMirror2
seanmcgary/CodeMirror2
siefkenj/CodeMirror2
simoneau/CodeMirror2
skirmish/CodeMirror2
skoon/CodeMirror2
sourcelair/CodeMirror
sparkartgroup-archive/CodeMirror2
strax/CodeMirror2
syntagmatic/CodeMirror2
tarr11/CodeMirror2
timelyportfolio/codemirrorR
timjb/CodeMirror
tpiccinini/CodeMirror2
treeform/CodeMirror2
ttscoff/CodeMirror2
tvoliter/CodeMirror2
uboness/CodeMirror2
utahguy/CodeMirror2
vegastexteditor/CodeMirror2
vestimir/CodeMirror2
vmx/CodeMirror2
vodori/CodeMirror2
waywardmonkeys/CodeMirror
whalefood/CodeMirror2
wmchristie/CodeMirror2
wwwlicious/CodeMirror2
xsocher/CodeMirror2
youngrok/CodeMirror2
zarazi/CodeMirror2
zires/CodeMirror2
zptcsoft/CodeMirror
Nothing to show
Choose a head branch
Nothing to show
15
contributors
Commits on Oct 20, 2014
|
|
marijnh |
Bump version number post-4.7
|
8f52819
|
|||
|
|
marijnh |
Saturate logo a little
|
e1289d8
|
Commits on Oct 22, 2014
|
|
randyburden + marijnh |
[overlay mode demo] Fixed bug which highlighted the rest of the line
If "{{" was found, the code would highlight the rest of the line
regardless if a matching "}}" or "}}}" was found. |
9ca51f3
|
|||
|
|
jparmenter + marijnh |
[gfm mode] Added strikethrough implementation
|
08183e4
|
|||
|
|
marijnh |
Don't re-highlight lines that were highlighted during drawing
|
7e9080a
|
Commits on Oct 23, 2014
|
|
marijnh |
[solarized theme] Remove tab background character
It doesn't belong in a theme. |
fb86924
|
Commits on Oct 24, 2014
|
|
mightyguava |
[vim] Fix bug that vim mode could not be disabled
|
7206ccc
|
|||
|
|
nightwing + mightyguava |
[vim] simplify selectBlock function
|
b216b2a
|
|||
|
|
marijnh |
Link to new discussion forum
|
56dc38e
|
Commits on Oct 25, 2014
|
|
nightwing + mightyguava |
[vim] improve handling of external selections
|
eac6c9b
|
Commits on Oct 27, 2014
Commits on Oct 28, 2014
|
|
marijnh |
Support attach and detach methods for key maps
And adjust vim mode to use these. |
f1870d8
|
|||
|
|
marijnh |
Allow non-normalized keys and multi-stroke keys in keymaps
As long as CodeMirror.normalizeKeyMap is called on them before they are used. This interface is a little weird, but backwards-compatible. |
b077d68
|
|||
|
|
marijnh |
Update the manual to reflect new keymap situation
|
94afd11
|
Commits on Oct 29, 2014
Commits on Oct 30, 2014
|
|
marijnh |
Work around Webkit wrapping issue
Issue #2901 |
aaec99e
|
Commits on Oct 31, 2014
|
|
heppe |
Workaround for an error in getting to insert mode. It was very diffic…
…ult to reproduce, and I don't know what led to it, but the ">" mark was set but returned undefined when find() was called. This should work around the problem if it happens again. |
117e252
|
Commits on Nov 02, 2014
|
|
mightyguava |
[vim] Make vim fail more gracefully
|
2b8106f
|
Commits on Nov 03, 2014
Commits on Nov 04, 2014
|
|
MarcelGerber + marijnh |
Add getLineTokens method
|
da3e8f2
|
|||
|
|
marijnh |
Clean up getLineTokens, add test
Issue #2908 |
71ef0cf
|
|||
|
|
marijnh |
[xml-hint addon] Properly complete tags when directly after >
|
5a400b6
|
Commits on Nov 06, 2014
Commits on Nov 07, 2014
|
|
marijnh |
[authors list] Add a name
|
dbd3381
|
|||
|
|
dalejung + marijnh |
[markdown mode] Properly import mode/meta dependency
Issue #2914 |
2521014
|
|||
|
|
marijnh |
[project page] Remove confusing option from example
You won't get much effect from setting the mode option when no modes are loaded. Issue #2909 |
69b4a9c
|
|||
|
|
marijnh |
Add experimental scrollCursorIntoView event
Issue #2912 |
e2962a5
|
Commits on Nov 11, 2014
Commits on Nov 12, 2014
|
|
marijnh |
[ruby mode] Remove obsolete license link
|
2024a3f
|
|||
|
|
marijnh |
Allow keymaps to have a call property, which is called to look up bin…
…dings Issue #2915 |
357485b
|
|||
|
|
gkoberger + marijnh |
[clike mode] Add Objective-C Support
|
199c90e
|
|||
|
|
marijnh |
[clike mode] Integrate Objective C dialect
Issue #2920 |
97f6064
|
|||
|
|
marijnh |
Allow styling of line gutter backgrounds
Also add support for "gutter" in add/removeLineClass. |
8d159b6
|
Commits on Nov 15, 2014
|
|
marijnh |
Suppress error in IE8/9 when initializing detached
|
fc54c02
|
Commits on Nov 17, 2014
|
|
marijnh |
Fix rmClass
Add tests |
4bce534
|
Commits on Nov 19, 2014
|
|
mightyguava |
[vim] Visual mode rewrite
I'm rewriting the way that visual mode is written to: 1. Fix some tricky bugs, like #2913, and a couple I uncovered while doing this. (Unit tests updated) 2. Significantly simplify blockwise visual mode The core of the changes here is that I'm creating a vim selection model. The selection model consists of ``` vim.sel.head vim.sel.anchor vim.visualMode vim.visualLine vim.visualBlock ``` I'm creating a 2-way binding between the vim and codemirror selection models. All motions now rely only on the vim selection model. Operators and actions still rely on the codemirror selection model, since they operate directly on the text. Sorry for the gigantic change but I couldn't make it any smaller and still pass all the tests... I'm planning to delete `getSelectedAreaRange`, `getLastSelectedAreaRange`, and `selectBlock` in future changes as they are obsolete now that vim keeps its own selection model. An added bonus here is that visual line mode now has a cursor that can be moved. |
c78d76c
|
Commits on Nov 21, 2014
|
|
marijnh |
[sql mode] Remove outdated comment
|
29b78d2
|
|||
|
|
marijnh |
[stex mode] Sanitize comment parsing
|
ff4e640
|
|||
|
|
marijnh |
[stex mode] Set to two-space indentation
|
21576a3
|
|||
|
|
marijnh |
[stex mode] Reset tokenizer after blank line
This prevents a stray $ from setting the whole rest of the document to math mode. Closes #2928 |
ccddb1e
|
|||
|
|
marijnh |
[loadmode addon] Work with requirejs
|
13af2af
|
Commits on Nov 22, 2014
|
|
bollwyvl + marijnh |
[sparql mode] Update with more details from 1.1
- more style classes: operator, builtin, meta, brackets - literal metas (@ and ^^) - many more operators - mime type and extension from spec |
fc25da4
|
|||
|
|
bollwyvl + marijnh |
[sparql mode] Property paths
|
096a20a
|
|||
|
|
marijnh |
Mark version 4.8.0
|
be9e01e
|
Unified
Split
Showing
with
2,226 additions
and 1,329 deletions.
- +11 −0 AUTHORS
- +2 −2 CONTRIBUTING.md
- +1 −1 addon/edit/closebrackets.js
- +9 −9 addon/hint/javascript-hint.js
- +9 −1 addon/hint/xml-hint.js
- +19 −16 addon/mode/loadmode.js
- +3 −3 addon/mode/overlay.js
- +1 −1 bower.json
- +1 −1 demo/closebrackets.html
- +4 −3 demo/mustache.html
- +4 −7 demo/sublime.html
- +1 −1 demo/vim.html
- +3 −0 doc/compress.html
- +1 −1 doc/docs.css
- BIN doc/logo.png
- +51 −23 doc/manual.html
- +4 −0 doc/realworld.html
- +12 −0 doc/releases.html
- +3 −3 index.html
- +19 −28 keymap/emacs.js
- +14 −15 keymap/sublime.js
- +694 −752 keymap/vim.js
- +11 −2 lib/codemirror.css
- +229 −137 lib/codemirror.js
- +15 −0 mode/clike/clike.js
- +26 −0 mode/clike/index.html
- +1 −1 mode/css/css.js
- +80 −0 mode/dockerfile/dockerfile.js
- +72 −0 mode/dockerfile/index.html
- +2 −1 mode/gfm/gfm.js
- +11 −0 mode/gfm/index.html
- +49 −0 mode/gfm/test.js
- +2 −2 mode/htmlmixed/htmlmixed.js
- +290 −0 mode/idl/idl.js
- +64 −0 mode/idl/index.html
- +3 −0 mode/index.html
- +62 −55 mode/markdown/markdown.js
- +38 −22 mode/meta.js
- +1 −2 mode/ruby/index.html
- +14 −6 mode/sparql/index.html
- +19 −5 mode/sparql/sparql.js
- +0 −2 mode/sql/sql.js
- +184 −193 mode/stex/stex.js
- +6 −1 mode/yaml/yaml.js
- +1 −1 package.json
- +1 −1 test/lint/lint.js
- +42 −1 test/test.js
- +136 −24 test/vim_test.js
- +1 −1 theme/3024-day.css
- +0 −5 theme/solarized.css
View
11
AUTHORS
| @@ -32,9 +32,11 @@ anaran | ||
| AndersMad | ||
| Anders Nawroth | ||
| Anderson Mesquita | ||
| +Andrea G | ||
| Andreas Reischuck | ||
| Andre von Houck | ||
| Andrey Fedorov | ||
| +Andrey Klyuchnikov | ||
| Andrey Lushnikov | ||
| Andy Joslin | ||
| Andy Kimball | ||
| @@ -86,6 +88,7 @@ ComFreek | ||
| Curtis Gagliardi | ||
| dagsta | ||
| daines | ||
| +Dale Jung | ||
| Dan Heberden | ||
| Daniel, Dao Quang Minh | ||
| Daniele Di Sarli | ||
| @@ -144,6 +147,7 @@ Golevka | ||
| Gordon Smith | ||
| Grant Skinner | ||
| greengiant | ||
| +Gregory Koberger | ||
| Guillaume Massé | ||
| Guillaume Massé | ||
| Gustavo Rodrigues | ||
| @@ -176,6 +180,7 @@ jankeromnes | ||
| Jan Keromnes | ||
| Jan Odvarko | ||
| Jan T. Sott | ||
| +Jared Forsyth | ||
| Jason | ||
| Jason Grout | ||
| Jason Johnston | ||
| @@ -186,6 +191,7 @@ Jean Boussier | ||
| jeffkenton | ||
| Jeff Pickhardt | ||
| jem (graphite) | ||
| +Jeremy Parmenter | ||
| Jochen Berger | ||
| Johan Ask | ||
| John Connor | ||
| @@ -229,6 +235,7 @@ LM | ||
| lochel | ||
| Lorenzo Stoakes | ||
| Luciano Longo | ||
| +Luke Stagner | ||
| lynschinzer | ||
| Maksim Lin | ||
| Maksym Taran | ||
| @@ -288,8 +295,10 @@ nextrevision | ||
| nguillaumin | ||
| Ng Zhi An | ||
| Nicholas Bollweg | ||
| +Nicholas Bollweg (Nick) | ||
| Nick Small | ||
| Niels van Groningen | ||
| +nightwing | ||
| Nikita Beloglazov | ||
| Nikita Vasilyev | ||
| Nikolay Kostov | ||
| @@ -316,6 +325,7 @@ prasanthj | ||
| Prasanth J | ||
| Radek Piórkowski | ||
| Rahul | ||
| +Randy Burden | ||
| Randy Edmunds | ||
| Rasmus Erik Voel Jensen | ||
| Richard van der Meer | ||
| @@ -335,6 +345,7 @@ satchmorun | ||
| sathyamoorthi | ||
| SCLINIC\jdecker | ||
| Scott Aikin | ||
| +Scott Goodhew | ||
| Sebastian Zaha | ||
| shaund | ||
| shaun gilchrist | ||
View
4
CONTRIBUTING.md
| @@ -7,7 +7,7 @@ | ||
| ## Getting help | ||
| Community discussion, questions, and informal bug reporting is done on the | ||
| -[CodeMirror Google group](http://groups.google.com/group/codemirror). | ||
| +[discuss.CodeMirror forum](http://discuss.codemirror.net). | ||
| ## Submitting bug reports | ||
| @@ -17,7 +17,7 @@ reporting a bug, read these pointers. | ||
| **Note:** The issue tracker is for *bugs*, not requests for help. Questions | ||
| should be asked on the | ||
| -[CodeMirror Google group](http://groups.google.com/group/codemirror) instead. | ||
| +[discuss.CodeMirror forum](http://discuss.codemirror.net) instead. | ||
| ### Reporting bugs effectively | ||
View
2
addon/edit/closebrackets.js
| @@ -71,7 +71,7 @@ | ||
| }; | ||
| var closingBrackets = ""; | ||
| for (var i = 0; i < pairs.length; i += 2) (function(left, right) { | ||
| - if (left != right) closingBrackets += right; | ||
| + closingBrackets += right; | ||
| map["'" + left + "'"] = function(cm) { | ||
| if (cm.getOption("disableInput")) return CodeMirror.Pass; | ||
| var ranges = cm.listSelections(), type, next; | ||
View
18
addon/hint/javascript-hint.js
| @@ -93,7 +93,7 @@ | ||
| "if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes").split(" "); | ||
| function getCompletions(token, context, keywords, options) { | ||
| - var found = [], start = token.string; | ||
| + var found = [], start = token.string, global = options && options.globalScope || window; | ||
| function maybeAdd(str) { | ||
| if (str.lastIndexOf(start, 0) == 0 && !arrayContains(found, str)) found.push(str); | ||
| } | ||
| @@ -112,28 +112,28 @@ | ||
| if (options && options.additionalContext) | ||
| base = options.additionalContext[obj.string]; | ||
| if (!options || options.useGlobalScope !== false) | ||
| - base = base || window[obj.string]; | ||
| + base = base || global[obj.string]; | ||
| } else if (obj.type == "string") { | ||
| base = ""; | ||
| } else if (obj.type == "atom") { | ||
| base = 1; | ||
| } else if (obj.type == "function") { | ||
| - if (window.jQuery != null && (obj.string == '$' || obj.string == 'jQuery') && | ||
| - (typeof window.jQuery == 'function')) | ||
| - base = window.jQuery(); | ||
| - else if (window._ != null && (obj.string == '_') && (typeof window._ == 'function')) | ||
| - base = window._(); | ||
| + if (global.jQuery != null && (obj.string == '$' || obj.string == 'jQuery') && | ||
| + (typeof global.jQuery == 'function')) | ||
| + base = global.jQuery(); | ||
| + else if (global._ != null && (obj.string == '_') && (typeof global._ == 'function')) | ||
| + base = global._(); | ||
| } | ||
| while (base != null && context.length) | ||
| base = base[context.pop().string]; | ||
| if (base != null) gatherCompletions(base); | ||
| } else { | ||
| - // If not, just look in the window object and any local scope | ||
| + // If not, just look in the global object and any local scope | ||
| // (reading into JS mode internals to get at the local and global variables) | ||
| for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name); | ||
| for (var v = token.state.globalVars; v; v = v.next) maybeAdd(v.name); | ||
| if (!options || options.useGlobalScope !== false) | ||
| - gatherCompletions(window); | ||
| + gatherCompletions(global); | ||
| forEach(keywords, maybeAdd); | ||
| } | ||
| return found; | ||
View
10
addon/hint/xml-hint.js
| @@ -18,10 +18,17 @@ | ||
| var quote = (options && options.quoteChar) || '"'; | ||
| if (!tags) return; | ||
| var cur = cm.getCursor(), token = cm.getTokenAt(cur); | ||
| + if (/^<\/?$/.test(token.string) && token.end == cur.ch) { | ||
| + var nextToken = cm.getTokenAt(Pos(cur.line, cur.ch + 1)); | ||
| + if (nextToken.start == cur.ch && /\btag\b/.test(nextToken.type)) | ||
| + token = nextToken; | ||
| + } | ||
| var inner = CodeMirror.innerMode(cm.getMode(), token.state); | ||
| if (inner.mode.name != "xml") return; | ||
| var result = [], replaceToken = false, prefix; | ||
| - var tag = /\btag\b/.test(token.type), tagName = tag && /^\w/.test(token.string), tagStart; | ||
| + var tag = /\btag\b/.test(token.type) && !/>$/.test(token.string); | ||
| + var tagName = tag && /^\w/.test(token.string), tagStart; | ||
| + | ||
| if (tagName) { | ||
| var before = cm.getLine(cur.line).slice(Math.max(0, token.start - 2), token.start); | ||
| var tagType = /<\/$/.test(before) ? "close" : /<$/.test(before) ? "open" : null; | ||
| @@ -31,6 +38,7 @@ | ||
| } else if (tag && token.string == "</") { | ||
| tagType = "close"; | ||
| } | ||
| + | ||
| if (!tag && !inner.state.tagName || tagType) { | ||
| if (tagName) | ||
| prefix = token.string; | ||
View
35
addon/mode/loadmode.js
| @@ -3,12 +3,12 @@ | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| - mod(require("../../lib/codemirror")); | ||
| + mod(require("../../lib/codemirror"), "cjs"); | ||
| else if (typeof define == "function" && define.amd) // AMD | ||
| - define(["../../lib/codemirror"], mod); | ||
| + define(["../../lib/codemirror"], function(CM) { mod(CM, "amd"); }); | ||
| else // Plain browser env | ||
| - mod(CodeMirror); | ||
| -})(function(CodeMirror) { | ||
| + mod(CodeMirror, "plain"); | ||
| +})(function(CodeMirror, env) { | ||
| if (!CodeMirror.modeURL) CodeMirror.modeURL = "../mode/%N/%N.js"; | ||
| var loading = {}; | ||
| @@ -35,21 +35,24 @@ | ||
| if (CodeMirror.modes.hasOwnProperty(mode)) return ensureDeps(mode, cont); | ||
| if (loading.hasOwnProperty(mode)) return loading[mode].push(cont); | ||
| - var script = document.createElement("script"); | ||
| - script.src = CodeMirror.modeURL.replace(/%N/g, mode); | ||
| - var others = document.getElementsByTagName("script")[0]; | ||
| - others.parentNode.insertBefore(script, others); | ||
| - var list = loading[mode] = [cont]; | ||
| - var count = 0, poll = setInterval(function() { | ||
| - if (++count > 100) return clearInterval(poll); | ||
| - if (CodeMirror.modes.hasOwnProperty(mode)) { | ||
| - clearInterval(poll); | ||
| - loading[mode] = null; | ||
| + var file = CodeMirror.modeURL.replace(/%N/g, mode); | ||
| + if (env == "plain") { | ||
| + var script = document.createElement("script"); | ||
| + script.src = file; | ||
| + var others = document.getElementsByTagName("script")[0]; | ||
| + var list = loading[mode] = [cont]; | ||
| + CodeMirror.on(script, "load", function() { | ||
| ensureDeps(mode, function() { | ||
| for (var i = 0; i < list.length; ++i) list[i](); | ||
| }); | ||
| - } | ||
| - }, 200); | ||
| + }); | ||
| + others.parentNode.insertBefore(script, others); | ||
| + } else if (env == "cjs") { | ||
| + require(file); | ||
| + cont(); | ||
| + } else if (env == "amd") { | ||
| + requirejs([file], cont); | ||
| + } | ||
| }; | ||
| CodeMirror.autoLoadMode = function(instance, mode) { | ||
View
6
addon/mode/overlay.js
| @@ -28,7 +28,7 @@ CodeMirror.overlayMode = function(base, overlay, combine) { | ||
| overlay: CodeMirror.startState(overlay), | ||
| basePos: 0, baseCur: null, | ||
| overlayPos: 0, overlayCur: null, | ||
| - lineSeen: null | ||
| + streamSeen: null | ||
| }; | ||
| }, | ||
| copyState: function(state) { | ||
| @@ -41,9 +41,9 @@ CodeMirror.overlayMode = function(base, overlay, combine) { | ||
| }, | ||
| token: function(stream, state) { | ||
| - if (stream.sol() || stream.string != state.lineSeen || | ||
| + if (stream != state.streamSeen || | ||
| Math.min(state.basePos, state.overlayPos) < stream.start) { | ||
| - state.lineSeen = stream.string; | ||
| + state.streamSeen = stream; | ||
| state.basePos = state.overlayPos = stream.start; | ||
| } | ||
View
2
bower.json
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "codemirror", | ||
| - "version":"4.7.0", | ||
| + "version":"4.8.0", | ||
| "main": ["lib/codemirror.js", "lib/codemirror.css"], | ||
| "ignore": [ | ||
| "**/.*", | ||
View
2
demo/closebrackets.html
| @@ -7,7 +7,7 @@ | ||
| <link rel="stylesheet" href="../lib/codemirror.css"> | ||
| <script src="../lib/codemirror.js"></script> | ||
| <script src="../addon/edit/closebrackets.js"></script> | ||
| -<script src="../mode/xml/xml.js"></script> | ||
| +<script src="../mode/javascript/javascript.js"></script> | ||
| <style type="text/css"> | ||
| .CodeMirror {border-top: 1px solid #888; border-bottom: 1px solid #888;} | ||
| </style> | ||
View
7
demo/mustache.html
| @@ -46,9 +46,10 @@ | ||
| var ch; | ||
| if (stream.match("{{")) { | ||
| while ((ch = stream.next()) != null) | ||
| - if (ch == "}" && stream.next() == "}") break; | ||
| - stream.eat("}"); | ||
| - return "mustache"; | ||
| + if (ch == "}" && stream.next() == "}") { | ||
| + stream.eat("}"); | ||
| + return "mustache"; | ||
| + } | ||
| } | ||
| while (stream.next() != null && !stream.match("{{", false)) {} | ||
| return null; | ||
View
11
demo/sublime.html
| @@ -53,14 +53,11 @@ | ||
| <script> | ||
| var value = "// The bindings defined specifically in the Sublime Text mode\nvar bindings = {\n"; | ||
| - var map = CodeMirror.keyMap.sublime, mapK = CodeMirror.keyMap["sublime-Ctrl-K"]; | ||
| + var map = CodeMirror.keyMap.sublime; | ||
| for (var key in map) { | ||
| - if (key != "Ctrl-K" && key != "fallthrough" && (!/find/.test(map[key]) || /findUnder/.test(map[key]))) | ||
| - value += " \"" + key + "\": \"" + map[key] + "\",\n"; | ||
| - } | ||
| - for (var key in mapK) { | ||
| - if (key != "auto" && key != "nofallthrough") | ||
| - value += " \"Ctrl-K " + key + "\": \"" + mapK[key] + "\",\n"; | ||
| + var val = map[key]; | ||
| + if (key != "fallthrough" && val != "..." && (!/find/.test(val) || /findUnder/.test(val))) | ||
| + value += " \"" + key + "\": \"" + val + "\",\n"; | ||
| } | ||
| value += "}\n\n// The implementation of joinLines\n"; | ||
| value += CodeMirror.commands.joinLines.toString().replace(/^function\s*\(/, "function joinLines(").replace(/\n /g, "\n") + "\n"; | ||
View
2
demo/vim.html
| @@ -80,7 +80,7 @@ | ||
| var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | ||
| lineNumbers: true, | ||
| mode: "text/x-csrc", | ||
| - vimMode: true, | ||
| + keyMap: "vim", | ||
| matchBrackets: true, | ||
| showCursorWhenSelecting: true | ||
| }); | ||
View
3
doc/compress.html
| @@ -36,6 +36,7 @@ | ||
| <input type="hidden" id="download" name="download" value="codemirror-compressed.js"/> | ||
| <p>Version: <select id="version" onchange="setVersion(this);" style="padding: 1px;"> | ||
| <option value="http://codemirror.net/">HEAD</option> | ||
| + <option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=4.8.0;f=">4.8</option> | ||
| <option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=4.7.0;f=">4.7</option> | ||
| <option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=4.6.0;f=">4.6</option> | ||
| <option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=4.5.0;f=">4.5</option> | ||
| @@ -106,6 +107,7 @@ | ||
| <option value="http://codemirror.net/mode/d/d.js">d.js</option> | ||
| <option value="http://codemirror.net/mode/diff/diff.js">diff.js</option> | ||
| <option value="http://codemirror.net/mode/django/django.js">django.js</option> | ||
| + <option value="http://codemirror.net/mode/dockerfile/dockerfile.js">dockerfile.js</option> | ||
| <option value="http://codemirror.net/mode/dtd/dtd.js">dtd.js</option> | ||
| <option value="http://codemirror.net/mode/dylan/dylan.js">dylan.js</option> | ||
| <option value="http://codemirror.net/mode/ecl/ecl.js">ecl.js</option> | ||
| @@ -123,6 +125,7 @@ | ||
| <option value="http://codemirror.net/mode/htmlembedded/htmlembedded.js">htmlembedded.js</option> | ||
| <option value="http://codemirror.net/mode/htmlmixed/htmlmixed.js">htmlmixed.js</option> | ||
| <option value="http://codemirror.net/mode/http/http.js">http.js</option> | ||
| + <option value="http://codemirror.net/mode/idl/idl.js">idl.js</option> | ||
| <option value="http://codemirror.net/mode/jade/jade.js">jade.js</option> | ||
| <option value="http://codemirror.net/mode/javascript/javascript.js">javascript.js</option> | ||
| <option value="http://codemirror.net/mode/jinja2/jinja2.js">jinja2.js</option> | ||
View
2
doc/docs.css
| @@ -29,7 +29,7 @@ article > h2:first-child, section:first-child > h2 { margin-top: 0; } | ||
| margin-right: 12px; | ||
| margin-top: 0; | ||
| margin-bottom: 2px; | ||
| - color: #E30808; | ||
| + color: #d30707; | ||
| letter-spacing: .5px; | ||
| } | ||
View
BIN
doc/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.