WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

DiffGranularity

is an option to Diff and related functions that indicates with what granularity to compare the given expressions.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Properties & Relations  
See Also
History
Cite this Page

DiffGranularity

is an option to Diff and related functions that indicates with what granularity to compare the given expressions.

Details

Examples

open all close all

Basic Examples  (1)

By default, strings are compared as a sequence of characters:

Use DiffGranularity to treat strings as a sequence of lines instead:

Properties & Relations  (1)

Use DiffGranularity to perform a diff of the raw text of notebook files, line by line:

Wolfram Research (2024), DiffGranularity, Wolfram Language function, https://reference.wolfram.com/language/ref/DiffGranularity.html.

Text

Wolfram Research (2024), DiffGranularity, Wolfram Language function, https://reference.wolfram.com/language/ref/DiffGranularity.html.

CMS

Wolfram Language. 2024. "DiffGranularity." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DiffGranularity.html.

APA

Wolfram Language. (2024). DiffGranularity. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DiffGranularity.html

BibTeX

@misc{reference.wolfram_2025_diffgranularity, author="Wolfram Research", title="{DiffGranularity}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/DiffGranularity.html}", note=[Accessed: 14-January-2026]}

BibLaTeX

@online{reference.wolfram_2025_diffgranularity, organization={Wolfram Research}, title={DiffGranularity}, year={2024}, url={https://reference.wolfram.com/language/ref/DiffGranularity.html}, note=[Accessed: 14-January-2026]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /