Is it possible (via script or whatnot), to trigger an event before a file is written to disk (i.e. PreWrite)? Basically I'd like to call the Astyle Plugin when I save the file and have it format the file prior to writting it to disk.
Thank you.
Two thoughts:
1) http://forums.next.codeblocks.org/index.php?topic=6129.0
2) Send the astyle menu item an wxCommandSelelected event.