DefaultDiffStyle
is a low-level option for Diff and related functions that specifies the default styles to use when viewing changes.
Details
- DefaultDiffStyleassoc can use the following keys to describe different elements of the diff result:
-
"Added" style for added elements "Changed" style for changed elements "Conflict" style for conflicts "NotChanged" style for elements that have not changed "Removed" style for removed elements - Color directives such as Red, as well as text specifications such as Bold or Small, can be given in place of options, just as in Style.
- Using DiffStyle<keyspec > is effectively equivalent to replacing the diff elements specified by key with Style[diffelement,spec].
- DefaultDiffStyle< > introduces no default style specifications, leaving all elements effectively unstyled and visually indistinguishable from one another.
- DiffStyle is applied after DefaultDiffStyle.
Examples
Basic Examples (1)
When DiffStyle is used, its settings are combined with the default diff styling:
DefaultDiffStyle directly overwrites default diff styling such as the background color:
Text
Wolfram Research (2024), DefaultDiffStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/DefaultDiffStyle.html.
CMS
Wolfram Language. 2024. "DefaultDiffStyle." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DefaultDiffStyle.html.
APA
Wolfram Language. (2024). DefaultDiffStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DefaultDiffStyle.html