Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-07-2013, 09:00 AM
yudiannlu yudiannlu is offline stop spell check in the code block Windows 7 64bit stop spell check in the code block Office 2013
Novice
stop spell check in the code block
 
Join Date: Nov 2013
Posts: 2
yudiannlu is on a distinguished road
Default stop spell check in the code block

How can I stop the "Spell Checking" in a "code block"? I need post some "C Code" on the Word documentation, the code have a lots of user defined name and a lots of spell error because of the funny prefix. How can I set this code block without spell checking, but rest of document still have it.



Thanks
Reply With Quote
  #2  
Old 11-07-2013, 09:11 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is online now stop spell check in the code block Windows 7 64bit stop spell check in the code block Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 4,010
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

In Word, select the text and click Review | Language | Set Proofing Language. Select "Do not check spelling or grammar," and then click OK.

Since you do this often, you may want to create a paragraph style which includes the "Do not check..." setting.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #3  
Old 11-07-2013, 09:24 AM
yudiannlu yudiannlu is offline stop spell check in the code block Windows 7 64bit stop spell check in the code block Office 2013
Novice
stop spell check in the code block
 
Join Date: Nov 2013
Posts: 2
yudiannlu is on a distinguished road
Default

Thank you. That help a lots. Could you help me how to create the "paragraph style without spell check" or modify the existence style?
Thanks
Lu
Reply With Quote
  #4  
Old 11-07-2013, 09:42 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is online now stop spell check in the code block Windows 7 64bit stop spell check in the code block Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 4,010
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

See http://wordfaqs.mvps.org/MasterSpell...#ExemptingText.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #5  
Old 11-07-2013, 10:34 PM
macropod's Avatar
macropod macropod is offline stop spell check in the code block Windows 7 32bit stop spell check in the code block Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,387
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Attached is an example of the 'Macro' Style I use. Note the custom tabs, colour, etc. - and no spell checking.
Attached Files
File Type: doc Demo.doc (32.5 KB, 11 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 11-07-2013, 10:53 PM
fumei fumei is offline stop spell check in the code block Windows 7 64bit stop spell check in the code block Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

Paul, just curious. As you have Macro as the following paragraph style, is there a reason why your code block uses a Shift+Enter for the lines?
Reply With Quote
  #7  
Old 11-08-2013, 12:34 AM
eNGiNe eNGiNe is offline stop spell check in the code block Windows 7 32bit stop spell check in the code block Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

Don't know what Paul's reasons may be, but it's exactly what I do with my :xmp style: for readability. A .ini file, for instance, may include several sections; it's easier to read when lines in each section end with a soft return and each section ends with a hard return – visual result, clear blocks of information.
Reply With Quote
  #8  
Old 11-08-2013, 04:39 AM
macropod's Avatar
macropod macropod is offline stop spell check in the code block Windows 7 32bit stop spell check in the code block Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,387
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by fumei View Post
Paul, just curious. As you have Macro as the following paragraph style, is there a reason why your code block uses a Shift+Enter for the lines?
Just to keep them together as a single paragraph. Makes it much easier for copying & pasting into the vbe later on.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 11-08-2013, 10:56 AM
fumei fumei is offline stop spell check in the code block Windows 7 64bit stop spell check in the code block Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

Why does it make it easier, are you using code to grab it? Otherwise if you are just selecting I can not see a difference. But whatever.
Reply With Quote
  #10  
Old 11-08-2013, 01:42 PM
macropod's Avatar
macropod macropod is offline stop spell check in the code block Windows 7 32bit stop spell check in the code block Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,387
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Triple-click selects a whole paragraph, thus the whole code block. If I left the module as separate paragraphs, I couldn't do that.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
spell check



Similar Threads
Thread Thread Starter Forum Replies Last Post
Spell Check HondaS600 Office 5 08-26-2013 01:04 PM
stop spell check in the code block Spell Check CommoMP Word 5 05-30-2011 05:40 PM
stop spell check in the code block Spell check issue Roscoe Word 1 04-02-2010 04:12 PM
Spell-Check dictionaries P. Alkuin Word 0 03-20-2010 03:37 AM
Spell Check WorkerB Word 2 11-21-2009 07:22 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft