emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Scot Becker <scot.becker@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Quote blocks face
Date: Wed, 13 May 2009 12:47:00 -0700	[thread overview]
Message-ID: <m2tz3odbuz.fsf@gmail.com> (raw)
In-Reply-To: <e0e1fe620905130316q5fb6e230q5c46fb5be53f76a1@mail.gmail.com> (Scot Becker's message of "Wed, 13 May 2009 11:16:45 +0100")

[-- Attachment #1: Type: text/plain, Size: 100 bytes --]

Hi Scot,

The following regexp[1] was able to highlight the first two blocks for
me in this buffer


[-- Attachment #2: test.org --]
[-- Type: application/octet-stream, Size: 200 bytes --]



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

[-- Attachment #3: Type: text/plain, Size: 715 bytes --]



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 <scot.becker@gmail.com> writes:

>>
>> I use [^\000]+ for a multiline regexp (learned this from the org-mode
>> code actually).  It 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

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

  parent reply	other threads:[~2009-05-13 19:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-12 13:38 Quote blocks face Julien Barnier
2009-05-12 14:06 ` Carsten Dominik
2009-05-12 21:09   ` Scot Becker
     [not found]     ` <m2zldh6hri.fsf@gmail.com>
     [not found]       ` <e0e1fe620905130316q5fb6e230q5c46fb5be53f76a1@mail.gmail.com>
2009-05-13 19:47         ` Eric Schulte [this message]
2009-05-13 12:05   ` Scot Becker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2tz3odbuz.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=scot.becker@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).