Sunday, April 11, 2021

Re: Syntax highlighting of multiple languages in a single program

On 09.04.21 22:07, 'J S' via vim_use wrote:

> https://vim.fandom.com/wiki/Different_syntax_highlighting_within_regions_of_a_file
>
> At the above link, there is a solution that sort of works. It's really quite frustrating > because it will work one minute then not the next and so on. I can't
> find any rhyme or reason to it.

Hi J S,

iam not familiar with the use of different language source, in the same
file / buffer. But my suggs are (a maybe case):

1) U can use modeline(s) to define different syntax indent on different
buffer lines:
https://vim.fandom.com/wiki/Modeline_magic
vim :help auto-setting

2) Youre problem could be (with this script) to set the right
vim :help cpoptions, also. I would try plugin syntaxrange mentioned
in the wiki help

thx sincerely
- kefko

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/9b6b06c5-cb19-3538-0787-026fb9bf3c1d%40googlemail.com.

No comments: