Skip to content

Commit

Permalink
Merge pull request #16 from rymai/pre-instead-of-div
Browse files Browse the repository at this point in the history
Use <pre> instead of <div> for the code element and add the 'highlight' class
  • Loading branch information
dewski committed Jun 21, 2017
2 parents 8d3b7a2 + f9ddb2b commit b1d82df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/peek/rblineprof/controller_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def inject_rblineprof
end
end
output << "<pre class='duration'>#{times.join("\n")}</pre>"
output << "<div class='code'>#{pygmentize(file_name, code.join, 'ruby')}</div>"
output << "<pre class='code highlight'>#{pygmentize(file_name, code.join, 'ruby')}</pre>"
output << "</div></div>" # .data then .peek-rblineprof-file
end

Expand Down

0 comments on commit b1d82df

Please sign in to comment.