- AuthorPosts
- March 13, 2015 at 1:29 pm #19911
jic
ParticipantGreetings!
I am trying to find out if there is a way of counting the highlighted lines. I know I can subtract the top from the bottom, but, it would be nice to have a footer with the line count of the highlighted lines. This is good when you are creating groups of items and they all need to be the same amount of lines. Highlighting it will tell you the line count and you can check if you are missing or have extra, etc. Is this a possibility? Thanks.
March 14, 2015 at 9:34 am #19913Stefan
Participant“””have a footer with the line count of the highlighted lines”””
Try “Tools > Customize… > [Status] > [X] Number of Lines”March 17, 2015 at 8:36 am #19928jic
ParticipantSo easy. Thanks.
June 24, 2025 at 7:11 pm #30318jic
ParticipantOk, so highlighted lines in sequences work. But, I would like to count highlighted lines that are not sequencial. For example:
a
b
c
d
e
f
gif I highlight a, b, and c, the highlighted line status shows 3/7. However, if I choose a, c, e and f, the highlighted line status shows 0/7. That is not correct. How do I fix this, or is this a bug? I am using version 25.2.0. Thanks.
June 25, 2025 at 3:39 am #30319Patrick C
ParticipantPerhaps you ticked the wrong boxes.
“Tools > Customize… > [Status] > [X] Number of Lines”
Actually reads
Number of Lines (in the selection/total)
So this has nothing to do with bookmarks.
The option to display the number of bookmarked lines in the status bar is.
Tools → Customize… → Status → Bookmark Count in the Entire Document
In version 25.2.0 the status bar then displays.
… | 0/7 lines | 4 Bookmarks
4 Bookmarks actually means “4 bookmarked lines”. Adjacent bookmarked lines are counted individually, i.e. are seen as separate bookmarks.
June 25, 2025 at 3:44 am #30320Patrick C
ParticipantSorry, just realised that what you mean by “highlighted lines” is “lines in the selection(s)” rather than bookmarks.
In my case EmEditor’s behaviour with selected lines is just as you described.June 25, 2025 at 3:49 am #30321Patrick C
ParticipantWhat you could do is bookmark the lines in the selection(s) (Ctrl + F2) and then remove the bookmarks (Ctrl + F2).
However, this will only work well when your document hasn’t got any pre-existing bookmarked lines.June 25, 2025 at 4:00 am #30322jic
ParticipantI can’t be bookmarking the lines all the time. I do a lot of reporting and I copy the data to EmEditor and massage it, search/replace, etc. in EmEditor. But, as I do things, I want to know the count of certain lines that contain specific charateristics. I don’t like to compare, but this is possible in Notepad++. I don’t know why it’s not available in EmEditor. It should be.
June 25, 2025 at 5:16 am #30323Patrick C
ParticipantYou could do the following regular expression search, limit it to the selection(s) and count the matches:
.*
EmEditor’s status bar will display both the number of lines and the number of selections.Moreover, the search could be automated in a macro.
PS Though, I’d suggest to first wait for Yutaka’s opinion on whether this is intended or rather an oversight that will be fixed in one of the next updates.
June 25, 2025 at 11:54 am #30324Yutaka Emura
KeymasterPS Though, I’d suggest to first wait for Yutaka’s opinion on whether this is intended or rather an oversight that will be fixed in one of the next updates.
Could you clarify the issue/question? Thank you.
June 25, 2025 at 5:34 pm #30325jic
ParticipantI know how to do too, but, what I need is simpler.
June 25, 2025 at 5:41 pm #30326jic
ParticipantTo replicate my problem, follow these steps:
– open a new document in emeditor
– copy this string:
<string>
a
b
c
d
e
f
g
</string>
– paste that string on the new document.
– double click on the line containing a
– hit the CTRL key and click on the c, e and g with the CTRL key pressed.
– look at the bottom right of the emeditor, it shows “0/7 lines” when it should say “4/7 lines”.Now, hightlight a, b and c, it shows 3/7 lines.
June 26, 2025 at 3:06 am #30327Patrick C
ParticipantJune 26, 2025 at 4:12 pm #30332Yutaka Emura
KeymasterThank you for bringing this to my attention.
The character count was correct because it included newlines (CR+LF) when the “Always insert newlines when copying multiple selections” option is enabled on the Edit page in Customize. However, I will change this behavior in the next version. The word and line counts will also be fixed in the next version.June 27, 2025 at 3:04 am #30334jic
ParticipantThank you, Yutaka.
June 28, 2025 at 9:29 am #30336Patrick C
ParticipantThank you from my side too Yutaka!
- AuthorPosts
- You must be logged in to reply to this topic.