Any way for Jira C/C++ {code} block to highlight syntax correctly?

Brett Sander
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 31, 2024

A {code} block specifying C or CPP seems to not recognize /* */ style comments -- which is a pretty huge oversight. It does recognize // style comments. Is there anything I'm missing? Here's the markup:

{code:language=cpp}
int main (int argc, char** argv)
{
// This is a line comment
// this new and ->

/*
* This is a block comment
* This new and ->
*/
return 0;
}
{code}
And here's how it displays:

bad_block_comments.png

Notice that "this" and "new" are being highlighted incorrectly. Seemingly the block comment is not being recognized at all.

Thanks

0 answers

Suggest an answer

Log in or Sign up to answer