Add Elixir to available languages (#61)

* Add Elixir mode to available languages

* Update module to mode
main
Stosh Fabricius 7 years ago committed by Jake Dexheimer
parent de11ff034f
commit 9be9ef1ac5

@ -131,6 +131,11 @@ export const LANGUAGES = [
name: 'Docker', name: 'Docker',
mode: 'dockerfile' mode: 'dockerfile'
}, },
{
name: 'Elixir',
mode: 'elixir',
custom: true
},
{ {
name: 'Elm', name: 'Elm',
mode: 'elm' mode: 'elm'

@ -0,0 +1,4 @@
import CodeMirror from 'codemirror'
// Require Codemirror elixir mode from npm modules and register it here
import registerElixirMode from 'codemirror-mode-elixir'

@ -16,6 +16,7 @@
"axios": "^0.16.2", "axios": "^0.16.2",
"body-parser": "^1.17.2", "body-parser": "^1.17.2",
"codemirror": "^5.26.0", "codemirror": "^5.26.0",
"codemirror-mode-elixir": "^1.1.1",
"dom-to-image": "^2.5.2", "dom-to-image": "^2.5.2",
"dropperx": "^0.0.3", "dropperx": "^0.0.3",
"express": "^4.15.3", "express": "^4.15.3",

@ -1176,7 +1176,13 @@ code-point-at@^1.0.0:
version "1.1.0" version "1.1.0"
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
codemirror@^5.26.0: codemirror-mode-elixir@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/codemirror-mode-elixir/-/codemirror-mode-elixir-1.1.1.tgz#cc5b79bf5f93b6da426e32364a673a681391416c"
dependencies:
codemirror "^5.20.2"
codemirror@^5.13.4, codemirror@^5.20.2, codemirror@^5.26.0:
version "5.30.0" version "5.30.0"
resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.30.0.tgz#86e57dd5ea5535acbcf9c720797b4cefe05b5a70" resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.30.0.tgz#86e57dd5ea5535acbcf9c720797b4cefe05b5a70"

Loading…
Cancel
Save