title: How do I embed source code or HTML in Open Office Org Presentations without using screenshots?
body: <p>I need to write a lot of class courses <strong>presentations</strong> to my programming class, and I constantly need to show <strong>source code</strong> (mainly <strong>C</strong> code).</p>
  
  <p><img src="https://i.stack.imgur.com/W2c1U.png" alt="enter image description here"></p>
  
  <p>I don't find a easy way to:</p>
  
  <ol>
  <li>Copy my <strong>source code</strong> from my editor (kate) and </li>
  <li>Paste it formated and with source <strong>highlighted</strong> to an <strong>Open Office Presentation</strong> (OOP). </li>
  </ol>
  
  <p>What I use to do is a <strong>snapshot</strong> if the code is small, or to stop presentation and open Kate in the datashow if it is too big.</p>
  
  <p>In this <a href="https://stackoverflow.com/questions/281025/how-to-format-a-block-of-code-within-a-presentation">other question</a> some suggest to embed <strong>HTML</strong> code. So I installed <strong>QSource-Highlight</strong> that easily <strong>convert C code to HTML</strong> (also gnu source-highlight, code2html, and so on). None of them can convert source code to a version of a highlighted <strong>RTF</strong> (rich text format), that would be another way to go.</p>
  
  <p>Having HTML doesn't help, because I can't find a easy way to <strong>insert HTML into a presentation</strong> either. This site show a very trick windows <a href="http://www.fauskes.net/nb/syntaxms/" rel="noreferrer">solution</a>. It needs to convert c code to HTML using an specific windows program that has an option to copy the HTML as RTF, after that you need to past the RTF in Word or Wordpad, and after that you special past RTF to PowerPoint. All good, but I'm a <strong>linux</strong> user, and I think there might be a better way.</p>
  
  <p>Also, there is another possible solution, installing <strong>coooder</strong> extension to openoffice. I don't know why, but trying to install this extension in my system gives me an error. Synaptic tell's me that openoffice.org-core and a lot of other should be marked. I click next, and it tells me it wants to remove all the packages, and that coooder needs this packages to work, and so it is not going to be installed. Well...</p>
  
  <p><em>I'm using linux UBUNTU 10.04, and Open Office 3.2</em></p>
  
  <p>Thanks!
  Beco.</p>
  
  <p>PS.:
  This question is debated in <a href="https://meta.stackexchange.com/questions/85493/question-meta-question-meta-meta-question">meta-so</a> as possible duplication of the question cited above. But it is my understanding that the older question doesn't solve this <strong>specific</strong> problem.</p>
  
  <p>PPS.: About the coooder bug, I've launched a bug report <a href="https://bugs.launchpad.net/ubuntu/+source/ooo-build-extensions/+bug/577434" rel="noreferrer">here</a></p>
  
  <hr>
  
  <p>Edit (2015-08-19)</p>
  
  <p>To insert a RTF text to presentation LibreOffice you can use menu <code>insert</code>, <code>file</code>, and <code>rtf</code> (or <code>HTML</code>).</p>