-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please support semantic highlighting for Doxygen comments #4089
Comments
Note that a triple-slash |
@anatolyburakov @HunterZ I'm working on Doxygen comment syntax highlighting from the textmate grammar (non-semantic) side. Are you looking for something more comprehensive than the picture in the linked PR. jeff-hykin/better-cpp-syntax#354 (comment). Supports both |
@matter123 yes it looks great. as long as it's possible to have it as a different color than normal comments, and have even rudimentary syntax highlighting within comments, i'll be quite happy! |
@anatolyburakov @HunterZ with version v1.14.0 of the "Better C++ Syntax" extension, syntax highlighting for Doxygen commands inside documentation comments. @anatolyburakov You can distinguish documentation comments from normal comments, as documentation comments have the scope Example: (settings.json) {
//...
"editor.tokenColorCustomizations": {
"textmateRules": [
{
"name": "doxygen",
"scope": [ "source.cpp comment.block.documentation" ],
"settings": {
"foreground": "#BBBBBB",
}
}
]
},
//...
} |
Thanks. Sounds like we can close this issue. |
Would it be possible to support variable highlighting for @param[in,out]? Thanks! |
@gb-esat Created jeff-hykin/better-cpp-syntax#418 for that |
Type: LanguageService
By convention, Doxygen comments use special comment signature to indicate Doxygen comment blocks. IDE's like Qt Creator support these and both colorizes Doxygen comments in different color and provides additional syntax colorization for values in the comment:
This makes it very easy to distinguish normal comments from documentation, and is very easy to spot when you've accidentally created the wrong comment type. It would be good if VSCode supported that as well (generating these from function signature automatically would also be a bonus!).
This is similar to #658, but at issue here is not display of comments, but rather syntax highlighting and colorization for C/C++ Doxygen comments.
The text was updated successfully, but these errors were encountered: