I
I
IvanN7772019-05-17 08:10:36
vim
IvanN777, 2019-05-17 08:10:36

Is it possible to highlight multiple languages ​​in Vim in one file?

Usually all IDEs can do this.
But vim is not an ide of course.
But it's hard to understand the code without highlighting.
It highlights either php or sql
Let's say if the file contains php and sql.
Sharing is fine, but not all files are written by us.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
akimdi, 2019-07-29
@IvanN777

Can. Install SpaceVim

L
lo-fi, 2019-05-22
@hrls

No.
Each file is set to a specific 'filetype', and the corresponding syntax markup. There are some file types that allow mixed syntax, like Markdown and a specific programming language, but it's still a separate 'filetype', not language recognition within Markdown.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question