From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Colorization/masking of @@html: @@ in emacs editing mode ? Date: Mon, 20 Apr 2015 12:43:21 -0400 Message-ID: References: <87zj630ztt.fsf@inf-11879.int-evry.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkEnA-00051R-VQ for emacs-orgmode@gnu.org; Mon, 20 Apr 2015 12:43:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkEn7-0004vo-Pa for emacs-orgmode@gnu.org; Mon, 20 Apr 2015 12:43:28 -0400 Received: from mail-qk0-x232.google.com ([2607:f8b0:400d:c09::232]:34456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkEn7-0004vh-Ks for emacs-orgmode@gnu.org; Mon, 20 Apr 2015 12:43:25 -0400 Received: by qkgx75 with SMTP id x75so184978361qkg.1 for ; Mon, 20 Apr 2015 09:43:24 -0700 (PDT) In-reply-to: <87zj630ztt.fsf@inf-11879.int-evry.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Olivier Berger Cc: emacs-orgmode@gnu.org If you can define a regexp for those snippets, you can colorize them like this, even getting a click function: http://kitchingroup.cheme.cmu.edu/blog/2015/03/18/Clickable-links-for-Twitter-handles-in-Emacs/ This isn't all that portable, as others would need your code for the colorization, but it might serve your needs. Olivier Berger writes: > Hi. > > The '@@html:...@@' markers allow to embed raw HTML. Unfortunately, they > are not rendered in any special way in the Emacs editing mode, AFAIU. > > It would be interesting, I think, to be able to colorize them, and/or > mask them somehow visually, to not clutter the plain org editing. > > I haven't found instructions for reporting feature requests for org, so > feel free to direct me to a more appropriate venue. > > Hope ths helps. > > Best regards, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu