How do I embed source code or HTML in Open Office Org Presentations without using screenshots?

前端 未结 9 846
忘了有多久
忘了有多久 2021-01-31 01:59

I need to write a lot of class courses presentations to my programming class, and I constantly need to show source code (mainly C

9条回答
  •  北恋
    北恋 (楼主)
    2021-01-31 02:29

    I have exactly the same problem, but with PHP code rather than C. My almost-solution is to copy the code as HTML in Kate and paste it into a temporary Open Office Writer document. That converts it to Open Office's own styled text format, and from there you can copy and paste it into Impress. Aside from the slightly annoying double-step copy-and-paste, this mostly works fine except that lines that were entirely in bold lose their emboldening and I have to manually fix them. A few other strange bugs can occur too - Impress's import of styled text from OOWriter appears to be a bit buggy.

提交回复
热议问题