admin管理员组

文章数量:1025202

Is VIM able to detect multiple languages on same file? Sometimes I am prototyping and I dump HTML/CSS/JS/PHP on the same page and to use the right language I must run : setf xlangx.

Is VIM able to detect multiple languages on same file? Sometimes I am prototyping and I dump HTML/CSS/JS/PHP on the same page and to use the right language I must run : setf xlangx.

Share Improve this question asked Jan 9, 2012 at 4:55 Helmut GrandaHelmut Granda 4,7137 gold badges37 silver badges54 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 10

Take a look at the Different syntax highlighting within regions of a file Vim Wikia tip.

Is VIM able to detect multiple languages on same file? Sometimes I am prototyping and I dump HTML/CSS/JS/PHP on the same page and to use the right language I must run : setf xlangx.

Is VIM able to detect multiple languages on same file? Sometimes I am prototyping and I dump HTML/CSS/JS/PHP on the same page and to use the right language I must run : setf xlangx.

Share Improve this question asked Jan 9, 2012 at 4:55 Helmut GrandaHelmut Granda 4,7137 gold badges37 silver badges54 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 10

Take a look at the Different syntax highlighting within regions of a file Vim Wikia tip.

本文标签: javascriptVIM possible to detect multiple languages on same fileStack Overflow