# Syntax highlighting for C++ ,initializing with = vs ()

Here is the example

int a = 5;
int c(5);


I hope the syntax highlighting works for you, if not then the way a and c are highlighted is different, shouldn't they be highlighted the same way?

c has the same highlighting as a function would have (bright orange)
whereas a has no highlight.

• How does it work with Braces rather than Parenthesis? int a = 5; int c{5}; is really the correct way to do it. Parens have been obsolete for some time. – pacmaninbw Oct 20 '20 at 16:53
• @pacmaninbw Using braces work the same, It's just with Parens.I think a lot of people use () when creating objects and calling the constructor. – Aryan Parekh Oct 20 '20 at 16:58
• Is this site-specific or is the same issue on Stack Overflow? If it's at multiple sites, there's nothing we can do for you and you're better off at the main meta. – Mast Oct 20 '20 at 18:17
• @Mast Thanks for pointing me in the right direction, I need to test it at all the other sites. I believe they all use the same syntax highlighting engine, how can I move this question then? – Aryan Parekh Oct 20 '20 at 18:20
• You can not move this question. Please test it at Stack Overflow and another site, like Code Golf or Software Engineering and report back. – Mast Oct 20 '20 at 18:21
• @Mast yes the same arises on those sites, I tested it on Stack Overflow, Software Engineering, and Code Review – Aryan Parekh Oct 20 '20 at 18:24
• If you're absolutely sure there's a bug, not a usage mistake, I recommend posting it on main meta as indicated above. – Mast Oct 20 '20 at 18:37
• @Mast Yes i posted it here, also I'm unsure whether I should delete this question or not, what do you say? – Aryan Parekh Oct 20 '20 at 18:38
• Feel free to remove it. – Mast Oct 20 '20 at 19:05