From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angus Comber Newsgroups: gmane.emacs.help Subject: How to highlight-regexp across multiple lines Date: Thu, 3 Apr 2014 15:43:19 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1396536276 14753 80.91.229.3 (3 Apr 2014 14:44:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2014 14:44:36 +0000 (UTC) To: Emacs Help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 03 16:44:31 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WVisZ-0001Zm-Fb for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 16:44:31 +0200 Original-Received: from localhost ([::1]:44447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVisY-0000cn-TG for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 10:44:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVirS-0007td-5I for help-gnu-emacs@gnu.org; Thu, 03 Apr 2014 10:43:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVirQ-0007fS-QK for help-gnu-emacs@gnu.org; Thu, 03 Apr 2014 10:43:22 -0400 Original-Received: from mail-qa0-x236.google.com ([2607:f8b0:400d:c00::236]:64971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVirQ-0007fO-ME for help-gnu-emacs@gnu.org; Thu, 03 Apr 2014 10:43:20 -0400 Original-Received: by mail-qa0-f54.google.com with SMTP id w8so1764692qac.13 for ; Thu, 03 Apr 2014 07:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2cq+ePsT+cF3QOUP44XQzC2e5rhyD4Dx5oCKA2ag+WM=; b=Tne+rgsdYjI3XBJfo7kXrD29yzuXD1DeDb6zi2nnN2jT/Z4F5GK736v9KfxQYoV89R Eo/AWH5KuvkIa1dcr1FD6mEricXA5K/MK1OXrVnfq6YIYvpISM6zqsBhDqq0DCTSbMzg yZfjwl43CdrUkVznZR4jh0+MZMIycr3REBBUfBAzCW2NVXHQnTZBb+0jfn6aKWTBqMiH YIr67o+JMGxGaU76zPGc2/kUDnGwY/o/niwwueEBeipPOF6vNDAhXi4pfo+1tCNIcJ1e vNiQS0FQCIyO8+In5xKFk2DM1/kqoWfJA1VWrymhlDTcDGlpw6C9akS9FL0e7rdft++F mFxA== X-Received: by 10.140.96.118 with SMTP id j109mr1635866qge.109.1396536199940; Thu, 03 Apr 2014 07:43:19 -0700 (PDT) Original-Received: by 10.96.187.166 with HTTP; Thu, 3 Apr 2014 07:43:19 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c00::236 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96939 Archived-At: 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?