On 2015-06-22 10:30 PM, John Mark Vandenberg wrote:
I am sure that Pygments has some parser close to
'email', as they do
support a 'http session' language.
That lexer:
https://bitbucket.org/birkenfeld/pygments-main/src/652e08e410f4f4f3a61add91…
Does highlight some specific http things like the request method. The
auto-detection also tests for the presence of the `GET /`, etc... pattern.
However it would be trivial to split that into a common lexer base or
just copy and modify it, so that the highlighter instead highlights
patterns in MIME instead of HTTP.
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [
http://danielfriesen.name/]