Word highlighting or character highlighting: which one to use
Two kinds of edit get mixed together in the same afternoon. A harbor office rewrote a sentence on a notice board. Separately, a parts clerk mistyped a catalog number by one character. Both people said they needed to “see the difference.” They did not need the same picture of that difference.
The notice said, in the morning draft, “The 6:40 ferry to Gould Island waits for the school bus.” By afternoon it said, “The 6:40 ferry to Gould Island leaves without the school bus.” One clause flipped the policy. A catalog line on the clerk’s desk changed from HK-2048-C to HK-204B-C. One glyph inside a code changed which bracket was in the drawer. Highlighting both problems as “a word changed” either hides the glyph or drowns the sentence.
Use words when the unit of meaning is a word
Word mode on the comparison page splits text into words, into runs of spaces, and into punctuation that is not part of a word. “Doesn’t” stays one word because the apostrophe is treated as part of the word. A comma after a place name is its own mark. When you click Compare, removals show on the left and additions on the right. Shared words stay plain, so your eye goes to the clause that moved.
On the ferry notice, word mode marks “waits for” as removed and “leaves without” as added. “The 6:40 ferry to Gould Island” and “the school bus” stay unmarked. That is the right picture for a person deciding whether the new policy is what the office meant. You are not inspecting the letters inside “Gould.” You are inspecting the verb. The summary above the columns will talk about words removed and words added, and about whether the right side is longer or shorter in characters and in words. A policy flip can be the same length and still be a complete change of instruction. The highlights show that. A character count alone does not.
Word mode is also the right first look at a rewritten paragraph, a translated sentence you are checking against the original language’s structure, or a list where a whole entry appeared or disappeared. If you only need to know that “ice” was added to a packing list, you do not need each letter of “ice” painted separately.
Use characters when one mark changes the meaning
Character mode compares graphemes, the visible characters, one at a time. On HK-2048-C versus HK-204B-C it marks the “8” and the “B” and leaves the rest of the code plain. Word mode is clumsier here. The code may be treated as one token or broken on the hyphens, and a single swapped character can light up a larger piece than you need. When the cost of a wrong character is a wrong part, a wrong dose, or a wrong apartment, switch to characters before you trust the highlight.
Names with close spellings belong in this mode too. “Anders” and “Andres” are one transposition. In a paragraph of biography they can hide inside word mode as a single replaced word, which you might skim as a style change. Character mode shows the letters that moved. Turn Ignore case off for this pass. “B” and “b” are different in a serial number even when they are the same letter to a reader of prose. Ignore case is for drafts where capitalization is noise. It is not for codes.
Emoji and accented letters are the other reason to know which mode you are in. Character mode follows graphemes, so a single emoji is one character when the browser can segment text that way. A web form that uses JavaScript’s string length may still count that emoji as two. If you are debugging a limit rather than a sentence, read why Word, Docs, and websites disagree on character counts before you decide the highlighter is “off by one.”
A practical order, not a loyalty to one button
Start in the mode that matches the thing you are afraid of getting wrong. For the ferry notice, that is words. For the bracket, that is characters. If a document contains both, do two compares. Paste the notice, compare in word mode, and write down the clause you need to confirm with the harbormaster. Then paste only the catalog numbers, switch to characters, and compare those. Mixing them in one box is allowed, and it is harder to read. The mode applies to the whole comparison, not to one corner of the text.
Whitespace sits between the two modes. Word mode does not count a pure space as a removed or added word. If the only change is a double space or a line break, the summary says the spacing or punctuation changed instead of pretending a word was deleted. Character mode will mark the extra space itself. When you care that two spaces became one, because you are matching a fixed-width record, use characters. When you care that a sentence was rewritten and the spaces are incidental, use words. Tabs and Windows line endings are a separate mess, covered in whitespace, tabs, and line endings.
What the marks will not do
Neither mode knows that “leaves without the school bus” contradicts “waits for the school bus.” It knows the words differ. You still have to notice that the policy reversed. Neither mode knows that bracket B is the stainless one and bracket 8 is the painted one. It knows the characters differ. The highlighter is a pointer. The decision stays with the person who knows the ferry and the drawer.
Very long passages that share almost no wording are shown as one removed block and one added block, because hunting for a tiny alignment inside two unrelated texts gets slow and the result is not more honest. A sentence and a part number are far inside the range where the fine-grained marks work. If a whole chapter comes back as one solid highlight, compare a section at a time, or accept that the new text is a replacement rather than an edit. Replacements are legitimate. They should look like replacements.
Pick the mode, paste the earlier text on the left and the later text on the right, and click Compare. Change the mode only when the picture is the wrong shape: whole words when you needed a glyph, or a spray of letters when you needed the clause. The ferry and the bracket were both “a small change.” They were not the same kind of small.