This is a simple description on how to include highlighted and formatted code into an OpenOffice document, for example Writer or Impress. I use this approach to include X3D code in an Impress presentation with black background with very good results.
pablo
.highlight -RIs pablo -K 18
-i code.x3d -o file.rtf
I have written myself a small
script that does this, so I don't have to remember the command
line.file.rtf
can now be imported into your
OpenOffice document and the formating will be included. In
Impress select Insert
→ File...