Skip to content

[Feature Request] Statistics to exclude comments #883

Closed

Description

@emkayonline

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.

Thank you,

Martin

Activity

  1. cyanzhong commented on Apr 16, 2025

    @cyanzhong
    Contributor

    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:

    <!-- This is a comment. -->
    

    Or:

    [//]: # (This is a comment.)
    

    Maybe let's focus on <!-- This is a comment. --> since MarkEdit uses this in Edit menu.

  2. cyanzhong commented on Apr 17, 2025

    @cyanzhong
    Contributor

    I would like to make this idea a bit more well-defined; we currently have these metrics:

    Image

    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.

  3. emkayonline commented on Apr 18, 2025

    @emkayonline
    Author

    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.

  4. cyanzhong commented on Apr 20, 2025

    @cyanzhong
    Contributor

    Having values for both w/ and w/o is too complicated.

  5. emkayonline commented on Apr 23, 2025

    @emkayonline
    Author

    Thank you - looking forward to trying it in the next release.

    MarkEdit (and you) are just amazing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions