OpenOffice syntax highlighting

I have a lot of documentation for this that will contain code snippets that I would like to give to highlight the syntax of a common coding language. I was looking for a style function to do such a thing, but there is no way to do it (in fact, I could only find a forum where people struggled to add this function or not, but that is not the point).

There is a discarded extension for OpenOffice , but it freezes my OpenOffice installation.

What is the easiest way to do this? Should I try to recompile the extension and debug it (although it is already difficult for me to compile another Java project), or maybe I should use a macro? How to implement this?

+4
source share
1 answer

One possibility is to use one of the many codes for html tools and then include html in an OpenOffice document (using the "File ..." in the "Insert" menu).

One opportunity to highlight . Vim has a command :TOhtml , which converts the current file to the selected html syntax using the current color scheme. I have not tried, but this one looks promising. There are also several online games such as this . I am sure there are many other options.

+3
source

All Articles