Compare
The Editor → Compare section controls how Gramax highlights edits in article text: in the article change history, when comparing catalog revisions, and when reviewing changes before publishing.
At the bottom of the section, Preview shows a sample article with edits. It immediately reflects how highlighting will look with the selected values. Changes apply after you click Save. If a value differs from the default, a button to restore the default appears next to it.
Main parameters
Highlight granularity — how precisely changes inside a paragraph are marked. Default — Hybrid.
Hybrid — a small edit, such as a typo, is highlighted by letters, a larger one — as a whole word.
Letters — shows exactly which letters changed.
Words — a changed word is highlighted as a whole, so the text reads cleaner.
Collapse threshold — how large an edit inside a paragraph gets tucked under a marker you can expand. A value from 0.1 to 1: at 0.1 almost any edit collapses, at 1 — none. Default — 0.5. A paragraph deleted whole is always collapsed.
For developers
The collapsed For developers block holds the parameters of the comparison algorithm. Change them only if highlighting in your articles doesn't work as expected.
Paragraph matching — how much a paragraph can change and still count as an edit rather than a deletion plus an addition. From 0 to 1, default — 0.3. Raise it to show heavily rewritten paragraphs as a deleted and a new one.
Update delay — the pause after typing before highlighting redraws. From 0 to 1000, default — 300. Raise it if long articles feel sluggish.
Noise threshold — short fragments that match by coincidence after a rewrite count as unchanged. From 1 to 10, default — 3. Raise it so such matches don't fragment the highlighting.
Common word threshold — a word found in this many paragraphs or more doesn't help match an edited paragraph. From 1 to 64, default — 16. Raise it if similar paragraphs get mixed up.
Cut-down paragraph: words — how many words must remain in a heavily shortened paragraph for it to count as an edit rather than a deletion plus a new paragraph. From 1 to 20, default — 4.
Cut-down paragraph: share — which share of the remaining words must match the old paragraph. From 0.5 to 1, default — 0.8. Lower it if heavily shortened paragraphs split into a deletion and an addition.