Posts: 1,108
Threads: 70
Joined: Aug 2009
With the new release of GetSimple 3.1 not too far away we have introduced a full theme editor in the system.
The following features have been enabled in the latest Beta Featured release r602.
Features of the new editor include;
- Full syntax highlighting for JS/PHP/HTML/CSS files
- Code folding, click the gutter or CTRL-Q to fold your code.
- Search and replace -
Ctrl-F / Cmd-F
Start searching
Ctrl-G / Cmd-G
Find next
Shift-Ctrl-G / Shift-Cmd-G
Find previous
Ctrl-R / Cmd-Option-F
Replace
Shift-Ctrl-R / Shift-Cmd-Option-F
Replace all
- Full screen editing , Press F11 (or ESC in Safari on Mac OS X) when cursor is in the editor to toggle full screen editing.
Posts: 2,928
Threads: 195
Joined: Feb 2011
that sounds really great, I will check it
which version is it?
Posts: 1,108
Threads: 70
Joined: Aug 2009
@Connie, its using Codemirror 2 and has been included in the last few beta releases.
This additonal features are only in the new Beta download r602.
Posts: 2,928
Threads: 195
Joined: Feb 2011
the official red download-button leads ot Beta-Version 594, that was misleading for me (I am not so familiar with github, sourceforge etc.)
Thanks for the info
Posts: 1,108
Threads: 70
Joined: Aug 2009
I'll get Chris to update that link.. I don't have access...
That version should have the basic editor, I've added these additions to the new version.
Posts: 26
Threads: 1
Joined: May 2011
Very promising )
For the time being, highlighting works well but the other ones do not.
I just tried this on a fresh GS 3.1 r602, using Firefox 9.0 and Chrome 16, Win XP.
Posts: 3,491
Threads: 106
Joined: Mar 2010
FYI there already existed a nice plugin by mvlcek that does more or less the same, but also for component editing: Theme highlighter
Posts: 1,247
Threads: 82
Joined: Feb 2011
2012-02-24, 23:23:33
(This post was last modified: 2012-02-26, 08:53:23 by netmaster.)
Code folding thing is cool.
Doe this also include a solution for the:
Quote:Maintaining Page Scroll Position after save or refresh
issue? (the issue is that it doesn't do so)
Edit: Nope
Posts: 6,266
Threads: 181
Joined: Sep 2011
Carlos Wrote:FYI there already existed a nice plugin by mvlcek that does more or less the same, but also for component editing: Theme highlighter
Yes, if you consider implementing this, I would definitively like to see it applied to all code inputs. I love my Theme highlighter + custom admin css. Components are necessary, also a hook to add it to plugin code fields would be awesome as well.
Posts: 3,491
Threads: 106
Joined: Mar 2010
shawn_a Wrote:also a hook to add it to plugin code fields would be awesome as well. That's a very good idea!
Posts: 3,491
Threads: 106
Joined: Mar 2010
@n00dles101
I'm afraid the theme editor is only working fine for css files - php and js files are not coloured properly.
Paste the code from e.g. template.php in http://codemirror.net/1/contrib/php/ and see the difference.
(I don't know codemirror, but it may be that you're not setting the mode argument or something, depending on the type of file.)
Posts: 2,094
Threads: 54
Joined: Jan 2011
Carlos Wrote:@n00dles101
I'm afraid the theme editor is only working fine for css files - php and js files are not coloured properly.
Paste the code from e.g. template.php in http://codemirror.net/1/contrib/php/ and see the difference.
(I don't know codemirror, but it may be that you're not setting the mode argument or something, depending on the type of file.)
I had to patch CodeMirror for the Theme Highlighter plugin to correctly work with e.g. inline php code.
Posts: 1,247
Threads: 82
Joined: Feb 2011
I updated mvlcek's Theme Highlighter plugin (and activated it), but now the code folding doesn't work anymore.
Wouldn't it be better to merge the features of mvlek's plugin into the core features instead of basically 2 projects?
Posts: 21
Threads: 4
Joined: Jan 2012
datiswous Wrote:Code folding thing is cool.
Doe this also include a solution for the:
Quote:Maintaining Page Scroll Position after save or refresh
issue? (the issue is that it doesn't do so)
Edit: Nope
I just wrote a plugin based on the code which saves through ajax. http://get-simple.info/extend/plugin/thajax/426/
Very nice editor by the way, I hope you don't mind that I based a lot of my code on it. Keep up the good work. Get-Simple is turning into my favorite CMS.
www.ericwooley.com
5wooley4@gmail.com - Let me know if you need any help with any of my plugins, or just help in general. I'll always help if i can.
Beware, Im just a drunken college student. I may throw up at any time.
Posts: 1,247
Threads: 82
Joined: Feb 2011
2012-04-13, 22:09:01
(This post was last modified: 2012-04-13, 22:12:11 by netmaster.)
5wooley4 Wrote:I just wrote a plugin based on the code which saves through ajax. http://get-simple.info/extend/plugin/thajax/426/
Very nice editor by the way, I hope you don't mind that I based a lot of my code on it. Keep up the good work. Get-Simple is turning into my favorite CMS.
You do know the (new) Get-Simple editor is based on Codemirror 2?:
http://codemirror.net/
Posts: 3,491
Threads: 106
Joined: Mar 2010
Found another issue: if you select text, it is not highlighted, doesn't change its background colour.
Posts: 3,491
Threads: 106
Joined: Mar 2010
Carlos Wrote:if you select text, it is not highlighted, doesn't change its background colour.
Did anyone check this? Happens to me with 3.1.1 beta, but not with 3.1
Posts: 1,108
Threads: 70
Joined: Aug 2009
@Carlos, something wrong with the codemirror bundle, will have this fixed tonight.
Posts: 1,108
Threads: 70
Joined: Aug 2009
This should be sorted in the latest SVN version, it was a simple CSS issue...
Posts: 3,491
Threads: 106
Joined: Mar 2010
It looks like it works ok when you select text across several lines, but if you only select some text in the current line, it is not highlighted (or maybe the selected text has the same background color as the active line: #F0FCFF)
|