Exporting source code in different format
Code::Blocks allows user to export source code to HTML, RTF, ODF, or PDF format. Perform the following steps to export source in different format:
To export a file as PDF format go to File | Export | As PDF… menu option.
Enter a file name and path in the next dialog. Click on the Save button to continue.
Code::Block will prompt to confirm inclusion of line numbers in the exported source code. Select Yes or No option and that particular source file will be exported.