Add code highlighting to solution treema nodes in level editor

This commit is contained in:
Scott Erickson 2016-01-06 09:57:58 -08:00
parent 9b2cfeafb1
commit d1e7055b1a

View file

@ -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: ->