Login  Register

Re: Is there a text-editor trick to write several identical lines of code while incrementing the numbers on each line ?

Posted by WBahn on May 08, 2020; 2:06pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Is-there-a-text-editor-trick-to-write-several-identical-lines-of-code-while-incrementing-the-numbers-tp4034607p4034608.html

It's something that you could throw a script together to do very easily in something like python or perl. There are probably text editors that have sufficient support for macros that might support it.

There have been a few text editors (there was a nice little editor for the Texas Instruments Professional computer called CSE -- it was the Texas Chain Saw Editor) that allowed you to highlight, copy, cut, paste any rectangular region on the screen, which made this king of editing trivially easy. I've only seen one other editor -- can't think of what it was -- the supported that feature, but I know there have been others.