Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use CSS to add line numbers? #6

Open
evanwill opened this issue Nov 16, 2021 · 0 comments
Open

use CSS to add line numbers? #6

evanwill opened this issue Nov 16, 2021 · 0 comments

Comments

@evanwill
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant