I need to modify code so that the comment at the end of a line is moved to the beginning of the (new) line above. Are there editors that support this (I'm using NotePad++) an what would this be called?
feedback
|
|
I don't know what you would call it, but in Vim it is pretty easy to record an action that would:
For an even more generic solution it supports full regular expressions so you could do it on the entire document that way. | |||||
feedback
|
|
Notepad++ has a Macro feature. You can play with that and see if it does what you need it to do. For example, hit "start recording", search for "a", and then "stop recording". Then, Ctrl-Shift-P will allow you to search your whole document for 'a'. This is a simplistic explanation but you can get really complicated with the macro feature and get it to do pretty much anything you need. | |||
feedback
|
|
vi:
(Assuming comments start with a | |||
|
feedback
|