text/x-c++src
C++ source code
| Description | C++ source code |
|---|---|
| File extensions | .c, .c++, .cc, .cpp, .cxx |
| Based on | text/x-csrc |
Frequently asked questions
What is the MIME type text/x-c++src?
text/x-c++src denotes “C++ source code”.
Which file extension does text/x-c++src use?
Files of type text/x-c++src usually end in .c, .c++, .cc, .cpp and .cxx.
How does a web server serve text/x-c++src correctly?
With the header Content-Type: text/x-c++src. In nginx: types { text/x-c++src c c++ cc cpp; }; in Apache: AddType text/x-c++src .c .c++ .cc .cpp.
Which formats are based on text/x-c++src?
Formats based on it include Objective-C++ source code.
Formats based on it
- text/x-objc++src – Objective-C++ source code