diff --git a/previewer_code/indico_previewer_code/plugin.py b/previewer_code/indico_previewer_code/plugin.py index 7f3c0e8..858985e 100644 --- a/previewer_code/indico_previewer_code/plugin.py +++ b/previewer_code/indico_previewer_code/plugin.py @@ -27,7 +27,8 @@ register_custom_mimetypes() class PygmentsPreviewer(Previewer): # All supported MIME types MIMETYPES = ('text/css', 'text/x-python', 'text/x-ruby-script', 'text/x-java-source', 'text/x-c', - 'application/javascript', 'text/x-fortran', 'text/x-csharp', 'text/php', 'text/x-php') + 'application/javascript', 'application/x-javascript', 'text/x-fortran', 'text/x-csharp', 'text/php', + 'text/x-php') # Python's mimetypes lib and Pygments do not quite agree on some MIME types CUSTOM_LEXERS = {