help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh mode for region only ?


From: Richard Riley
Subject: Re: sh mode for region only ?
Date: Wed, 09 May 2012 16:19:21 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

Doug Lewan <dougl@shubertticketing.com> writes:

> At my last job I had to work with HTML that was heavily laden with 
> JavaScript, so something similar was very useful for me.
> I wrote a post-command-hook to see if the point had moved into a region of 
> JavaScript and, if it had, then change to JavaScript mode.
>
> If your regions of shell code have reasonably consistent delimiters, then 
> doing the same thing should not be too difficult.
>
> ,Doug

nxhtml might be good for you too.

>
>> -----Original Message-----
>> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
>> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
>> Behalf Of Alexandre Oberlin
>> Sent: Wednesday, 2012 May 09 09:26
>> To: help-gnu-emacs@gnu.org
>> Subject: sh mode for region only ?
>> 
>> 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.
>> 
>> Alexandre
>> 
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]