You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Statistics to exclude comments #883
Wow. MarkEdit is amazing - so pared down - but leaving in every feature that I want. Incredible.
OK, there is one thing.
I'd love it if the statistics could exclude commented out sections. When I'm writing I pepper in and paste in a lot of ideas, but I'd love to see the word count for the real words that will be rendered.
I would like to make this idea a bit more well-defined; we currently have these metrics:
Words, Sentences, Paragraphs are "natural language processing" based, meaning the app understands the content, characters like Markdown syntax are already excluded. It makes sense to exclude comments too (and it would be nicer to have a row for "number of comments").
However, Characters and File Size should always reflect the actual content IMO. Though it feels a little bit inconsistent.
Thank you. You have clearly identified the edge cases that make it tricky. Perhaps it would work to have words showing two values - with comments and without - or is that cluttering it too much.
The comments I was referring to are of the format with < ! - - etc, (sorry I cound't work out how to escape it nicely like you did in GitHub.
Activity
cyanzhong commentedon Apr 16, 2025
Thanks for the feedback, I think this is not a bad idea. Technically, I am not sure if comments can be precisely excluded though, need to take a look.
Just to be clear, what kind of comments are you referring to?
Is it:
Or:
Maybe let's focus on
<!-- This is a comment. -->since MarkEdit uses this in Edit menu.cyanzhong commentedon Apr 17, 2025
I would like to make this idea a bit more well-defined; we currently have these metrics:
Words,Sentences,Paragraphsare "natural language processing" based, meaning the app understands the content, characters like Markdown syntax are already excluded. It makes sense to exclude comments too (and it would be nicer to have a row for "number of comments").However,
CharactersandFile Sizeshould always reflect the actual content IMO. Though it feels a little bit inconsistent.emkayonline commentedon Apr 18, 2025
Thank you. You have clearly identified the edge cases that make it tricky. Perhaps it would work to have words showing two values - with comments and without - or is that cluttering it too much.
The comments I was referring to are of the format with < ! - - etc, (sorry I cound't work out how to escape it nicely like you did in GitHub.
cyanzhong commentedon Apr 20, 2025
Having values for both w/ and w/o is too complicated.
emkayonline commentedon Apr 23, 2025
Thank you - looking forward to trying it in the next release.
MarkEdit (and you) are just amazing