A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

write code snippets in word documment



 
 
Thread Tools Display Modes
  #1  
Old November 24th, 2008, 05:09 AM posted to microsoft.public.word.docmanagement
george chen
external usenet poster
 
Posts: 2
Default write code snippets in word documment

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.
  #2  
Old November 24th, 2008, 07:29 AM posted to microsoft.public.word.docmanagement
p0
external usenet poster
 
Posts: 258
Default write code snippets in word documment

On 24 nov, 06:09, george chen
wrote:
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
  #3  
Old November 24th, 2008, 03:51 PM posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default write code snippets in word documment

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.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"george chen" wrote in message
...
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.



  #4  
Old November 25th, 2008, 12:18 AM posted to microsoft.public.word.docmanagement
Dan Freeman
external usenet poster
 
Posts: 212
Default write code snippets in word documment

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

Suzanne S. Barnhill wrote:
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.

"george chen" wrote in message
...
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.



  #5  
Old November 25th, 2008, 12:47 AM posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default write code snippets in word documment

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

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Dan Freeman" wrote in message
...
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

Suzanne S. Barnhill wrote:
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.

"george chen" wrote in message
...
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.






  #6  
Old November 25th, 2008, 04:27 PM posted to microsoft.public.word.docmanagement
Dan Freeman
external usenet poster
 
Posts: 212
Default write code snippets in word documment

I far prefer Notepad. g

Dan

Suzanne S. Barnhill wrote:
So what you're saying is that Word is not the best editor for code?
g

"Dan Freeman" wrote in message
...
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

Suzanne S. Barnhill wrote:
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.

"george chen" wrote in
message ...
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.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.