Line numbers in `st.code`
See original GitHub issueProblem
Code showing with st.code
are hard to tell which line is wrong or right if the code has so many lines.
Solution
MVP: add a parameter show_line_numbers
(bool) to st.code
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Display line numbers for code - Visual Studio (Windows)
You can show or hide line numbers in your code. Here's how. On the menu bar, choose Tools > Options. Expand the Text...
Read more >How to add line numbers to a program listing/code? [duplicate]
I don't know how to get the numbering on the left side when I compile LaTeX. Using \verbatim only gives me the code....
Read more >Show line numbers in Code Composer V5 - TI E2E
Right-clicking the column of line numbers appears to give an option to deselect 'Show Line Numbers', but clicking it does nothing.
Read more >California Rules of Court: Title Two Rules - California Courts
Line numbers must be consecutively numbered, beginning with the number 1 on each page. There must be at least three line numbers for...
Read more >html: How to add line numbers to a source code block
Without using float , there is a simple solution so text isn't wrapped under the line numbers. The trick is setting a margin...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this, as it looks like its resolved via a Streamlit component (yay for the community!)
Ahh I missed that. Thank you @maarten-betman