[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sh mode for region only ?
From: |
XeCycle |
Subject: |
Re: sh mode for region only ? |
Date: |
Wed, 09 May 2012 22:32:38 +0800 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) |
Richard Riley <rileyrg@gmail.com> writes:
> XeCycle <XeCycle@Gmail.com> writes:
>
>> Alexandre Oberlin <please@nospam.com> 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.
>
> How does that address the question? Is there some way to then have it
> auto mode to the correct syntax hiliting in the narrowed region?
Of course you can do something to narrow functions, but running
them manually is not very hard.
--
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591
pgpfyJ7qMkDaV.pgp
Description: PGP signature
Message not available