Commit 078ec3ca authored by Romain Reuillon's avatar Romain Reuillon
Browse files

[Gui] fix: change order of instructions

parent 6d45dcd4
Pipeline #979 passed with stage
in 12 minutes and 13 seconds
......@@ -70,7 +70,7 @@ class EditorPanelUI(treeNodeTabs: TreeNodeTabs, safePath: SafePath, fileType: Fi
implicit val ctx: Ctx.Owner = Ctx.Owner.safe()
lazy val editor = {
val editor = {
val edDiv = tags.div(id := "editor").render
val ed = ace.edit(edDiv)
......@@ -78,13 +78,13 @@ class EditorPanelUI(treeNodeTabs: TreeNodeTabs, safePath: SafePath, fileType: Fi
js.Dynamic.global.ace.config.set("modePath", "/js")
js.Dynamic.global.ace.config.set("themePath", "/js")
ed.setTheme("ace/theme/github")
ace.require("ace/ext/language_tools")
EditorPanelUI.highlightedFile(fileType).foreach { h
ed.getSession().setMode("ace/mode/" + h.highlighter)
}
//ed.setTheme("ace/theme/github")
ace.require("ace/ext/language_tools")
ed.renderer.setShowGutter(true)
ed.setShowPrintMargin(true)
ed.setAutoScrollEditorIntoView(true)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment