[wp-hackers] Any tip about syntax highlight for worpress theme editor?
Anthony Cole
anthony at radiopicture.com.au
Thu Nov 11 16:38:34 UTC 2010
I try to always use version control. I know Andrew Nacin was working on something with versioning in the editor for his GSoC project, but I'm not sure where that went.
I'm a proponent of having every change to a site in a vcs - no matter how big or small it is.
You also leave open the possibility that the client (if they have privileges) will go on a joyride and pretend to know CSS, which I've seen plenty of times.
From memory, there are a few plugins (but not sure where) that do add functionality there, and you could probably unbury the patch from trac and spin it off.
-ac
--
Anthony Cole
http://about.me/anthonycole
On 12/11/2010, at 3:15 AM, Rafael Ehlers wrote:
> There are some situations where a client calls and ask for a little change
> in CSS, like some link color adjust or something like that, and im not home
> or have access to a pc with ftp blablabla... So if I have access to a PC
> with Internet, im totally able to fix it quickly.
>
> It would be very handy if we have such syntax highlight or/and line numbers.
>
> The question remains, if anyone have a solution for that, please help me!!
>
> Best regards,
>
> Rafael Ehlers
>
> On Thu, Nov 11, 2010 at 1:56 PM, Jeremy Clarke <jer at simianuprising.com>wrote:
>
>> On Thu, Nov 11, 2010 at 8:29 AM, Rafael Ehlers <rafaehlers at gmail.com>
>> wrote:
>>
>>> I can´t find a syntax highlighter for the WordPress theme editor, only
>> for
>>> inserting code (PHP, CSS, ...) in posts.
>>>
>>> Any tip on a plugin?
>>>
>>
>> At one point there was a pretty elaborate JS editor-enhancement added to
>> the
>> theme editor in core, but it was removed because it caused a lot of
>> problems
>> for a lot of people. The problem with enhancing the wp-admin editor screens
>> is that if someone is actually using them then they are probably working on
>> a live site, and in that situation any issues can become nightmares.
>> Whatever is making someone use the theme editor instead of FTP+real editor
>> has a decent chance of also stopping them from being able to fix the site
>> if
>> they break it using the theme editor.
>>
>> Ideally the theme editor should never be used. It is an emergency tool
>> included because sometimes people get stuck with WP configured in an
>> inconvenient way. Rather than improve it you should fix your setup so you
>> don't have to use it at all.
>>
>> Whatever your situation is that requires detailed edits to the theme, you
>> need to find another way to accomplish your goal. Most likely a local
>> installation using Mamp/xamp to run a copy of the site for development is
>> the best idea, that way you can use proper code editing tools and avoid
>> taking down the live site with a PHP syntax error. When you are happy with
>> how the theme works you can just paste in the results once.
>>
>> Alternately, if you have a part of your theme that needs regular edits, you
>> should add some widget areas and control the content form the admin that
>> way. Much cleaner than editing the theme itself.
>>
>> --
>> Jeremy Clarke | http://jeremyclarke.org
>> Code and Design | http://globalvoicesonline.org
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list