I need help with the CodeEdit node

Godot Version

4.2.2.stable

Question

So I’m making a game engine in Godot, a text adventure engine (think Zork). So of course, the CodeEdit node is needed. But… I can’t add any delimiters. Nothing happens when I click “add delimiter”. For automatic indent prefixes, using the prefixes doesn’t make an automatic indent. The CodeEdit node is just really hard to work with, please help

It was the same for me, but I didn’t try further, maybe you should use the code:

I was trying to avoid that, but I guess if not using the inspector tab is the only option… is it also possible to use code to add new keywords to the syntax highlighter?

Yes, you can do anything with code for make scenes (of course, this need more time for develop and execute)
But you need use CodeHighlighter for CodeEdit:

Thank you! I needed that because the bug is also affecting the syntax highlighting in that, when trying to add new keywords through the inspector, simply typing in the input box will delete all keywords that are already in the keyword dictionary

The CodeEdit node is just confusing… what is the point of setting Comment Delimiters? I can just use CodeHighlighting to color areas that should be comments, so why do I need the comment delimiters specifically?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.