You can generate source code for a Pascal unit and save it to disk as follows.
toolbar button (or select Search | Select Snippets) then
select the routines you require in the
Select Snippets dialogue box. (Note
that you can also select snippets using any of the program's search
options – see the Search Database
task for more information).
toolbar button or choose the File | Save Unit menu option.
See the Save Unit dialogue box help topic for detailed information about all available options.
Whether certain warnings are inihibited in the generated code can be specified using the Code Generation page of the Preferences dialogue box. The default commenting style, syntax highlighting and file type can be also be configured using the Code Formatting tab.
Freeform snippets cannot be included in a unit. Any freeform snippets included in the current selection will be ignored.