| [reply] |
Thanks to you all, yes exporting Perl to HTML and RTF was what I was looking for. I am writing the user/developer docs for the Perl program I have written, and it would be useful to have the Perl syntax highlighted in the word document.
| [reply] |
| [reply] |
| [reply] |
Probably not easily. I'd guess your best bet would be to find a syntax highlighter for perl that would output in HTML and then import that.
Of course, that's not a solution if you actually want to use word to write Perl code. But why anyone would want to do that is beyond me. There are plenty of decent editors available.
-sauoq
"My two cents aren't worth a dime.";
| [reply] |
There are many vim2html scripts that allow one to export files to HTML using Vim syntax highlighting. Here is one. :)
| [reply] |
You might be able to find a text editor with a perl syntax mode that can copy rich-text to the clip-board. Then open your perl code in the appropriate text editor, copy (rich), paste into Word.
I assume that you want to show perl code in a Word document containing other writing... If you actually mean that you are editing perl code in Word... for the love of god stop. There are plenty of free or reg-not-required shareware editors out there that are far better suited to the task than word, of all things. I can't even imagine Bill Gates, himself, advocating the use of Word as a source-code editor.
------------
:Wq
Not an editor command: Wq
| [reply] |