Commit Graph

10 Commits

Author SHA1 Message Date
Matt Pass
fee53144d9 Code folding upon gutter click
New fileName var
CodeMirror lib used to allow folding of code on clicking gutter
HTML folds on <tags> and JS & PHP fold on {braces}
+ in gutter indicates folded area
2012-04-07 21:11:45 +01:00
Matt Pass
c758a2ff37 Gutter click now triggers code folding
Clicking gutter in CM editor triggers new code fold/expand function
2012-04-05 07:34:14 +01:00
Matt Pass
215229d051 Fix & improvements to end tag postfixing, tab key & removing old code
Code assist now won't add an end tag if yours starts with a / (ie, it's already an end tag)
Also won't add an end tag if yours starts with ? (ie, it's ending a PHP block: ?>)
Switched from using the htmlTagArray to determin an end tag, to the tagString var
CodeMirror 2.23 handles tabs in a different way, so extraKeys has been set up to handle differently to new default
Old code removed related to showing results on clicking (now handled onChange as that's more efficient)
2012-04-01 12:18:04 +01:00
Matt Pass
715a08f581 CSS Color Preview Added
Now calls the cssColorPreview function onCursorActivity of the cM instance
2012-03-25 16:37:43 +01:00
Matt Pass
4b0110b671 Keyup works with Code Assist
Only if Code Assist is on will the keyup event allow help with coding
2012-03-09 07:22:44 +00:00
Matt Pass
160c19397a Matching text function avail plus improvements & fixes to CM display
2 x JS scripts loaded from Code Mirrors lib plus the call to allow selected text matching
Different styling for visible & hidden classes
These classes mean not only faster tab switching but also fixes render problems on some computers
2012-03-02 15:11:05 +00:00
Matt Pass
20ae2296d3 CodeMirror now created as dynamic object
No longer creates 10 x instances
Instead creates CM objects (& cMActiveLine) on demand
All hardcoded refs from 1-10 removed, now dynamic
Additional code to stop it seeing just loaded files as changed
li tags are now also inline
2012-02-09 07:47:20 +00:00
Matt Pass
0772190fdd Span & H1-H7 end tags now appended inline
Span tags are now appended inline rather than with line feeds, to represent their default inline styling nature
H1-H7 tags now also appended inline
2012-02-03 07:57:59 +00:00
Matt Pass
813dd75bef ActiveLine & JS, CSS restrictions on code assist
ActiveLine CSS class added, shows this on cursor activity
Improvement to avoid doing this out on highlighting of text
Will no longer append end tags if in a JS or CSS file
a tags are also now appended inline, no line returns
2012-01-28 16:35:02 +00:00
Matt Pass
972a3434bc v0.5.0 update
Global variables removed from JS file
Plugins system evolved, now including setInterval
Seperate CodeMirror instances per tab
backupOpenFiles plugin created
Minor fixes & improvements
2012-01-20 09:55:29 +00:00