Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • yes. maybe they do it this way. I am not 100% convinced for two reasons: a) their highlighting doesn't get added to the undo actions array. If you do myRange.Font.Underline = you'll see a VBA.Formatting in Word's Undo button. and b) if you get their highlighted text and paste in another document, it's clean. Maybe there is some beforepaste event (though i can't seem to find one). Commented Jan 8, 2021 at 18:23
  • Agreed, the underline formatting is not how Grammarly replaced the spell checker markings (and the Word Undo List confirms this). I think @AlexyAndrushkevich is correct that the underlines are drawn. If you could see Grammarly's original code or decompile it, I am guessing System.Drawing would be used extensively. This, combined with Grammarly controlling functionality via events (as discussed in my answer), should give you a pretty good picture of how Grammerly works. Commented Jan 9, 2021 at 20:08