class Diffy::HtmlFormatter
def highlight(lines)
def highlight(lines) "<strong>" + lines. # strip diff tokens (e.g. +,-,etc.) gsub(/(^|<LINE_BOUNDARY>)./, ''). # join characters back by stripping out newlines gsub("\n", ''). # close and reopen strong tags. we don't want inline elements # spanning block elements which get added later. gsub('<LINE_BOUNDARY>',"</strong>\n<strong>") + "</strong>" end