Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the last letter in the word "SlickEdit":
How many LETTERS are in the following? "a1b2c3":
Which number is missing?  "12345689":

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: jporkkahtc
« 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: https://community.slickedit.com/index.php/topic,11383.msg48081.html#msg48081

Updated for Slick 2017 (v22)