Edgewall Software

Changes between Initial Version and Version 1 of Ticket #11641, comment 1


Ignore:
Timestamp:
Jun 9, 2014, 4:50:43 PM (10 years ago)
Author:
Ryan J Ollos

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11641, comment 1

    initial v1  
    66
    77I'm not sure if the default behavior for documents with the `html` extension should be different than what it is now when Pygments is installed, but I've observed the following:
    8  * `KNOWN_MIME_TYPES` dictionary sets the mimetype for `html` to be `text/html`: [browser:/tags/trac-1.0.1/trac/mimeview/api.py@:308#L287], therefore the mimetype for `html` is `text/html` if Pygments is not installed or is disabled.
     8 * `KNOWN_MIME_TYPES` dictionary sets the mimetype for `html` to be `text/html`: [browser:/tags/trac-1.0.1/trac/mimeview/api.py@:308#L287], therefore the mimetype for `html` is `text/html` if Pygments is not installed or `PygmentsRenderer` is disabled.
    99 * Pygments returns the following (see [http://pygments.org/docs/lexers/#pygments.lexers.web.HtmlLexer docs]):
    1010 {{{#!pycon