Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2012, 08:03 PM
Jennifer Murphy's Avatar
Jennifer Murphy Jennifer Murphy is offline Style doesn't enforce "Do not check spelling" Windows XP Style doesn't enforce "Do not check spelling" Office 2007
Competent Performer
Style doesn't enforce "Do not check spelling"
 
Join Date: Aug 2011
Location: Silicon Valley
Posts: 234
Jennifer Murphy is on a distinguished road
Default Style doesn't enforce "Do not check spelling"


I have a document with a lot of code snippets. I created a "$code" style to control the formatting (monospace font). It occurred to me that I might be able to turn off spell and grammar check in the style. In the Language option, I found a checkbox for "Do not check spelling and grammar". I checked it and saved the changes.

The wavy red underlines disappeared from the code that was selected and few lines around it, but most of the rest of the document still have them. If I select some code and reapply the style, the underlines disappear.

I also tried copying some code with the underlines to another location in the document and the underlines did not appear.

How come the style setting isn't applied to the whole document?

I just tried closing the document and reopening it. Now the style appears to be correctly applied everywhere.
Reply With Quote
  #2  
Old 01-29-2012, 05:43 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Style doesn't enforce "Do not check spelling" Windows 7 64bit Style doesn't enforce "Do not check spelling" Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 3,914
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

There might have been direct formatting applied to some text (causing a conflict with the setting in the style). By reapplying the style you got it to reset.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #3  
Old 01-29-2012, 08:47 AM
Jennifer Murphy's Avatar
Jennifer Murphy Jennifer Murphy is offline Style doesn't enforce "Do not check spelling" Windows XP Style doesn't enforce "Do not check spelling" Office 2007
Competent Performer
Style doesn't enforce "Do not check spelling"
 
Join Date: Aug 2011
Location: Silicon Valley
Posts: 234
Jennifer Murphy is on a distinguished road
Default

Stefan,

I don't I applied any direct formatting, at least not intentionally, as I don't know how to do that.

Is there some way I can tell if durect formattng has been applied and remove it?

Thanks, J
Reply With Quote
  #4  
Old 01-29-2012, 10:40 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Style doesn't enforce "Do not check spelling" Windows 7 64bit Style doesn't enforce "Do not check spelling" Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 3,914
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

Direct formatting is any formatting not applied via a style. To explicitly clear direct font and paragraph formatting from text, select it and press Ctrl+SpaceBar and Ctrl+Q.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #5  
Old 01-29-2012, 11:18 AM
Jennifer Murphy's Avatar
Jennifer Murphy Jennifer Murphy is offline Style doesn't enforce "Do not check spelling" Windows XP Style doesn't enforce "Do not check spelling" Office 2007
Competent Performer
Style doesn't enforce "Do not check spelling"
 
Join Date: Aug 2011
Location: Silicon Valley
Posts: 234
Jennifer Murphy is on a distinguished road
Default

OK. So I tried a little test (two actually). In a test document with 10-12 lines of text (one paragraph each). I created a $test style and assigned it to the entire document (all lines).

Test #1

I edited each line to apply some "direct" formatting. I made one line bold, another red, another in a different font, another in a larger point size, etc.

Then I edited the $test style changing several of the font and paragraph settings. When I pressed OK, some of the changes were applied to some of the lines, but not all changes were applied to all lines. I didn;t study it much, but couldn't see an obvious (to me) pattern.

Test #2

Then I right-clicked on one of those lines and selected Styles & Update $test to match selection. All of the formatting of that line was applied to all of the other lines.


This sure looks like either a bug or a design flaw.
Reply With Quote
  #6  
Old 01-29-2012, 05:28 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Style doesn't enforce "Do not check spelling" Windows 7 64bit Style doesn't enforce "Do not check spelling" Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 3,914
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

If direct font formatting has been applied to more than 50% of a paragraph, it will be cleared when you (re-)apply a paragraph style, otherwise it will be retained.

And note that when you update a paragraph style to match the selection, only the font formatting included in the selection will be incorporated into the style.

To make sure that you reset all font formatting to that of the underlying style, use Ctrl+SpaceBar on the selection. Similarly, use Ctrl+Q to clear the paragraph formatting.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #7  
Old 01-29-2012, 05:52 PM
Jennifer Murphy's Avatar
Jennifer Murphy Jennifer Murphy is offline Style doesn't enforce "Do not check spelling" Windows XP Style doesn't enforce "Do not check spelling" Office 2007
Competent Performer
Style doesn't enforce "Do not check spelling"
 
Join Date: Aug 2011
Location: Silicon Valley
Posts: 234
Jennifer Murphy is on a distinguished road
Default

I tried Ctrl+Space. It does as you say. It removes any "direct" formatting within the paragraph.

I tried Ctrl+Q, but couldn't see that it did anything. Can you give me an example?

Last edited by Jennifer Murphy; 01-29-2012 at 05:52 PM. Reason: Fix typo
Reply With Quote
  #8  
Old 01-30-2012, 12:51 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Style doesn't enforce "Do not check spelling" Windows 7 64bit Style doesn't enforce "Do not check spelling" Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 3,914
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

Change paragraph formatting such as line spacing; for example, you can change to double spacing by pressing Ctrl+2. Then press Ctrl+Q to revert to style defaults.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to select all paragraphs that belongs to certain "Style" but doesn't take its for Jamal NUMAN Word 6 09-21-2011 12:09 PM
Style doesn't enforce "Do not check spelling" "Table of content" based on "Normal Style" behavior!!!! Jamal NUMAN Word 4 07-08-2011 04:12 AM
Style doesn't enforce "Do not check spelling" The heading doesn't "obey" the "before" space! why? Jamal NUMAN Word 1 07-06-2011 04:25 AM
Style doesn't enforce "Do not check spelling" How the "Style" and the "List" are linked?? Jamal NUMAN Word 1 06-30-2011 05:18 PM
Style doesn't enforce "Do not check spelling" Why the "table of contents" doesn't take the same format of the "headings"? Jamal NUMAN Word 5 06-15-2011 10:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:04 AM.


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