From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Quote blocks face Date: Wed, 13 May 2009 12:47:00 -0700 Message-ID: References: <87zldizbjj.fsf@z.nozav.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4KQ2-0000p1-7J for emacs-orgmode@gnu.org; Wed, 13 May 2009 15:47:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4KPx-0000hF-JE for emacs-orgmode@gnu.org; Wed, 13 May 2009 15:47:09 -0400 Received: from [199.232.76.173] (port=54211 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4KPx-0000h8-Em for emacs-orgmode@gnu.org; Wed, 13 May 2009 15:47:05 -0400 Received: from mail-pz0-f107.google.com ([209.85.222.107]:62030) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M4KPx-0007x7-2Y for emacs-orgmode@gnu.org; Wed, 13 May 2009 15:47:05 -0400 Received: by pzk5 with SMTP id 5so386560pzk.14 for ; Wed, 13 May 2009 12:47:03 -0700 (PDT) In-Reply-To: (Scot Becker's message of "Wed, 13 May 2009 11:16:45 +0100") 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: Scot Becker Cc: Org Mode List --=-=-= Hi Scot, The following regexp[1] was able to highlight the first two blocks for me in this buffer --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=test.org regexp #\+begin_quote[^\000]+?\+end_quote #+begin_quote This is the first quote #+end_quote #+begin_quote and this is the second #+end_quote #+BEGIN_QUOTE and this quote is in caps #+END_QUOTE --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable It would be nice if there was a way to only highlight the contents of the blocks, rather than the blocks themselves, or if there was an easy way to match both capital/lower-case letters. Cheers -- Eric [1] #\+begin_quote[^\000]+?\+end_quote Scot Becker writes: >> >> I use [^\000]+ for a multiline regexp (learned this from the org-mode >> code actually). =C2=A0It seems to match pretty much everything. > > In that case something like this should work as a regexp value for > hi-lock-face-buffer: > > ^#\+BEGIN_QUOTE[^\000]+?\+END_QUOTE > > face: italic > > ... should work, but it only matches the first time for me, not every > time as I would expect. > > Scot --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--