@@ -466,9 +466,7 module ApplicationHelper | |||||
466 | end |
|
466 | end | |
467 |
|
467 | |||
468 | def syntax_highlight_lines(name, content) |
|
468 | def syntax_highlight_lines(name, content) | |
469 | lines = [] |
|
469 | syntax_highlight(name, content).each_line.to_a | |
470 | syntax_highlight(name, content).each_line { |line| lines << line } |
|
|||
471 | lines |
|
|||
472 | end |
|
470 | end | |
473 |
|
471 | |||
474 | def syntax_highlight(name, content) |
|
472 | def syntax_highlight(name, content) |
General Comments 0
You need to be logged in to leave comments.
Login now