Skip to content

use CSS to add line numbers? #6

@evanwill

Description

@evanwill

something like:

<style> 
    body { counter-reset: section; }
    #contents-container .textline::before {
        counter-increment: section;
        content: counter(section);
    }
</style> 

The count is auto generated by counting some element selector, so would need to tweak which container it is counting to get line numbers that match what we want.

advantage = when you select text, you don't get the line numbers (is this good?). might simplify markup and layout and getting auto numbered lines for display.

disadvantage = potentially doesn't correspond to line # as listed in csv. However, that might get confusing in the text display if the line numbers are off in the csv in general anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions