Ask Your Question
1

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

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

Miller gravatar image Miller
11 1 1 3

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

MagicFab gravatar image MagicFab flag of Canada
690 5 12 23
http://wiki.documentfound...

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} ...

delete close flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
3

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

cloph gravatar image cloph
2802 4 18 43

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.

link delete flag offensive edit

Comments

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

MagicFab ( 2012-03-07 01:59:08 +0200 )edit
1

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 ( 2012-05-19 18:56:09 +0200 )edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 908 times

Last updated: Mar 07 '12