Add a pastebin component to Trac


Adds a basic pastebin functionality to a webpage. Some screenshots have been included below, using a heavily modified theme.

Key features:

  • Paste events are shown in the timeline
  • paste TracLinks

Several additional features have been proposed:

Bloodhound compatibility

Since version 0.2.3 users may enable BloodhoundPaste component in order to get a new user interface powered by Twitter Bootstrap and compatible with Apache(TM) Bloodhound .

Screenshot #10833 : TracPastePlugin integration with Bloodhound . New paste form

Screenshot #10833 : TracPastePlugin integration with Bloodhound . Paste view

Bugs/Feature Requests

Existing bugs and feature requests for TracPastePlugin are here.

If you have any issues, create a new ticket.


16 / 19


4 / 13


2 / 3

Download and Source

Download the zipped source from here, check out using Subversion, or browse the source with Trac.


  1. Make sure the Pygments Python package is installed.
  2. Either: Download, build egg, drop into your plugins folder,
    or: easy_install
  3. Enable it through WebAdmin or by editing trac.ini: [components] tracpaste.* = enabled.
  4. Run trac-admin $TRAC_ENV upgrade.
  5. Restart web server.
  6. Add the permissions PASTEBIN_VIEW, PASTEBIN_CREATE, PASTEBIN_DELETE and PASTEBIN_ADMIN that you'd like your users to have.
  7. It should now be visible on the main navigation bar and available under /pastebin.

Recent Changes

[13443] by ejucovy on 2013-11-28 05:56:35
Fix handling of non-ASCII paste data in "download" link. Thanks to piperad for the patch. Fixes #8305
[13442] by ejucovy on 2013-11-28 05:03:57
Add pastebin SearchProvider -- re #6140
[13143] by rjollos on 2013-05-15 13:05:31
Refs #5773: Updated maintainer info.


Author: mitsuhiko
Maintainer: rjollos
Contributors: otaku42, olemis, ejucovy

Last modified 4 weeks ago Last modified on Mar 28, 2015, 11:01:18 PM

Attachments (4)

Download all attachments as: .zip