Modify ↓
Opened 19 years ago
Closed 18 years ago
#5392 closed defect (fixed)
Xsl, Xslt syntax highlighting
| Reported by: | damien | Owned by: | Emmanuel Blot |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | version control/browser | Version: | devel |
| Severity: | normal | Keywords: | xsl xslt |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
source:trunk/trac/mimeview/api.py@5388#L99
This line should be changed from
'text/xml': ['xml'],
to
'text/xml': ['xml','xsl','xslt'],
and line 100 should be removed since pygments handles xsl as 'text/xml'. This will fix xsl syntax highlighting, (I have tested it).
Attachments (0)
Change History (3)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:3 by , 18 years ago
| Milestone: | 0.11.1 → 0.11 |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |
Implemented in [5901]
Note:
See TracTickets
for help on using tickets.



Replying to damien:
I was a bit reluctant at first to drop
text/xslMIME type in favor oftext/xmlfor XSL file. However, it appears thattext/xslhas never been officially registered as a MIME type, it is mostly an IE thing.However, there is another alternative for XSL files:
application/xsl+xml. This MIME type works also with Pygments, and carries more information astext/xmldoes.OTOH,
api.pyshould not be defined for Pygments, as Pygments is only one choice in the mime converter galaxy.See also RFC 3023, Appendix A: about the motivation for using
+xmlsuffix.As a side note, the following MIME types are recognized by Pygments as supported XML types:
text/xmlapplication/xmlimage/svg+xmlapplication/rss+xmlapplication/atom+xmlapplication/xsl+xmlapplication/xslt+xml