Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

DiffTools

Guides

  • Diff Tools

Tech Notes

  • Comparing Notebooks
  • Introduction to DiffTools

Symbols

  • AlignCellLists
  • BaseDiffStyle
  • Diff3
  • DiffApply
  • DiffGranularity
  • DiffInputFunction
  • DiffInvert
  • Diff
  • DiffObject
  • DiffView
  • IgnoreElements
  • IncludeMatches
  • MoreMatches
[
EXPERIMENTAL
]
Wolfram`DiffTools`
DiffGranularity
​
DiffGranularity
is an option to
Diff
and related functions that indicates with what granularity to compare the given expressions.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
By default, strings are compared as a sequence of characters:
In[1]:=
Diff

,

Out[1]=
Use
DiffGranularity
to treat strings as a sequence of lines instead:
In[2]:=
Diff

,
,
DiffGranularity
"Lines"
Out[2]=
SeeAlso
Diff
RelatedGuides
▪
Diff Tools
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com