Version 4 (modified by Kate, 8 years ago) (diff)

Added example screenshot.

Replace code <table>s with <pre> tags


This is a simple plugin which replaces code <table> elements in the source browser with <pre> tags.

Syntax highlighting is preserved. Line numbers are gone.

Other than appealing to minimalists, this is useful in conjunction with something along the lines of - that's client-side javascript to dynamically add non-selectable line numbers. In other words, this lets you cut &amp; paste code without bringing along the line numbers too.

Bugs/Feature Requests

Existing bugs and feature requests for PreCodeBrowserPlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from [download:precodebrowserplugin here].


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


Here's how it looks in action on a stock Trac installation:

An example

Not very exciting, hey? That is actually inside a <pre> tag, I promise.

Recent Changes

5810 by kate on 2009-05-20 01:24:50
Oops... I thought these only took effect within the path given to Transformer(); looks like these need to be more explicit.
5804 by kate on 2009-05-19 22:19:32
Initial import.
5803 by kate on 2009-05-19 22:04:54
I do not intend to create a version for 0.9.


Author: kate

Attachments (1)

Download all attachments as: .zip