开发者

syntax highlight within a text file?

开发者 https://www.devze.com 2023-02-17 06:35 出处:网络
I have a text file wit开发者_StackOverflow社区h code snippets scattered here and there. Is there a way to have syntax highlight for the code snippets ?

I have a text file wit开发者_StackOverflow社区h code snippets scattered here and there.

Is there a way to have syntax highlight for the code snippets ?

(all snippets are in the same language).


You can use:

:set syntax=<language>

to force some syntax coloring.

-- Yet it might be chaotic if the remaining text has some elements that conflict (unmatched quotes for instance)

0

精彩评论

暂无评论...
验证码 换一张
取 消