Monday, September 18, 2023

Re: texts in a cpp file are highlighted as comments while they are not comments

On Sa, 16 Sep 2023, Henrik Lin wrote:

> image.png
>
>
> As show in the picture, my texts are highlighted as comments
>
> The OS is windows, vim version 8.2
>
>  
>
> Note: I also checked the texts are not within /**/
>
>
> anything wrong with vim setting / encoding ?

It looks like you have `:set hls` enabled and pressed '*' on the text
`*` in the file.

See if the highlighting goes away with `:set nohls`

Best,
Christian
--
If the human brain were so simple that we could understand it,
we would be so simple we couldn't.

--
--
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/ZQgC0d1AyxJFgXWd%40256bit.org.

No comments:

Post a Comment