View Source KinoDiff (kino_diff v0.1.0)

A kino for rendering the diff between two strings.

examples

Examples

KinoDiff.new(
  """
  a
  b
  c
  """,
  """
  a

  c
  """,
  layout: :inline,
  wrap: true
)


KinoDiff.new(
  """
  a
  b
  c
  """,
  """
  a

  c
  """,
  layout: :split
)

Link to this section Summary

Functions

Creates a new kino displaying the diff of the two strings.

Link to this section Functions

Link to this function

new(string1, string2, opts \\ [])

View Source

Creates a new kino displaying the diff of the two strings.

options

Options

  • :layout - whether to show the diffs :inline or :split

  • :wrap - whether long lines should wrap