jsdiff: Create a diff view using jsdiff

Description Usage Arguments

View source: R/jsdiff.R

Description

This creates a jsdiff widget which allows user to see differences between two strings.

Usage

1
2
jsdiff(oldStr, newStr, diffType = c("Lines", "Words", "Chars"),
  language = "r", width = NULL, height = NULL)

Arguments

oldStr

Old string of text to diff

newStr

New string of text to diff

diffType

Type of diff to use

language

The syntax highlighting language to use

width

Fixed width for widget (in css units). The default is NULL, which results in intelligent automatic sizing based on the widget's container.

height

Fixed height for widget (in css units). The default is NULL, which results in intelligent automatic sizing based on the widget's container.


saurfang/jsdiff documentation built on May 29, 2019, 3:19 p.m.