Browse contents in zipfile


This plugin renders a list of the contents of a zipped attachment or repository.

Use a hash-link to view a specified line of code in the archive: /path/to/ticket/Archiveviewer.egg/archiveviewer/zipfile#LINENO, see screenshot below.

You can also see the contents of a zip file in a zip file. Likewise, you can see the description of the manifest in the lib / jar in the war in the ear.





Screenshot: Archive viewer:

Screenshot: Archive viewer hashlink to view a specified line in the file:

When render-unsafe-contents = true in the [attachment] section of your trac.ini file, the HTML in the archive will display in your web-browser. A relative-link may be resolved in the zip file.

You can zip mockups of a web-application and attach it to a ticket or wiki page.

trac.ini で [attachment] render-unsafe-contents = true を指定していると、 htmをブラウザで開きます。このとき、html中の相対リンクをzipファイル内で解決できます。「Webアプリケーションの画面モックアップを HTML + CSS + JavaScript?とかで作って、zipパッケージにしてチケットに添付する」みたいな場面で便利なんじゃないかなー。

Screenshot: Content:

Screenshot: Raw zip file:

Bugs/Feature Requests

Existing bugs and feature requests for ArchiveViewerPlugin are here.

If you have any issues, create a new ticket.


4 / 4


1 / 1


Download the zipped source from here.


You can check out ArchiveViewerPlugin from here using Subversion, or browse the source with Trac.


General instructions on installing Trac plugins can be found on the TracPlugins page.

Recent Changes

17529 by matobaa on 2019-09-26 08:29:56
fix a bug; zip files on root of repo cannot extend
17527 by matobaa on 2019-09-26 03:18:32
ArchiveViewerPlugin: A link of zip uses a hash part
17509 by matobaa on 2019-09-23 16:40:53
ArchiveViewerPlugin: Porting from Genshi to Jinja2


Author: matobaa
Maintainer: matobaa

Last modified 7 years ago Last modified on Jun 17, 2017, 8:45:27 AM

Attachments (5)

Download all attachments as: .zip