If you use Vim to edit Gilda source code you can run the Gilda Pretty Printer while editing. You can enter code in lower case and it'll be formatted with the proper casing. Code and comments will also be properly indented. Using a pretty printer ensures that code is consistently formatted thoughout a project.
Vim is a legacy text editor that is widely used and is highly configurable. The easiest way to install Vim on a Windows PC is to use the standard self-installing executable from the Vim download page.
To conveniently format Gilda code from Vim by programming a key to run the Pretty Printer. Your preferences are configured by modifying the the Vim Resource File. Here is a good introduction to Vim customization.
On Windows a good way to get setup is to set the HOME environment to the directory where you have your programming projects. Then create a Vim resource file $HOME\_vimrc with your settings.
The following snippet of code can be placed in the Resource File to format your source code when you press the F2 function key. You might want to assign different keys, but this example should get you started. We assume you are somewhat familiar with using Vim.
let g:source=bufname() inoremap <F2> <C-O> :exe ":1,$!pretty.gilda.exe -in " g:source()<CR> nnoremap <F2> :exe ":1,$!pretty.gilda.exe -in " g:source()<CR>
These three lines are interpreted as follows:
let g:source=bufname() - Set the global source variable to the file name; blank if no name. inoremap - Map a key while in insert mode; which is where you can modify text. nnoremap - Map a key in normal mode; which is where you enter editor commands. :exe - Evaluate the command to substitute the global source variable to the file name. <F2> - Designates the F2 function key. <C-O> - Designates the Ctrl/O key. Here it causes the editor to temporarily leave insert mode to execute a command. :1,$ - Pipe all lines of text in the edit buffer into the command. ! - Execute run the pretty.gilda.exe program. -in - Direct pretty.gilda.exe to read from stdin. <CR> - Designates a carriage return to launch the program.
Here is more information on Mapping keys in Vim.