You can save either a single routine or a whole category of routines to disk as follows.
See the Save Annotated Source dialogue box help topic for detailed information about the available options.
Only functions, procedures and categories containing routines can be saved; type definitions, constants and freeform snippets are not supported.
Note that the default commenting style, syntax highlighting and file type can be configured using the Preferences dialogue box.