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

Output with Line Numbers #62

Open
cgerling opened this issue Nov 11, 2023 · 0 comments
Open

Output with Line Numbers #62

cgerling opened this issue Nov 11, 2023 · 0 comments

Comments

@cgerling
Copy link

I'm working on elixir-lang/ex_doc#1074 which includes adding line numbers to the source code output. I wasn't able to find any documentation to include those in the output so I tried to do this with CSS (using list-style with counters) but wasn't possible because this library does not distinguish between regular whitespace and new lines.

Before starting to work on a PR to address this I would like to double-check what is the desired approach for supporting this type of use case. I was thinking of adding the distinction between regular whitespace and new lines which leaves the customization to the client but you might prefer following the steps of pygments and embedding the line information directly into the output.
WDYT?

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