This is a library to assist the parsing of git diff
output and subsequent display.
{ container : List (Html.Attribute msg)
, line : List (Html.Attribute msg)
, lineNumber : List (Html.Attribute msg)
, deleted : List (Html.Attribute msg)
, added : List (Html.Attribute msg)
, keyword : List (Html.Attribute msg)
, constant : List (Html.Attribute msg)
, customType : List (Html.Attribute msg)
, definition : List (Html.Attribute msg)
, buildIn : List (Html.Attribute msg)
, comment : List (Html.Attribute msg)
, other : List (Html.Attribute msg)
}
viewChunks : Config msg -> List Diff.Chunk -> Html msg
Display diff chunks. By default it adds two rows of line numbers on the left, and colors the the line base on whether the line has been added or removed.
viewError : Diff.Error -> Html msg
Helper to view parsing errors.