Display a small sample diff with the Style object styles applied. For ANSI light and dark styles, will also temporarily set the background and foreground colors to ensure they are compatible with the style, even though this is not done in normal output (i.e. if you intend on using a “light” style, you should set your terminal background color to be light or expect sub-optimal rendering).

# S4 method for class 'Style'
show(object)

# S4 method for class 'StyleHtml'
show(object)

Arguments

object

a Style S4 object

Value

NULL, invisibly

Examples

show(StyleAnsi256LightYb())  # assumes ANSI colors supported
#> Object of class `StyleAnsi256LightYb`:
#> 
#> < diffobj:::.mx1   > diffobj:::.mx2 
#> @@ 6,4 @@          @@ 6,3 @@        
#>    [5,]    5   30     [5,]    5   30
#> <  [6,]    6   31  >  [6,]   99   31
#> <  [7,]    7   32  ~                
#>    [8,]    8   33     [7,]    8   33
#> ... omitted 4/9 lines, 1/2 hunks    
#> 
#> Default bg and fg colors forced to appropriate colors
#> for scheme; this does not happen in actual use.