Author Topic: Finding the longest line...  (Read 5199 times)


  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Finding the longest line...
« on: February 20, 2017, 06:34:03 PM »
This macro scans the current buffer for the longest line.

soft-wrap doesn't affect which line is the longest.

It also detects "hard wrap". In Tools > Options > File Options > Load "Wrap line length". In cases other than simple SBCS/DBCS buffers Slick will break really long lines into shorter lines.

This function can detect these lines and will correctly find the real longest line.
This is and enhancement of the code posted by Graeme:,11383.msg48081.html#msg48081

Updated for Slick 2017 (v22)
« Last Edit: October 30, 2017, 06:59:26 PM by jporkkahtc »