Ask Your Question

Can I get syntax highlighting for javacode, bash, etc. in Writer? [closed]

asked 2012-02-19 19:10:42 +0100

anonymous user


updated 2012-03-07 01:47:28 +0100

I would like to add some javacode and some bash (console) output into my writer. Well thats not so hard, I can copy the stuff. But I would like to make them look like javacode and bash. Something like in latex: \lstset{language=Java} ...

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-05 04:46:27.584442

1 Answer

Sort by » oldest newest most voted

answered 2012-02-19 22:59:06 +0100

cloph gravatar image

you could try the COOoder extension - I didn't check whether it still works with current versions of OOo and LibreOffice, but just give it a try.

edit flag offensive delete link more


It looks like it requires Java - I couldn't get it to work in 3.5.

MagicFab gravatar imageMagicFab ( 2012-03-07 01:59:08 +0100 )edit

it does require java, but that doesn't hinder the extension from working with my copy of 3.5 :-) - you just need to make sure that you have a matching java runtime installed (64bit for 64bit LibreOffice, 32bit for 32bit LibreOffice). I'm using java version 1.6.0 from OpenJDK without any problem.

cloph gravatar imagecloph ( 2012-05-19 18:56:09 +0100 )edit

Just stepped into this problem. I found this question in an Internet Search Engine and tested it. As of the date, this is working perfectly for GNU/Linux Debian _Wheezy_ LibreOffice There is a bug when highlighting code in a cell inside a table, but this is a less than minor issue.

uprego gravatar imageuprego ( 2014-01-20 08:02:04 +0100 )edit

Question Tools


Asked: 2012-02-19 19:10:42 +0100

Seen: 2,881 times

Last updated: Mar 07 '12