How does org-mode implement syntax highlighting for code blocks? More specifically, for a C file, does it use cc-mode or does it have its own algorithm? For example, if I have this org file: test.org:
* Example source code in C: #+BEGIN_SRC c #include <stdio.h> int main() { printf( "Hello world\n" ); return 0; } #+END_SRC I get the following highlighting:
But if have the same pure C file (using cc-mode) test.c:
#include <stdio.h> int main() { printf( "Hello world\n" ); return 0; } I get:
Notice that printf has different face color in the two files. So it seems like org-mode has its own syntax highlighting. It is not using cc-mode to do the highlighting, is that correct?

