SyntaxHighlighting
From Niki
Syntax Highlighting
When you open a file, NEdit tries to guess what sort of file it is (Python, Perl, LaTeX, etc.) and applies its syntax highlighting to it automatically. Just be sure you've set Preferences --> Default Settings --> Syntax Highlighting to On.
If you've got some file with an unusual filename extension, and syntax highlighting isn't coming on automatically, you may need to use the Preferences --> Default Settings --> Language Modes dialog to add your filename's extension to the correct list. (i.e. For C++ files, the default list of extensions (no commas) is .cc .hh .C .H .i .cxx .hxx .cpp .c++, and you might want to add .hpp to that.)
For more info, see Syntax Highlighting Patterns, and also Help --> Features for Programming --> Syntax Highlighting.
