Closed niXman closed 11 years ago
first one is because this rule, second just highlights >
, <
operators, and last one is just a regular string.
I don't know c++ syntax good enough, how should they be highlighted?
The file name specified after the '#include', regardless of in what symbols it is enclosed, must be displayed in the same color as the '#include' directive itself. The file name can be enclosed only in double quotes or angle brackets. Ideally, the preprocessor directive continues until a line break ( \n ). If the string with a preprocessor directive ends with a backslash( \ ), the next line after it is considered its continuation - as if it was a hole line. This is true for all preprocessor directives, i.e. for lines that begin with the '#' symbol.
The next four examples have the same result:
#include <iostream>
#include \
<iostream>
#include \
\
<iostream>
#include \
\
"iostream"
Thank you!
I like having different colors for the directive #include
versus the content being included.
However, I believe this is a Theme issue as well, not just a syntax highlighting issue. Check out the same code using Twilight instead of Monokai:
The first include is properly colored; the second is not; and the third matches the string coloring. I will make it so that they all match the first < >
style ( i.e. the third one should not be interpreted as a string).
That would be great!
Tell me please, can you do something so that the multiline preprocessor directives are highlighted correctly?
I don't know, should I continue writing here about multiline preprocessor directives highlighting bug? Now, this bug occurs when in multiline preprocessor directive double quoting char( \" ) are contained.
Thanks.
what is the code for c++ language, I tried "c++", "cpp" but both of them doesn't work.
In the attached screenshot is shown the highlighting for three lines with the use of the directive '#include' in C++ mode. I have two questions:
Thanks.