Description:
add lexer for php
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r451:46e3534d5d5d - - 1 file changed: 1 inserted, 0 deleted

@@ -80,6 +80,7
80 when "ruby" then Rouge::Lexers::Ruby.new
80 when "ruby" then Rouge::Lexers::Ruby.new
81 when "python" then Rouge::Lexers::Python.new
81 when "python" then Rouge::Lexers::Python.new
82 when "java" then Rouge::Lexers::Java.new
82 when "java" then Rouge::Lexers::Java.new
83 + when "php" then Rouge::Lexers::PHP.new
83 end
84 end
84 @formatted_code = formatter.format(lexer.lex(@submission.source))
85 @formatted_code = formatter.format(lexer.lex(@submission.source))
85 @css_style = Rouge::Themes::ThankfulEyes.render(scope: '.highlight')
86 @css_style = Rouge::Themes::ThankfulEyes.render(scope: '.highlight')
You need to be logged in to leave comments. Login now