feat: custom languages syntax (WIP)
This commit is contained in:
@@ -74,7 +74,6 @@
|
||||
multiline='true'
|
||||
line-numbers='true'
|
||||
oncontrolkey='on_control_combination'
|
||||
syntax='lua'
|
||||
size-func="-1,40"
|
||||
text-wrap='false'
|
||||
scroll-step='50'
|
||||
|
||||
@@ -197,6 +197,7 @@ function open_file_in_editor(filename, line, mutable)
|
||||
editor.scroll = 0
|
||||
editor.text = source
|
||||
editor.focused = true
|
||||
editor.syntax = file.ext(filename)
|
||||
if line then
|
||||
time.post_runnable(function()
|
||||
editor.caret = editor:linePos(line)
|
||||
|
||||
Reference in New Issue
Block a user