mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Add code highlighting to solution treema nodes in level editor
This commit is contained in:
parent
9b2cfeafb1
commit
d1e7055b1a
1 changed files with 3 additions and 1 deletions
|
@ -256,7 +256,9 @@ class CodeTreema extends TreemaNode.nodeMap.ace
|
||||||
constructor: ->
|
constructor: ->
|
||||||
super(arguments...)
|
super(arguments...)
|
||||||
@workingSchema.aceTabSize = 4
|
@workingSchema.aceTabSize = 4
|
||||||
@workingSchema.aceMode ?= mode if mode = codeLanguages[@keyForParent]
|
# TODO: Find a less hacky solution for this
|
||||||
|
@workingSchema.aceMode = mode if mode = codeLanguages[@keyForParent]
|
||||||
|
@workingSchema.aceMode = mode if mode = codeLanguages[@parent?.data?.language]
|
||||||
|
|
||||||
class CoffeeTreema extends CodeTreema
|
class CoffeeTreema extends CodeTreema
|
||||||
constructor: ->
|
constructor: ->
|
||||||
|
|
Loading…
Reference in a new issue