On 10/14/2010 07:51 PM, Thangalin wrote:
Hi!
I would like to do the following:
- Link to an external source code file (for example a SQL script in ASCII
format)
- Apply syntax highlighting to the imported text
- Place the highlighted text inside a frame
- Add a caption to the frame
- Edit the external source file and have OpenOffice refresh the linked
content and re-apply syntax highlighting
Is this possible? If so, how? I could not find any examples.
You can see how I format code for display in this extension
http://extensions.services.openoffice.org/en/project/CodeFormatter
The purpose is to make it "pretty", but not to maintain this while
editing. There is an explanation of an older version of this here:
http://www.pitonyak.org/AndrewMacro.odt
Be warned, however, that there is a bug in OOo that will cause OOo to
crash when you close AndrewMacro.odt (a fix is in the works for the
bug). So, be certain to save all your work frequently after you open
this document. This might avoid the trouble (I think this link is good).
http://www.pitonyak.org/AndrewMacro.pdf
This is a tricky problem. If you really want it for editing, should
probably write something specifically for that, or just get an editor
that supports this sort of thing out of the box.
--
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]