Code & changes / What changed
Diff
Show additions, removals, and modifications through both color and explicit marks.
Basic usage
- public function build(): string + public function build(): Statement ~ @throws QueryException
HTML
<pre class="code diff"><span class="dl diff-line-del">- public function build(): string</span>
<span class="dl diff-line-add">+ public function build(): Statement</span>
<span class="dl diff-line-mod">~ @throws QueryException</span></pre>Classes & attributes
| Class / attribute | Purpose |
|---|---|
.diff / .dl | A diff block and an individual line. |
.diff-line-add / .diff-line-del / .diff-line-mod | Added, removed, and modified lines. |
.diff-run-add / .diff-run-del / .diff-run-mod | The changed run within a line. |
.is-added / .is-removed / .is-modified | Change marks for cells in a listing. |
Usage notes
Write +, −, and ~ in the HTML as well. The change remains meaningful after it is copied or printed.
Examples follow your system color scheme. Use ◐ in the header to try automatic, light, and dark themes.