unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to highlight-regexp across multiple lines
@ 2014-04-03 14:43 Angus Comber
  2014-04-03 15:08 ` Thorsten Jolitz
  2014-04-04 10:49 ` Nicolas Richard
  0 siblings, 2 replies; 11+ messages in thread
From: Angus Comber @ 2014-04-03 14:43 UTC (permalink / raw)
  To: Emacs Help

I was looking at this question on stackoverflow and it seems regex can
select across multiple lines generally but how would I do so for
highlight-regexp in emacs?

http://stackoverflow.com/questions/159118/how-do-i-match-any-character-across-multiple-lines-in-a-regular-expression


Eg I want to highlight ALL text from aPDU... to the final closing brace:

aPDU-rose : retResult : {
  invokeID 2,
  operValue {
    operationValue local : 71,
    result {
      crossRefIdentifier '40 3f'H
    }
  }
}


How would I do that using highlight-regexp?

highlight-regexp aPDU-rose.* hi-yellow  would get me the first line - but
how to get everything including last } character?


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

end of thread, other threads:[~2014-04-04 13:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-03 14:43 How to highlight-regexp across multiple lines Angus Comber
2014-04-03 15:08 ` Thorsten Jolitz
2014-04-03 15:22   ` Angus Comber
2014-04-03 17:24   ` Angus Comber
2014-04-03 19:21     ` Thorsten Jolitz
2014-04-04  9:58       ` Angus Comber
2014-04-04 10:35         ` Thorsten Jolitz
2014-04-04 10:49 ` Nicolas Richard
2014-04-04 10:50   ` Nicolas Richard
2014-04-04 12:50   ` Angus Comber
2014-04-04 13:26     ` Thorsten Jolitz

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