I used Geany under Windows at this time.
Problem to be solved was:
Eliminine to start numbering from the source code taken from the Internet.
Use keys CTR + H to make replace text with regular expressions and check Use regular expressions from dialog.
For this we use the combination ^[0-9]means the beginning of a row and numbers and press In Document button.
See that in the image below:
Here are the results presented in the following image: