|Topic was automatically imported from the old Question2Answer platform.
so I have created a plugin in godot for editing scripts in a second window so I can see the 3D viewport while scripting. problem is it doesn’t have any syntax highlighting.
now the other day I found a way to export the godot editors themes to use in your UI in an application. is there a Way I can do that with the Syntax and just copy the editor’s syntax Highlighting?
Have you considered using an external editor?
spaceyjase | 2023-03-29 11:39
Sounds pretty cool, Have you also considered adding that to the asset library?
Wakatta | 2023-03-29 18:02
I will do that later today just keep in mind it has no syntax highlighting as per my original question.
you wouldn’t perhaps know where I could get a syntax highlighter resource for free or would I have to completely make my own from scratch?
Cyber-Kun | 2023-03-30 08:34
also I accedentally used a textedit node instead of CodeEdit so it won’t have any form of autocompletion
Cyber-Kun | 2023-03-30 08:45
and another problem would be that if you edit the script in the plugin it won’t immediately reflect in the editor youd have to reload it first
Cyber-Kun | 2023-03-30 08:46
Have you seen this from gdquest? GitHub - GDQuest/learn-gdscript: Learn Godot's GDScript programming language from zero, right in your browser, for free.
It features syntax highlighting and is written in godot. The source may provide inspiration for syntax highlighting in your own component.
spaceyjase | 2023-03-30 08:47
ok so I’m trying to add it to the asset library now but I need a Git Commit Hash and I don’t know where to get that
Cyber-Kun | 2023-03-30 09:10
ok I added it to the asset library with the name Script Editor Docker
it’s currently pending approval from the moderators and it’s also on github at:
GitHub - CyberGh0st-droid/Godot-4.0-Text-Editor-Docker: Allows you to add a docker in the editor that can be used to edit scripts
It could stand to get a lot of improvement though and currently it’s very minimal
Cyber-Kun | 2023-03-30 12:24
no I have not seen it however I will be reading through it now thank you very much
Cyber-Kun | 2023-03-30 20:58