Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to include some Java code in a Word document. It looks bad when it takes 1-2 pages. I'd like to put it in some kind of text area with a scrollbar. Does MS Word have such a feature?

PS This document won't be printed

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Create file htmlarea.html:

<html>
 <body>
 <textarea cols="80" rows="12"></textarea>
 </body>
</html>

Open file in Internet Explorer. Press Ctrl+A, Ctrl+C. (copy htmltextarea)

Open file in Internet Explorer Press Ctrl+V in Microsoft Word. (paste htmltextarea)

htmltextarea in Microsoft Word 2007

Resize htmltextarea in Design mode.

Waring! Design mode may clear htmltextarea text in unsave document!

Resize htmltextarea

Close Design mode. Insert text. Not table or image, text only. The text is not color. Insert text

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.