On Mon, Jun 22, 2015 at 10:30 PM, John Mark Vandenberg <jayvdb@gmail.com> wrote:
Ugh, is there a way to configure pygments to have fallbacks for
languages which are substantially based on another?  e.g. xpp is
basically java, and looks quite good when I tested it on betalabs.  I
am sure that Pygments has some parser close to 'email', as they do
support a 'http session' language.

Yes. We maintain a mapping from GeSHi lexer names to compatible Pygment lexers:

https://github.com/wikimedia/mediawiki-extensions-SyntaxHighlight_GeSHi/blob/master/SyntaxHighlight_GeSHi.compat.php#L26-96

Making xpp render as Java would be as simple as adding "xpp" => "java". If you submit a patch, I will be happy to merge it.