Laurent Godard wrote:
Hi


@ariel: If you can provide this code to me, I can save a lot of time.
After going through the code yesterday this was also my idea: creating
the styles if the are not existing - or import them from a
"masterdocument". But if you have code to create them - fine, that
should save time.


very interresting feature
would it be possible to adapt to other languages (java, c++, python (i have already one for thsi)

What about packaging as an extension ?

Laurent

Sorry, I have been busy. I will add the modifications mentioned by Ariel (have not yet done it). That said, the updated AndrewMacro.odt contains the code to highlight Java as well. It is not perfect by any stretch. For example, it does not properly recognize hex constants. The trick is that I need to write the recognizer for each type. You know, is this a constant or a variable. I suppose that if it does not start with a valid identifier, I can just assume that it is a constant. Hmm, that is probably easier.

This might be a nice thing to package as an extension.

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to