write code snippets in word documment

G

george chen

try to write code snippets, .net code, java code, and sql code in a word
document without any of the extra word hidden characters. anyone to shed
some lights on.

thanks.
 
P

p0

try to write code snippets, .net code, java code, and sql code in a word
document without any of the extra word hidden characters.  anyone to shed
some lights on.  

thanks.

If you save your code snippets in Word as .txt files, which hidden
characters do you see?

Yves
 
S

Suzanne S. Barnhill

You might want to apply a style such as Plain Text or Macro Text to these
code snippets. Any "hidden" (i.e., nonprinting) characters you see are just
representations of spaces, tabs, and the like and will not print. They
represent the same ASCII characters that would normally be used in code.
 
D

Dan Freeman

But many code editors don't SHOW the tabs (just white space), and some
actually physically change tabs to multiple spaces while you edit.
Developers just aren't used to seeing "stuff" in their code. :) (And
there's other "stuff" they are used to seeing, depending on their
environments.)

Dan
 
S

Suzanne S. Barnhill

So what you're saying is that Word is not the best editor for code? <g>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top