?
Solved

Turn off spell check for part of a document?

Posted on 2007-11-15
6
Medium Priority
?
3,040 Views
Last Modified: 2014-08-20
I am writing a MS Word document that contains .NET code in it as text.  Syntax color highlighted and everything.  

Is there a way I can turn off spell checking on the code sections of my document so I don't have to see all the red underlining on words not in the dictionary?
0
Comment
Question by:Bruce
6 Comments
 
LVL 12

Assisted Solution

by:James Elliott
James Elliott earned 200 total points
ID: 20289965
Tools => Options => Spelling & Gramma TAB

You can either turn off automatic checking, or you can set some other options to restricted when/how the checking performs.

Jell

0
 
LVL 1

Author Comment

by:Bruce
ID: 20290192
I'd like to keep spell checking on for the rest of the document.  My code is case sensitive so the option to not check uppercase words is not helpful.

I have tried to add some of the words to a custom dictionary but that is tedious.
0
 
LVL 6

Accepted Solution

by:
danich earned 1800 total points
ID: 20290230
In that case I'd cut the .NET code and save it in another document. In the original document put a placeholder word that is unique (my.netsavedcodeplaceholder for instance). Only one word to deal with then instead of bunches.

From here you can do one of two things:
1. When totally done with the document, bring the .NET code back in place of the placeholder
2. Do a dynamic link to the .net code that is stored in another file.

To answer the original question: no, spell check cannot be turned of for blobs within the document. All or nothing.
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 1

Author Closing Comment

by:Bruce
ID: 31409345
Thanks danich!  That's what I needed to know.
0
 
LVL 2

Expert Comment

by:kevincasey
ID: 21691857
I know this topic is old and closed, but the accepted answer isn't entirely accurate.  You can control grammar and spell checking on a paragraph-by-paragraph basis by setting the language.

For details on how to do so in Word '97, 2000, 2002 (XP), 2003, and 2007:
http://wordtips.vitalnews.com/Pages/T001763_Turning_Off_Spell_Checking.html

Kevin
0
 
LVL 2

Expert Comment

by:Robert Silver
ID: 40274432
How unfortunate!How Microsoft! I wonder if Open Office handles it better! All they need do is embed a special enable disable spell checking. At least they could do it within a table. Its just another example of poor design from Microsoft.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
Lost Word File? Eagerly, need it back? Read ahead; this File Recovery guide is for you.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question