Changes between Initial Version and Version 1 of Ticket #11641, comment 1
- Timestamp:
- Jun 9, 2014, 4:50:43 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11641, comment 1
initial v1 6 6 7 7 I'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. 9 9 * Pygments returns the following (see [http://pygments.org/docs/lexers/#pygments.lexers.web.HtmlLexer docs]): 10 10 {{{#!pycon