emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* italics regexp
@ 2010-07-07 19:56 Samuel Wales
  2010-07-20 15:25 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Wales @ 2010-07-07 19:56 UTC (permalink / raw)
  To: emacs-orgmode

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?

Thanks.

-- 
Q: How many CDC "scientists" does it take to change a lightbulb?
A: "You only think it's dark." [CDC has denied a deadly disease for 25 years]
==========
Retrovirus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: italics regexp
  2010-07-07 19:56 italics regexp Samuel Wales
@ 2010-07-20 15:25 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-07-20 15:25 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

[-- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-20 16:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-07 19:56 italics regexp Samuel Wales
2010-07-20 15:25 ` Carsten Dominik

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).