Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2012-10-28 17:44:25

mrdale
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,202
Website

Re: spf_codemirror - syntax-highlighting and code-completion admin plugin

Standard CodeMirror Directory?

I wonder whether it may not be better to have this plugin work with a standard codeMirror directory so that TXP users can stay current with latest builds more easily.

This plugin uses 2.25 whereas the current version has moved to 2.3x which purportedly fixes bugs and adds features. Not sure the level of customization that has been done to cM…

Thoughts?

Last edited by mrdale (2012-10-28 17:46:07)

Offline

#22 2012-11-03 16:57:41

spiffin
Plugin Author
From: London, UK
Registered: 2004-06-08
Posts: 95
Website

Re: spf_codemirror - syntax-highlighting and code-completion admin plugin

@ Dale

Thanks for the full-screen addition.

FYI I’m currently updating my plugins for Txp 4.5.x – the next version of spf_codemirror will incorporate the latest version of Codemirror plus Emmet (the new replacement for Zen Coding). I’ll also look at a standard Codemirror directory.

Simon

Offline

#23 2012-11-03 17:23:57

mrdale
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,202
Website

Re: spf_codemirror - syntax-highlighting and code-completion admin plugin

Gracias!

Actually… you know what would be really useful? An admin area similar to hak_tinymce where you can add your own initialization strings to the call for each instance (css, page,form, etc…).

Offline

#24 2012-11-08 17:24:07

spiffin
Plugin Author
From: London, UK
Registered: 2004-06-08
Posts: 95
Website

Re: spf_codemirror - syntax-highlighting and code-completion admin plugin

Version 0.61 is out with a stack of new features incl. full-screen (thanks Dale), preferences (via Admin > Prefs > Advanced), easy CodeMirror upgrades and Minify support.

Apologies for the slightly long-winded code – I’ll tighten it up later.

Download & info.

Simon

Last edited by spiffin (2012-11-08 23:07:11)

Offline

#25 2013-01-22 22:16:53

spiffin
Plugin Author
From: London, UK
Registered: 2004-06-08
Posts: 95
Website

Re: spf_codemirror - syntax-highlighting and code-completion admin plugin

Version 0.8 is out now – new versions of CodeMirror (3.01) & Emmet (1.3.3) + match-highlighting and full-screen search.

Download & info.

Simon

Offline

#26 2014-01-28 17:02:24

mrdale
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,202
Website

Re: spf_codemirror - syntax-highlighting and code-completion admin plugin

Idea: I’d like to use this editor full screen most of the time, and I’d love a keybinding to “save” so I could stay in full screen. Any thoughts?

Offline

#27 2014-01-28 18:22:34

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 478
Website

Re: spf_codemirror - syntax-highlighting and code-completion admin plugin

Add cmd/ctrl – s for save, see Jukka blog

Offline

#28 2014-01-28 22:11:48

mrdale
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,202
Website

Re: spf_codemirror - syntax-highlighting and code-completion admin plugin

sacripant wrote #278539:

Add cmd/ctrl – s for save, see Jukka blog

Good call… for some reason, when I save it reloads the page and goes back to non-full-screen… wonder what I’m doing wrong…

Offline

#29 2014-10-13 08:09:06

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: spf_codemirror - syntax-highlighting and code-completion admin plugin

There’s an annoying problem: when I am in the

Presentation => Pages (for example)

the bottom part of the menus Presentation, Administraton and Extentions (I have many) are hided by the code window.

I use Remora admin style.

Last edited by candyman (2014-10-13 08:09:56)

Offline

#30 2014-10-13 15:54:39

spiffin
Plugin Author
From: London, UK
Registered: 2004-06-08
Posts: 95
Website

Re: spf_codemirror - syntax-highlighting and code-completion admin plugin

Hello candyman

Please download the new version – which includes CodeMirror 4.6 – and make sure you completely delete your old codemirror directory.

Simon

Offline

Board footer

Powered by FluxBB