I struggle with writing long, never-ending paragraphs and need a way to visually break them up by adding line numbers next to each paragraph. While I'd prefer a solution using only CSS for simplicity's sake, JavaScript works too since this is just for personal use. Unfortunately, I can't wrap each line in its own tag because the document is constantly changing. If possible, it would be great if every 5th line could be numbered as well. I hope this explanation makes sense; let me know if you need further clarification.
(By the way, how long do you think a paragraph should be before it becomes too lengthy?)
EDIT: After receiving some feedback and realizing my previous message was confusing, allow me to try again. Imagine I have two paragraphs - one that spans ten lines of text and another that is only three lines. For the first paragraph, I'd like each line to be numbered from 1 to 10, and for the second paragraph, I want the numbering to go from 1 to 3. Does that make more sense now?