For syntax highlighting you can usually use JavaScript or C syntax highlighting.
The configs you find in the save directory in control_configs
will be overwritten every time you restart the game.
If you want to make a custom control script, you need to create a copy with a different name.
Sadly if there is a syntax error in these scripts, the script will be parsed up until that error without notifying you, so that you will have only partially working controls!