From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexandre Oberlin Newsgroups: gmane.emacs.help Subject: Re: sh mode for region only ? Date: Wed, 09 May 2012 16:55:55 +0200 Organization: TeraNews.com Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336575614 12002 80.91.229.3 (9 May 2012 15:00:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 May 2012 15:00:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 09 17:00:14 2012 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 1SS8NB-0004GE-5D for geh-help-gnu-emacs@m.gmane.org; Wed, 09 May 2012 17:00:13 +0200 Original-Received: from localhost ([::1]:58570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS8NA-00012d-9s for geh-help-gnu-emacs@m.gmane.org; Wed, 09 May 2012 11:00:12 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe18.iad.POSTED!6712a1ff!not-for-mail User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 26 Original-X-Complaints-To: abuse@teranews.com Original-NNTP-Posting-Date: Wed, 09 May 2012 14:55:34 UTC X-Received-Bytes: 1520 Original-Xref: usenet.stanford.edu gnu.emacs.help:192371 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:84778 Archived-At: Thanks for your suggestion. I tried to check if one of those solutions would work at least while editing but none does. Actually in the narrowed region or cloned buffer the syntax highlighting seems to take into account the unseen text to set the highlighting. I need to copy the sh region to a new file to get the correct syntax highlighting. Alexandre ( On 05/09/2012 03:40 PM, XeCycle wrote: > Alexandre Oberlin writes: > >> Hi all, >> >> Is there a possibility to benefit of sh (or whatever) syntax >> highlighting on a region only? >> >> This could be useful when editing a list of instructions containing codes. > > C-x n n > > Or a more complex C-x 4 c. >