Add Recipemanager that loads recipes from YAML
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class_name YAMLCodeEdit extends CodeEdit
|
||||
|
||||
var syntax_highlighter_script = preload("res://addons/yaml/editor/syntax_highlighting/syntax_highlighter.gd")
|
||||
|
||||
func _init() -> void:
|
||||
# YAML indentation
|
||||
set_indent_size(2)
|
||||
set_indent_using_spaces(true)
|
||||
indent_automatic = true
|
||||
indent_automatic_prefixes = [":"]
|
||||
|
||||
# Syntax highlighting
|
||||
if not syntax_highlighter:
|
||||
syntax_highlighter = syntax_highlighter_script.new()
|
||||
Reference in New Issue
Block a user