Web lists-archives.com

text editors

Is there any text editor, preferably in a terminal that has the facility to protect lines in the document, not the document itself ? I've got 2 blocks of "code" that look similar and I keep editing the wrong one and then it doesn't work.

Key ID    4BFEBB31