Skip to content

Commit

Permalink
add java and friends to the syntax highlighting party
Browse files Browse the repository at this point in the history
  • Loading branch information
bkad committed Sep 28, 2011
1 parent fb46059 commit a32656a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/albino_filetype.rb
Expand Up @@ -2,6 +2,8 @@ class AlbinoFiletype
EXTENSION_TO_FILETYPE = {
".rb" => :ruby,
"Rakefile" => :ruby,
"Capfile" => :ruby,
"Gemfile" => :ruby,
".erb" => :rhtml,
".xml" => :xml,
".js" => :javascript,
Expand All @@ -14,7 +16,9 @@ class AlbinoFiletype
".h" => :c,
".as" => :actionscript,
".scala" => :scala,
".sbt" => :scala
".sbt" => :scala,
".java" => :java,
".jsp" => :jsp
}
def self.detect_filetype(filename)
# if path, separate file from path
Expand Down

0 comments on commit a32656a

Please sign in to comment.