I cannot get header files to display syntax highlighting with C++, e.g. The keyword 'class' should be bold. It does in a .cpp file but not in a .h or .hpp file. Can anyone tell me why this is?
I think it's just a bug/feature of the Keil code editor.
Which is basically just an ANSI 'C' editor - and not a C++ editor...
But it knows the difference between C and C++ files. e.g. the keyword 'class' is recognised in a .cpp file as its bold but in a .c file it is not. As expected. So why dont they use .hpp for C++ and .h for C?
One day there will be no bugs in any software...
What I mean is, it's just an ANSI 'C' editor that's had a few tweaks to recognise a few C++ features, but still doesn't fully understand it...