{"id":430,"date":"2009-01-18T17:24:48","date_gmt":"2009-01-18T16:24:48","guid":{"rendered":"http:\/\/www.dotmana.com\/index.php\/?p=430"},"modified":"2009-01-18T17:24:48","modified_gmt":"2009-01-18T16:24:48","slug":"how-to-copy-and-paste-highlighted-and-intented-source-code-in-open-office","status":"publish","type":"post","link":"http:\/\/www.dotmana.com\/weblog\/2009\/01\/how-to-copy-and-paste-highlighted-and-intented-source-code-in-open-office\/","title":{"rendered":"How to: Copy and Paste highlighted and intented source code in Open Office"},"content":{"rendered":"<p>Maybe you have some repport due, where few lines of code are needed, but Open Office Writer doesn&#8217;t handle .c source file, neither .py, .m<br \/>\nThe solution:<\/p>\n<p>sudo apt-get install highlight<\/p>\n<blockquote><p>gedit &#8220;~\/.gnome2\/nautilus-scripts\/Highlight and open with OOO&#8221;<\/p><\/blockquote>\n<p>#!\/bin\/bash<br \/>\n#<br \/>\nhighlight -o \/tmp\/highlight_temp_file.html $*<br \/>\nopenoffice \/tmp\/highlight_temp_file.html<br \/>\nrm \/tmp\/highlight_temp_file.html<\/p>\n<blockquote><p>chmod +c &#8220;~\/.gnome2\/nautilus-scripts\/Highlight and open with OOO&#8221;<\/p><\/blockquote>\n<p>And now, any right clic on a file, and it&#8217;s opened in OOO with nice colors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Maybe you have some repport due, where few lines of code are needed, but Open Office Writer doesn&#8217;t handle .c source file, neither .py, .m The solution: sudo apt-get install highlight gedit &#8220;~\/.gnome2\/nautilus-scripts\/Highlight and open with OOO&#8221; #!\/bin\/bash # highlight &hellip; <a href=\"http:\/\/www.dotmana.com\/weblog\/2009\/01\/how-to-copy-and-paste-highlighted-and-intented-source-code-in-open-office\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-430","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/comments?post=430"}],"version-history":[{"count":0,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/430\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/media?parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/categories?post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/tags?post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}