Running Turtle
Running Turtle

Reputation: 12752

syntax highlight within a text file?

I have a text file with 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).

Upvotes: 1

Views: 966

Answers (1)

Ptival
Ptival

Reputation: 9437

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)

Upvotes: 1

Related Questions