view vendor/gems/coderay-0.9.7/lib/coderay/scanners/_map.rb @ 586:658cfb481618 feature_36

Order BibTeX entry types in a sensible order for presentation to user, instead of alphabetically by BibTeX name as previously (requires database re-seed). Provide a label for each entry type, and use it in the edit dropdown and show page. Omit duplicate entry type (conference) from edit dropdown. Use existing entry attribute labels in show_bibtex_fields.
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 12 Aug 2011 13:15:05 +0100
parents 0579821a129a
children
line wrap: on
line source
module CodeRay
module Scanners

  map \
    :h => :c,
    :cplusplus => :cpp,
    :'c++' => :cpp,
    :ecma => :java_script,
    :ecmascript => :java_script,
    :ecma_script => :java_script,
    :irb => :ruby,
    :javascript => :java_script,
    :js => :java_script,
    :nitro => :nitro_xhtml,
    :pascal => :delphi,
    :plain => :plaintext,
    :xhtml => :html,
    :yml => :yaml

  default :plain

end
end