From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinh Nguyen Subject: Re: text color + highlight Date: Fri, 6 Aug 2010 16:42:44 -0700 Message-ID: References: <87pqxw5cb1.fsf@gnu.org> <87mxszcsuv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=34698 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhWZ8-00083X-Vx for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 19:43:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhWZ7-0005dq-RY for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 19:43:06 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:53709) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhWZ7-0005dl-Oc for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 19:43:05 -0400 Received: by iwn10 with SMTP id 10so2146357iwn.0 for ; Fri, 06 Aug 2010 16:43:04 -0700 (PDT) In-Reply-To: <87mxszcsuv.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org, Bastien Thanks Eric, this works. I do agree that the implemented syntax is not org-like but more latex-like. To be more org-like, could we use parentheses or curly braces like how links are implemented? They aren't taken, are they? For example, ((red)(this text is red)) {{yellow}{this text is highlighted yellow}} ## see http://answers.yahoo.com/question/index?qid=3D20080316135432AANXSJc What do you think? How hard would it be to change your code to this? Can this be merged into the development branch? Thanks, Vinh On Fri, Aug 6, 2010 at 2:51 PM, Eric Schulte wrote= : > Hi, > > I've recently seen similar requests on this list. > > The attached patch provides a first pass at this support implementing > both in-buffer coloring given the following syntax, and html export (I > don't know the correct LaTeX syntax, but it shouldn't be hard to extend > this to LaTeX as well). =C2=A0This uses something like the LaTeX Beamer > \color{}{} directive, for example... > > =C2=A0My name is \color{red}{eric} schulte. > > Would result in the word "eric" appearing in red. =C2=A0Even though I > implemented the syntax above, I'm *not* recommending this syntax, it > feels decidedly more like "latex" than "org", it was simply the only > obvious option for this initial implementation. > > -- Eric >