0

I have a piece of code (e.g. a C or Java function) which I'm going to put in a presentation. I would like to have this code syntax-highlighted; but LibreOffice Impress (and MS Powerpoint) don't have this feature. And while other editors/IDEs do have it - it's only for internal display, not for copying elsewhere.

So, how can I achieve "persistent" syntax highlighting, producing something in a file or in the clipboard which I can copy/open in my office suite with the highlighting still visible?

Note: I'm on Linux.

Bonus points if:

  • The highlighting uses styles (e.g. you can change the color of all keywords by changing a document character style)
  • The solution supports adding line numbers as well.
einpoklum
  • 10,666

0 Answers0