Solved It is there a way to use visual studio code for scripts in OpenBOR?

Question that is answered or resolved.

Smart Kitty

Well-known member
I'm quite used to vscode and since scripts seems like based in C, it sounds like a good idea. But last time I tried all the code was underlined in red so idk if it is not that compatible with it or the formatting it's a bit different.
 
Solution
Are you referring to a script within a TXT file or to .c files?

If you mean .c files, Visual Studio Code should automatically detect the syntax and apply the corresponding extension (it asks if you want to download it when you open the file), so perhaps you don't have a C extension loaded.

1780856228185.png
Visual code open a .C file from openbor game.

If you mean a script within a .TXT file, it's more complex, since you have to define the set of rules (These programs typically assign highlighting rules based on the file extension you open.), and I doubt there's a ready-made extension for that.

I recently started a game from scratch in OpenBOR and created a set of rules for highlighting the entity TXT files, but I use Kate.
1780856274765.png
Are you referring to a script within a TXT file or to .c files?

If you mean .c files, Visual Studio Code should automatically detect the syntax and apply the corresponding extension (it asks if you want to download it when you open the file), so perhaps you don't have a C extension loaded.

1780856228185.png
Visual code open a .C file from openbor game.

If you mean a script within a .TXT file, it's more complex, since you have to define the set of rules (These programs typically assign highlighting rules based on the file extension you open.), and I doubt there's a ready-made extension for that.

I recently started a game from scratch in OpenBOR and created a set of rules for highlighting the entity TXT files, but I use Kate.
1780856274765.png
 
Last edited:
Solution
Ye, it had only for C++, I would checked before but I usually don't use C (I work mostly with java under intelliJ). Anyways installed the C extension and now works, it still marks red void variables but I think that is normal lang behavior, I know openbor script it's not identical to C in some ways. Thank you :>
 
Back
Top Bottom