I'm using an older programming language called ATLAS and with this language you have to manually add line numbers which can be a daunting task when editing someone else's old code. I've read other posts on this forum about using the Insert Number function but none of them seem to address this scenario.
My question/scenario is as follows: I need to add a line number but only after a specific character is detected. It's important to note that the line numbers are in column 2 to column 8. Is it possible for this to be achieved by a script? Or maybe I'm not using the Insert Number function correctly?
A line end is signified by the dollar sign $. Here's an example of how the code looks.
Code: Select all
000100 *some code here* $
000101 *some more code here* $
000102 *this time we have some code
that spans over multiple lines so
I don't want to put a line number
on these lines* $
000103 *some more code* $