Doxygen actually has a STRIP_CODE_COMMENTS option, which does exactly
what's needed.
``.h`` C++ (instead of C)
``.h.cmake`` C++ (instead of CMake), as this extension is often used for
C++ headers that are preprocessed with CMake
-``.h.nostrip`` C++. Useful for embedding code snippets with Doxygen
- comment block, as Doxygen would strip them with plain
- ``.h``.
``.glsl`` GLSL. For some reason, stock Pygments detect only
``.vert``, ``.frag`` and ``.geo`` extensions as GLSL.
``.conf`` INI (key-value configuration files)
# Custom mapping of filenames to languages
mapping = [('.h', 'c++'),
('.h.cmake', 'c++'),
- ('.h.nostrip', 'c++'),
# Pygments knows only .vert, .frag, .geo
('.glsl', 'glsl'),
('.conf', 'ini'),