Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Perl script syntax highlighting in Microsoft word?

by ozgurp (Beadle)
on Oct 27, 2003 at 00:28 UTC ( #302291=perlquestion: print w/replies, xml ) Need Help??

ozgurp has asked for the wisdom of the Perl Monks concerning the following question:

Is it possible to highlight Perl syntax in a word document?
  • Comment on Perl script syntax highlighting in Microsoft word?

Replies are listed 'Best First'.
Re: Perl script syntax highlighting in Microsoft word?
by Roger (Parson) on Oct 27, 2003 at 00:53 UTC
      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.
      PerlWiz looks great!

      I am a Xemacs fan but not at that extent.

      I should try it.

      Thanks!

      Hope it would keep on working after 30 days...

Re: Perl script syntax highlighting in Microsoft word?
by sauoq (Abbot) on Oct 27, 2003 at 00:34 UTC

    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.";
    
      There are many vim2html scripts that allow one to export files to HTML using Vim syntax highlighting. Here is one. :)
Re: Perl script syntax highlighting in Microsoft word?
by etcshadow (Priest) on Oct 27, 2003 at 00:52 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://302291]
Approved by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2022-05-23 16:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?