DiffAlignmentMethod
is an option to Diff and related functions that specifies how to align cells when comparing notebooks.
Details
![](Files/DiffAlignmentMethod.en/details_1.png)
- Possible settings for DiffAlignmentMethod include:
-
"CellEditDistance" align cells based upon pairwise values of EditDistance and ByteCount "ExpressionUUID" align cells with matching ExpressionUUID values "SequenceAlignment" align cells according to the alignment determined by SequenceAlignment - The default value of DiffAlignmentMethodAutomatic is usually equivalent to "ExpressionUUID". In unusual cases where cells in one or both notebooks are missing ExpressionUUID values, Automatic effectively reverts to "CellEditDistance".
Examples
Basic Examples (1)
Construct notebook expressions to compare:
Align the cells based on their ExpressionUUID values:
Align the cells based on an analysis of the cell contents:
Do not attempt to align individual cells with one another in a block of changed cells:
Text
Wolfram Research (2024), DiffAlignmentMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/DiffAlignmentMethod.html.
CMS
Wolfram Language. 2024. "DiffAlignmentMethod." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DiffAlignmentMethod.html.
APA
Wolfram Language. (2024). DiffAlignmentMethod. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DiffAlignmentMethod.html