Editor or Language?
Hello,
I don't know if this is a peculiarity of the editor I am using - which is VIM 7.1.12 - or if it is the language itself - which is C++. When I go to enter a piece of code with the std prefix - std::cout - when I enter std:, std lights up as a keyword. But when I enter the second colon, it goes back to being just plain. I don't know what to make of it. Code:
std |
Does it still compile properly?
|
Vim does syntax highlighting by default. If you try to do it on a file that doesn't have a .c or .cpp extension It won't highlight it.
Syntax highlighting isn't perfect, so you might get some weird results every now and then. Doesn't mean you typed something wrong (at least with python it gives no indication). It usually tries to highlight built in commands and such (ex. print, for, while... again, this is in python). If you wanna turn syntax highlighting off do: Code:
:syntax off Take a look at this for reference: http://www.vim.org/htmldoc/syntax.html |
Hello,
Quote:
|
Hello,
Quote:
|
All times are GMT -5. The time now is 11:57 PM. |