Skip to content

Commit

Permalink
Merge pull request tsenart#83 from sdecima/master
Browse files Browse the repository at this point in the history
Add support for many file types already supported by highlight.js
  • Loading branch information
tsenart authored Aug 26, 2016
2 parents c2e442e + c95e265 commit 39d3781
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion js/background.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
(function() {
const LANG_EXT_MAP = {
actionscript:['actionscript', 'as'],
apache: ['httpd', 'conf', 'htaccess'],
asciidoc: ['asciidoc'],
applescript: ['applescript'],
aspectj: ['aspectj', 'aj'],
avrasm: ['asm', 's'],
bash: ['sh', 'bash', 'zsh', 'shell'],
brainfuck: ['bf'],
Expand All @@ -14,32 +18,54 @@
delphi: ['pas'],
desktop: ['desktop'],
diff: ['diff', 'patch'],
dockerfile: ['dockerfile'],
dos: ['bat', 'cmd'],
elixir: ['ex', 'exs'],
erlang: ['erl', 'erlang'],
fortran: ['f', 'for', 'f90', 'f95'],
fsharp: ['fs'],
gherkin: ['feature'],
go: ['go'],
gradle: ['gradle'],
groovy: ['groovy', 'gvy', 'gy', 'gsh'],
haml: ['haml'],
handlebars: ['hbs', 'handlebars'],
haskell: ['hs'],
haxe: ['hx', 'hxml'],
http: ['http'],
java: ['java', 'class', 'fx', 'groovy', 'gsh', 'gvy', 'gy'],
ini: ['ini'],
java: ['java', 'class', 'fx'],
javascript: ['js'],
json: ['json'],
julia: ['jl'],
kotlin: ['kt', 'kts'],
less: ['less'],
lisp: ['lsp', 'lisp', 'cl', 'el', 'scm'],
livescript: ['ls'],
lua: ['lua'],
makefile: ['Makefile'],
markdown: ['md', 'markdown'],
nginx: ['nginx'],
objectivec: ['m', 'mm'],
ocaml: ['ml'],
perl: ['pl', 'pm', 'perl'],
php: ['php', 'phtml', 'phps'],
powershell: ['ps1', 'psm1'],
python: ['py', 'pyc'],
r: ['r'],
ruby: ['rakefile', 'gemfile', 'rb'],
scala: ['scala', 'scl', 'sca', 'scb'],
scss: ['scss', 'sass'],
smalltalk: ['st', 'sm', 'sll'],
sml: ['sml'],
sql: ['sql'],
stylus: ['styl'],
swift: ['swift'],
tex: ['tex'],
typescript: ['ts'],
vala: ['vala', 'vapi'],
vbnet: ['vb'],
vbscript: ['vbs'],
vhdl: ['vhd', 'vhdl'],
xml: ['atom', 'rss', 'vsproj', 'csproj', 'build', 'wsdl', 'config', 'xsd', 'plist', 'xib'],
yaml: ['yaml']
Expand Down

0 comments on commit 39d3781

Please sign in to comment.