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: Doug Lewan
Subject: RE: sh mode for region only ?
Date: Wed, 9 May 2012 14:19:35 +0000

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


> -----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]