From d3c8ce83adad5ea2fd2f6bbbe5dc259460b6dcf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20D=C3=A9cima?= Date: Tue, 23 Aug 2016 14:56:50 -0300 Subject: [PATCH 1/2] Add Groovy and move extensions from Java --- js/background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/background.js b/js/background.js index e6df38c..446c922 100644 --- a/js/background.js +++ b/js/background.js @@ -18,10 +18,11 @@ fsharp: ['fs'], gherkin: ['feature'], go: ['go'], + groovy: ['groovy', 'gvy', 'gy', 'gsh'], haml: ['haml'], haskell: ['hs'], http: ['http'], - java: ['java', 'class', 'fx', 'groovy', 'gsh', 'gvy', 'gy'], + java: ['java', 'class', 'fx'], javascript: ['js'], json: ['json'], lisp: ['lsp', 'lisp', 'cl', 'el', 'scm'], From c95e2655371821493645329e17a12f12361965ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20D=C3=A9cima?= Date: Tue, 23 Aug 2016 16:18:52 -0300 Subject: [PATCH 2/2] Add support for many file types already supported by highlight.js --- js/background.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/js/background.js b/js/background.js index 446c922..6192283 100644 --- a/js/background.js +++ b/js/background.js @@ -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'], @@ -14,33 +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'], + 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']