Add a pastebin component to Trac


This plugin adds a basic pastebin functionality to a webpage.

Key features:

  • Paste events are shown in the timeline
  • paste TracLinks
  • Pastes are searchable

Some additional features have been proposed:

Some screenshots are included below, using a heavily modified theme.

Bloodhound compatibility

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

Pastebin main form:

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

Pastebin paste view:

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.


20 / 21


6 / 13


2 / 3


Download the zipped source from here.


Check out TracPastePlugin from here using Subversion or browse the source with Trac.


  1. Make sure the pypi:Pygments package is installed.
  2. Either: Download, build egg, drop into your plugins folder,
    or: easy_install
  3. Enable it through WebAdmin or by adding the following to your trac.ini file:
    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 would like your users to have.
  7. The plugin menu item should now be visible on the main navigation bar and available under /pastebin.

Recent Changes

16349 by rjollos on 2017-03-18 15:07:04
0.3.0: Prepare for release
15264 by rjollos on 2016-02-11 04:22:34
Remove unnecessary svn:mime-type on py files

svn:mime-type was set to "plain" for many files.

14799 by rjollos on 2015-07-13 00:25:09
0.3.0dev: Refactored IEnvironmentSetupParticipant per discussion in trac:#8172.


Author: mitsuhiko
Maintainer: Ryan J Ollos
Contributors: otaku42, olemis, ejucovy

Last modified 3 years ago Last modified on Sep 2, 2016, 8:29:00 PM

Attachments (4)

Download all attachments as: .zip