From: Carlo Hogeveen
The following macro will do that, but it also works with the menu Find,
although you would have to do a lot of repeated typing then.
proc main()
string long_line [81] =
".............................................................................
...."
find(long_line, "givx")
end
Bi
Dave Guyer wrote:
>
> I find I spend more time doing code reviews than I'd like. Much of
> it is spent on programming style issues. So I am currently working
> on a macro to search for these problems. For many of them, I return
> a compressed view of the find results that I can edit then print.
>
> I'm stumped on one. How can I use compressed view to return line
> numbers and their length for all lines in the file longer than 80
> characters? I haven't been able to figure out how to use find and a
> regular expression to return a compressed view of lines longer than
> 80 characters, and if I could, I'm not sure how I'd get the length
> into the compressed view.
>
> All ideas and suggestions will be gratefully accepted! Thanks in
> advance.
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)
|