Skip to main content
Module

x/diff_kit/mod.ts>DiffTextStyles

Deno lib that compares 2 strings and generates result like assertEquals(), also in HTML
Go to Latest
interface DiffTextStyles
import { type DiffTextStyles } from "https://deno.land/x/diff_kit@v2.0.2/mod.ts";

Properties

optional
minusBegin: string

What to insert before "-" char that denotes line deletion. Like <b style="color:red">

optional
minusEnd: string

What to insert after "-" char that denotes line deletion. Like </b>

optional
plusBegin: string

What to insert before "+" char that denotes line insertion. Like <b style="color:green">

optional
plusEnd: string

What to insert after "+" char that denotes line insertion. Like </b>

optional
deletedLightBegin: string

What to insert in the beginning of deleted line. Like <span style="color:red">

optional
deletedLightEnd: string

What to insert in the end of deleted line. Like </span>

optional
insertedLightBegin: string

What to insert in the beginning of inserted line. Like <span style="color:green">

optional
insertedLightEnd: string

What to insert in the end of inserted line. Like </span>

optional
deletedBegin: string

What to insert where actual deleted chars on the line are starting. Like <span style="background-color:red; color:white">

optional
deletedEnd: string

What to insert where actual deleted chars on the line are ending. Like </span>

optional
insertedBegin: string

What to insert where actual inserted chars on the line are starting. Like <span style="background-color:green; color:white">

optional
insertedEnd: string

What to insert where actual inserted chars on the line are ending. Like </span>