highlight_matches: Apply HTML highlighting to designated lines in a song

Description Usage Arguments Value

View source: R/shiny_functions.R

Description

This function is intended to be used exclusively with the BobDylan shiny app that uses this library. It applies HTML hihglighing ('background-color: "#FFFF00') to lines of the song that match a given query.

Usage

1
highlight_matches(song_name, match_results)

Arguments

match_results

the return values from the function find_line_natches()

song

name of a Bob Dylan song

Value

a single char string. Each line of the song is separated by </br>. Lines of the song that are indicated


kburnham/bobdylanr documentation built on May 6, 2019, 11:47 a.m.