I do this all the time using the syntax highlighter in
If you don't have Notepad++ (my favorite code/text editor),
get it here: http://notepad-plus-plus.org/
Here's how to get syntax highlighted code into your
1: Open source file with Notepad++
2: In Notepad++ click Plugins > NppExport > Export to RTF
You will now have a syntax highlighted copy of your source
file however, it will be double spaced. To remove the extra
spaces proceed as follows:
1: With any editor, open the .rtf file you just created
2: Search and replace "\par" with "\line"
3: Save file
Open the .rtf file with LibreOffice Writer, select all
(CTRL-A), copy & paste into your working document.
This sounds like a bit of an ordeal, but I do this quite
frequently, and once you've done it a few times, it becomes
very fast and easy.
On 8/11/2013 9:22 PM, aihaike wrote:
thank you for you reply.
This the kind of macro I need but it does not seem to work with LibreOffice
I think I'm going to make a snapshot of my codes and include them as a
View this message in context:
Sent from the Users mailing list archive at Nabble.com.
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted