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.


  • \$\begingroup\$ 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. \$\endgroup\$ – pacmaninbw Oct 20 '20 at 16:53
  • \$\begingroup\$ @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. \$\endgroup\$ – Aryan Parekh Oct 20 '20 at 16:58
  • 3
    \$\begingroup\$ 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. \$\endgroup\$ – Mast Oct 20 '20 at 18:17
  • \$\begingroup\$ @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? \$\endgroup\$ – Aryan Parekh Oct 20 '20 at 18:20
  • 1
    \$\begingroup\$ You can not move this question. Please test it at Stack Overflow and another site, like Code Golf or Software Engineering and report back. \$\endgroup\$ – Mast Oct 20 '20 at 18:21
  • \$\begingroup\$ @Mast yes the same arises on those sites, I tested it on Stack Overflow, Software Engineering, and Code Review \$\endgroup\$ – Aryan Parekh Oct 20 '20 at 18:24
  • \$\begingroup\$ If you're absolutely sure there's a bug, not a usage mistake, I recommend posting it on main meta as indicated above. \$\endgroup\$ – Mast Oct 20 '20 at 18:37
  • \$\begingroup\$ @Mast Yes i posted it here, also I'm unsure whether I should delete this question or not, what do you say? \$\endgroup\$ – Aryan Parekh Oct 20 '20 at 18:38
  • 1
    \$\begingroup\$ Feel free to remove it. \$\endgroup\$ – Mast Oct 20 '20 at 19:05

You must log in to answer this question.

Browse other questions tagged .