I have to write some documents that will include source code examples. Some of the examples will be written from the IDE, and others would be written in place. My examples a
If you are still looking for an simple way to add code snippets.
you can easily go to [Insert] > [Object] > [Opendocument Text] > paste your code > Save and Close.
You could also put this into a macro and add it to your easy access bar.
notes: