Class HtmlDiffOutputGenerator

HtmlDiffOutputGenerator class

Represents a class for generating html representation of texts differences. Deleted line breaks are indicated by paragraph mark.

public class HtmlDiffOutputGenerator : IFileOutputGenerator, IStringOutputGenerator

Constructors

NameDescription
HtmlDiffOutputGenerator()Creates an instance of HtmlDiffOutputGenerator class.
HtmlDiffOutputGenerator(OutputTextStyle)Creates an instance of HtmlDiffOutputGenerator class.

Properties

NameDescription
DeleteStyle { get; set; }Gets and sets the CSS-style string for Delete operation. Example:
EqualStyle { get; set; }Gets and sets the CSS-style string for Equal operation. Example:
InsertStyle { get; set; }Gets and sets the CSS-style string for Insert operation. Example:
StrikethroughDeleted { get; set; }Get or set text-decoration: line-through style for the delete operation. Default value is False.

Methods

NameDescription
GenerateOutput(List<DiffOperation>)Generates the output based on the differences between texts and saves it to a file.
GenerateOutput(List<List<DiffOperation>>)Generates the output based on the differences between texts and saves it to a file.
GenerateOutput(List<DiffOperation>, string)Generates the output based on the differences between texts and saves it to a file.
GenerateOutput(List<List<DiffOperation>>, string)Generates the output based on the differences between texts and saves it to a file.

See Also