Embedded syntax highlighted sourcecode into OpenOffice.org Write

Embedded syntax highlighted sourcecode into OpenOffice.org Write

The other day I was in need to embed some sourcecode into an OpenOffice.org Document. Normally I’m using LaTex and then can use the lgrind tool to prepare my sourcecode and use lgrindfile{file} to embed it. Well but I’m somehow required to use OpenOffice.org Writer to generate a MS Office .doc file.

After some googling the GNU Source-highlight project came to rescue. I can syntax highlight my source code and patches, then I can use a HTML renderer to render these pages, select and copy the text and finally paste it into OpenOffice.org writer.

It works great!

Comments are closed.