From: Carsten Dominik <carsten.dominik@gmail.com>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: italics regexp
Date: Tue, 20 Jul 2010 17:25:24 +0200 [thread overview]
Message-ID: <29120718-B6B9-4298-8E59-BC2DE35DC50A@gmail.com> (raw)
In-Reply-To: <AANLkTimZtTxgAdrZCsMKGhyUw6ZW62ysR61QDpSYZwJM@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 284 bytes --]
On Jul 7, 2010, at 9:56 PM, Samuel Wales wrote:
> I need an re to match italics the way org does. I did not find it in
> the code as it is mixed in with other emphasis. Anybody have an re or
> code to highlight italics (and perhaps the others) in non-org buffers?
Here it is:
>
[-- Attachment #2: italic-re.el --]
[-- Type: application/octet-stream, Size: 326 bytes --]
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
"\\([ ('\"{]\\|^\\)\\(\\(/\\)\\([^ \t\n,\"']\\|[^ \t\n,\"'].*?\\(?:\n.*?\\)\\{0,1\\}[^ \t\n,\"']\\)/\\)\\([- \t.,:!?;'\")}\\]\\|$\\)"
[-- Attachment #3: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
prev parent reply other threads:[~2010-07-20 16:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-07 19:56 italics regexp Samuel Wales
2010-07-20 15:25 ` Carsten Dominik [this message]
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=29120718-B6B9-4298-8E59-BC2DE35DC50A@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=samologist@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).