3

Notepad++ C and C++ builtin languages, do not recognize stdint types (uint8_t etc) and as such these types do not get colored.

Is there a way to extract the builtin language, so that the stdint types are inserted, whithout having to create a new language from scratch?

George P.
  • 140
  • 1
  • 1
  • 7
  • Why should npp treat those types differently from any other types defined in the standard library? – David Heffernan Oct 21 '13 at 09:56
  • Because one could write his code using only stdint types, which unlike C core types, do not get colored. – George P. Oct 21 '13 at 10:24
  • The "stdint types" you mention are mere *typedefs*, nothing else; that's why they are not "recognized". Fortunately, Notepad++ is fully open source, so you can download, adjust to personal taste, and re-compile it. – Jongware Oct 21 '13 at 10:32
  • All above comments are correct. I'm not testing the validity of npp chosing not to paint the stdint types. I'm just trying to beautify / make my code more visible. – George P. Oct 21 '13 at 10:42

2 Answers2

4

Go to Settings > Style Configurator, and then to C / C++ languages, and then to the TYPE WORD style. There you can add new types uint8_t, uint16_t, uint32_t, int8_t etc in the User-defined keywords textbox.

psxls
  • 6,807
  • 6
  • 30
  • 50
1

\Notepad++\plugins\APIs\

thats what you're lookig for

  • Thanks, there are the builtin .xml files! It need some work, because the files can't be directly imported but I guess it can be done. – George P. Oct 21 '13 at 10:33