mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -05:00
Adding Clojure and Lua as choosable languages.
This commit is contained in:
parent
74ef9bc987
commit
0b5854765a
3 changed files with 5 additions and 1 deletions
|
@ -60,7 +60,7 @@ UserSchema = c.object {},
|
|||
colorConfig: c.object {additionalProperties: c.colorConfig()}
|
||||
|
||||
aceConfig: c.object {},
|
||||
language: {type: 'string', 'default': 'javascript', 'enum': ['javascript', 'coffeescript']}
|
||||
language: {type: 'string', 'default': 'javascript', 'enum': ['javascript', 'coffeescript', 'clojure', 'lua']}
|
||||
keyBindings: {type: 'string', 'default': 'default', 'enum': ['default', 'vim', 'emacs']}
|
||||
invisibles: {type: 'boolean', 'default': false}
|
||||
indentGuides: {type: 'boolean', 'default': false}
|
||||
|
|
|
@ -10,6 +10,8 @@ block modal-body-content
|
|||
select#tome-language(name="language")
|
||||
option(value="javascript" selected=(language === "javascript")) JavaScript
|
||||
option(value="coffeescript" selected=(language === "coffeescript")) CoffeeScript
|
||||
option(value="clojure" selected=(language === "clojure")) Clojure (Experimental)
|
||||
option(value="lua" selected=(language === "lua")) Lua (Soon)
|
||||
span.help-block(data-i18n="play_level.editor_config_language_description") Define the programming language you want to code in.
|
||||
.form-group.select-group
|
||||
label.control-label(for="tome-key-bindings" data-i18n="play_level.editor_config_keybindings_label") Key Bindings
|
||||
|
|
|
@ -18,6 +18,8 @@ module.exports = class SpellView extends View
|
|||
editModes:
|
||||
'javascript': 'ace/mode/javascript'
|
||||
'coffeescript': 'ace/mode/coffee'
|
||||
'clojure': 'ace/mode/clojure'
|
||||
'lua': 'ace/mode/lua'
|
||||
|
||||
keyBindings:
|
||||
'default': null
|
||||
|
|
Loading…
Reference in a new issue