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 dialog 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 dialog box help topic for detailed information about the available options.
Whether certain warnings are inihibited in the generated code can be specified using the Code Generation tab of the Preferences dialog 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.