Feature #208
make line numbers a href and a name
| Status: | Closed | Start: | 02/27/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 100% |
||
| Category: | Encoder improvements | |||
| Target version: | 1.0 RC1 |
Description
Hi
It would be great if the line numbers could be clickable:
<a href="#n10" name="n10">10</a>
or something like that.
greetings, lino
Associated revisions
New HTML Encoder option :line_number_anchors (closes #208).
Also removed the :list wrapping style, and made a lot of cleanup in the styles. See Changes.textile.
History
Updated by Kornelius Kalnbach 6 months ago
- Priority changed from High to Normal
- Target version set to 1.0 RC1
Nice idea.
I think it should be an option to the HTML encoder, something like :line_number_anchors. The prefix for the anchor names should be configurable, which gives us :line_number_anchors => 'prefix', true, or false. I think true should be the default if it works nicely; the anchor name prefix could be 'line' by default (so you don't have to specify it if you don't want to). You would still have to specify :line_numbers to make it work.
Can somebody provide a patch?
Updated by Kornelius Kalnbach 6 months ago
Redmine uses this, but it breaks CodeRay because they have to highlight every single line by its own.
Updated by Kornelius Kalnbach 5 months ago
- Estimated time deleted (
0.10)
Updated by Kornelius Kalnbach 5 months ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset r535.