Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Theme Editor
Author Message
n00dles101 Offline
Administrator

Posts: 1,039
Joined: Aug 2009
2011-12-20 10:57:05
Theme Editor
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.

My Github Repos: Github
Website: DigiMute
Visit this user's website Find all posts by this user Quote this message in a reply
Connie Offline
Super Moderator

Posts: 2,859
Joined: Feb 2011
2011-12-20 17:27:19
Theme Editor
that sounds really great, I will check it

which version is it?

|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
Find all posts by this user Quote this message in a reply
n00dles101 Offline
Administrator

Posts: 1,039
Joined: Aug 2009
2011-12-20 20:30:37
Theme Editor
@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.

My Github Repos: Github
Website: DigiMute
Visit this user's website Find all posts by this user Quote this message in a reply
Connie Offline
Super Moderator

Posts: 2,859
Joined: Feb 2011
2011-12-20 21:16:21
Theme Editor
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

|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
Find all posts by this user Quote this message in a reply
n00dles101 Offline
Administrator

Posts: 1,039
Joined: Aug 2009
2011-12-20 21:18:12
Theme Editor
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.

My Github Repos: Github
Website: DigiMute
Visit this user's website Find all posts by this user Quote this message in a reply
calmos Offline
Junior Member

Posts: 26
Joined: May 2011
2011-12-21 22:41:35
Theme Editor
Very promising Smile)
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.
Find all posts by this user Quote this message in a reply
Carlos Offline
GS Freak

Posts: 1,969
Joined: Mar 2010
2011-12-23 07:29:04
Theme Editor
FYI there already existed a nice plugin by mvlcek that does more or less the same, but also for component editing: Theme highlighter

- News Manager 2.4.4 (stable) docs + additional plugins
- NEW! News Manager beta 18 (info+download)
Visit this user's website Find all posts by this user Quote this message in a reply
datiswous Offline
member

Posts: 492
Joined: Feb 2011
2012-02-24 23:23:33
Theme Editor
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
(This post was last modified: 2012-02-26 08:53:23 by netmaster.)
Find all posts by this user Quote this message in a reply
shawn_a Offline
Developer

Posts: 3,417
Joined: Sep 2011
2012-02-25 00:09:40
Theme Editor
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.

NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Visit this user's website Find all posts by this user Quote this message in a reply
Carlos Offline
GS Freak

Posts: 1,969
Joined: Mar 2010
2012-02-26 08:04:18
Theme Editor
shawn_a wrote:also a hook to add it to plugin code fields would be awesome as well.
That's a very good idea!

- News Manager 2.4.4 (stable) docs + additional plugins
- NEW! News Manager beta 18 (info+download)
Visit this user's website Find all posts by this user Quote this message in a reply
Carlos Offline
GS Freak

Posts: 1,969
Joined: Mar 2010
2012-02-26 08:13:25
Theme Editor
@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.)

- News Manager 2.4.4 (stable) docs + additional plugins
- NEW! News Manager beta 18 (info+download)
Visit this user's website Find all posts by this user Quote this message in a reply
mvlcek Offline
Posting Freak

Posts: 1,914
Joined: Jan 2011
2012-02-26 08:45:49
Theme Editor
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.

I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Visit this user's website Find all posts by this user Quote this message in a reply
datiswous Offline
member

Posts: 492
Joined: Feb 2011
2012-02-26 09:15:39
Theme Editor
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?
Find all posts by this user Quote this message in a reply
5wooley4 Offline
Junior Member

Posts: 21
Joined: Jan 2012
2012-04-08 12:38:13
Theme Editor
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.
Visit this user's website Find all posts by this user Quote this message in a reply
datiswous Offline
member

Posts: 492
Joined: Feb 2011
2012-04-13 22:09:01
Theme Editor
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/
(This post was last modified: 2012-04-13 22:12:11 by netmaster.)
Find all posts by this user Quote this message in a reply
Carlos Offline
GS Freak

Posts: 1,969
Joined: Mar 2010
2012-04-15 19:06:08
Theme Editor
Found another issue: if you select text, it is not highlighted, doesn't change its background colour.

- News Manager 2.4.4 (stable) docs + additional plugins
- NEW! News Manager beta 18 (info+download)
Visit this user's website Find all posts by this user Quote this message in a reply
Carlos Offline
GS Freak

Posts: 1,969
Joined: Mar 2010
2012-04-18 23:47:45
Theme Editor
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

- News Manager 2.4.4 (stable) docs + additional plugins
- NEW! News Manager beta 18 (info+download)
Visit this user's website Find all posts by this user Quote this message in a reply
n00dles101 Offline
Administrator

Posts: 1,039
Joined: Aug 2009
2012-04-19 01:14:29
Theme Editor
@Carlos, something wrong with the codemirror bundle, will have this fixed tonight.

My Github Repos: Github
Website: DigiMute
Visit this user's website Find all posts by this user Quote this message in a reply
n00dles101 Offline
Administrator

Posts: 1,039
Joined: Aug 2009
2012-04-19 08:21:19
Theme Editor
This should be sorted in the latest SVN version, it was a simple CSS issue...

My Github Repos: Github
Website: DigiMute
Visit this user's website Find all posts by this user Quote this message in a reply
Carlos Offline
GS Freak

Posts: 1,969
Joined: Mar 2010
2012-04-20 19:28:04
Theme Editor
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)

- News Manager 2.4.4 (stable) docs + additional plugins
- NEW! News Manager beta 18 (info+download)
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)

Contact Us | GetSimple | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication
Generate Leads from Documents vCard Hosting