COOoder

(7 votes)
Bash script highlighted

This extension provides syntax highlighting features for OpenOffice.org. COOoder will be usefull for developers wanting to present code fragments in writer documents. The colors used are the same than the ones from GeSHi. Character styles will be created for each language element.

Download extension
Operating System: System Independent
Compatible with: OpenOffice.org 2.2 | StarOffice 8 Update 6 or higher.
Official release: 1.1.1
Date: 2008-Nov-14
Size: 387.35 KB
License: opensource | Read license
Source code: Browse source code
Further product information: Product details

Comments

Very Useful!!!

Many Thanks.

It works pretty good in Linux Fedora 10/11 with Openoffice 3.1.

For feedback: the extension does not work if the text is inside a table

It works!

1.1.1 release works for me (after some tries..) with JDK 1.6 (sudo apt-get install sun-java6-jdk) and OOo 3.1.0.

Chooose JDK 1.6 at Tools> Options > OpenOffice.org > Java.

Bye

Cannot install plugin on Ubuntu 8.10 java 1.6

I have OOo3 installed with java 1.6 and when i try to load the plugin it gives this error:

(com.sun.star.registry.CannotRegisterImplemenationException)
{{Message = "", Context = (com.sun.star.uno.Xinterface) @ 0 }}

I can install other plugins.

what am I missing?

I apologize in advance if this is a stupid question, but how do you get this to function? I've installed it, I can see it in the extension manager, but I see no added character styles. I see a "add on" menu item added to the tools menu, but it appears to do nothing.

Again, I apologize of this is just being stupid, but I really can't find a way to "turn on" this extension. Sounds cool, though.

Any suggestions?

(winXPSP3, OOO3.0.0 build 9358)

jima

Re: What am I missing?

Of course, mere minutes after posting, I find that OOO has a tooltray app open, thus the "restart the app" action that I thought I had taken was not performed. Once I closed the quickstart app and restarted, things worked. Sorry for the dumb question, and the rudeness of replying to my own question. :)

impress support?

nice extension!
It would be good to have it working even on Impress.
I have to show some examples of code (they are short, don't worry!) in python, and it is silly to have to switch between writer and impress.

freezing OOo

it happen also to me

in the same time i press ok OOo get freezed and i can only kill process from taskmanager

i'm on win xp and using OOo 3.0.0

hope a new update can solve this problem

Freezing on Windows

I can reproduce the problem myself on a windows machine. I'm working on the eclipse integration for OpenOffice.org when I have free time: that's why I still haven't fixed that freezing problem. It's on my todo task.

Small glitch in PHP highlighting

Thanks for the extension Cédric! It seems to have a small problem with PHP highlighting. The following code snippet:

$var = my_function(array('test'));

Doesn't highlight the parenthesis correctly. The second '(' gets colored blue like the quoted text for some reason. I'm using this with openoffice 3 by the way. Thanks again. Tom.

After more testing, it

After more testing, it appears to be specifically when a '(' is followed by a single quoted string. With double quoted strings it works correctly.
Definitely a very cool extension though!
Tom

not case-sensitive languages

Hello Cédric,
Thank you for this nice extension!
I'm trying to use it with StarBasic (ok VB is quite the same) but your engine recognizes only lower case words.
AFAIK almost all BASIC dialects aren't case sensitive so your extension should behave accordingly

Hi Paolo, Hum, I haven't

Hi Paolo,

Hum, I haven't checked all the languages. I'll have a look at this.
Thank you for your feedback

Cedric

OOo 3 and Java 1.6

Under OOo3 and Java 1.6 (OS=WinXP, but shouldn't matter) this extension makes OOo freeze completely after selecting a language in the dialog box: the cursors sets to the hourglass one and i just can't do anything but kill OOo.

Same here

It's freezing for me after selecting the language (in this case java). This is on OOo3/Vista HP

Same experience with esa

Same with you esa, I user OOo3 anda Java 1.6 and it always freeze after selecting language.

I tested this extension

I tested this extension under OOo 3 and Java 6 under Ubuntu 8.10 and it works fine for me. When you select the language it takes some seconds (5 - 10) to load the syntax library.

tested on XP SP3 and hava 1.6 and the application freezes

I'm having the same problem other users are facing.

When I try changing the programming language from the toolbar, the application completely hangs-up, freezes, kaboom and not for only 10 secs, I leaved the app open for way more than ten minutes and it was completely frozen.

I'm using Windows XP SP3 and JRE 1.6.

Error in syntax highlighting

Hello, when I try to highlight python code (selecting it and issuing the command) I get the following error in a panel:
«Error during syntax highlighting
For input string: "lack"»
But I still get some lines correctly highlighted (the first ones).

If I highlight an Objective-C file it works well.
I use Mac OS X 10.5.4 on an Intel MacBook. Version of OpenOffice.org: OOo 3.0.0 (build: 9350)
Maybe it's a problem of the OpenOffice beta.

Thanks in advance!

Pietrodn
http://meta.wikimedia.org/wiki/User:Pietrodn

Fixing a parsing problem

Hi Pietrodn,

Could you provide me a sample of non-working code in private ?

Thanks