“If your business depends on you, you don't own a business--you have a job. And it's the worst job in the world because you're working for a lunatic!”
by Michael E. Gerber The E-Myth (Revisited)

Snippet: Line Number

This snippet will prefix text line with their respective line numbers.
Handy little diagnostic snippet, it is. It supports configuration to change the line-numbers’ surrounding characters.

Click here to download the snippet: Line Number

Sample Input:
* Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
* Donec posuere nulla eu eros.
* Mauris fringilla fermentum lorem.
* Morbi eget orci pulvinar nunc sodales malesuada.
* Integer at est at dui dapibus ultrices.

Sample Output:
(1) * Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
(2) * Donec posuere nulla eu eros.
(3) * Mauris fringilla fermentum lorem.
(4) * Morbi eget orci pulvinar nunc sodales malesuada.
(5) * Integer at est at dui dapibus ultrices.

Leave a Reply

Tags
Get a free book about code review best practices.