From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Jan_B=F6cker?= Subject: Re: text color + highlight Date: Wed, 11 Aug 2010 08:03:32 +0200 Message-ID: <4C623D34.8090205@jboecker.de> References: <87pqxw5cb1.fsf@gnu.org> <87mxszcsuv.fsf@gmail.com> <87d3tvru38.fsf@gmail.com> <87iq3kkef1.fsf@gmail.com> <4C60EE48.6030106@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=40043 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oj4PZ-0004me-FA for emacs-orgmode@gnu.org; Wed, 11 Aug 2010 02:03:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oj4PY-0000en-2J for emacs-orgmode@gnu.org; Wed, 11 Aug 2010 02:03:37 -0400 Received: from smtp01.worldserver.net ([217.13.200.36]:39267) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oj4PX-0000ef-Pz for emacs-orgmode@gnu.org; Wed, 11 Aug 2010 02:03:35 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: Carsten Dominik , Vinh Nguyen , emacs-orgmode@gnu.org, mail@christianmoe.com, Bastien On 08/11/2010 01:14 AM, Samuel Wales wrote: > i suggest begin-end pairs, not putting text in the syntax itself. > though you could, if you want, using quotes. > > $[class begin :title animals]Some text about animals$[class end > :title animals] > Why not allow both? If I want to highlight one or two words, maybe I could use: $[class :title animals "African swallow"] Compare this to: $[class begin :title animals]African swallow$[class end :title animals] For a few sentences and to get support for nested formatting, I would definitely want begin-end pairs, too, but if you want to highlight a few words, being able to put text into the syntax itself makes things a lot shorter. As far as I understand it, once a framework for this extensible syntax is in place, it would not be too hard to support both variants. BTW, I really like the idea of having extensible syntax in general; this could also make inline todos a lot less painful. I do not know enough about elisp and Org to help with the implementation, but if someone wants to implement this and needs help with testing, I'd be glad to help. (I wrote my last exam today, so I will have a lot more time to spare until October.) Jan