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: Mon, 14 May 2012 22:33:09 +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 1337027715 29434 80.91.229.3 (14 May 2012 20:35:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 May 2012 20:35:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 14 22:35:15 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 1SU1z7-0003ZB-RF for geh-help-gnu-emacs@m.gmane.org; Mon, 14 May 2012 22:35:13 +0200 Original-Received: from localhost ([::1]:50669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SU1z7-0007Cs-6a for geh-help-gnu-emacs@m.gmane.org; Mon, 14 May 2012 16:35:13 -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!newsfe01.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: 23 Original-X-Complaints-To: abuse@teranews.com Original-NNTP-Posting-Date: Mon, 14 May 2012 20:33:11 UTC X-Received-Bytes: 1678 Original-Xref: usenet.stanford.edu gnu.emacs.help:192410 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:84818 Archived-At: org mode indeed seems to offer a realm of possibilities I still have to explore: http://emacs-fu.blogspot.it/2009/05/writing-and-blogging-with-org-mode.html Cheers, Alexandre On 05/10/2012 05:44 AM, XeCycle wrote: > Alexandre Oberlin writes: > >> 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. > > Apart from multiple modes, you can try working with Org mode, > which gives a nice way of embedding source code in documents. >