I have acquired a huge codebase in which the previous developer(s) did not follow 80 characters length. I am trying to for a really long lines into multiple lines with continuation. This is a IDL
language.
Before
test_function, variable1, variable2, variable3, variable4, variable5, variabl6, variable7, vaiable8, variable9, variable10, ...
After
test_function, variable1, variable2, variable3, variable4, $
variable5, variable6, variable7, variable8, variable9, $
variable10
I have used formatprg
and par for formatting a paragraph. I am looking for a way so that it will break the line (intelligently) at about 80 characters at comma
(and possibly add continuation ($) sign). It will be a huge time saving, as I do not have to break these 1000's of lines to 80 characters manually.
Thank you.