Yutaka Emura

tranglos wrote:
Very often I need to ensure that a string does not exceed a particular length.

To this end it would be very helpful if EmEditor would display current selection length in the status bar, next to the cursor position field. I hoped this option would already be available in Customize -> Status, but it isn’t. Could this be added, please?

Use the following macro:


status = "Selection: " + document.selection.Text.length + " characters.";

and run this macro when you want to find the selection length. Or, even better, set this macro run at the event of selection changed. To do this, select Customize on the Macros menu, in the My Macros tab, select this macro (SelLength.jsee) in the list, check Runs at Events, click Events button, and check Selection Changed.