![]() |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]()
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 |
#3
|
|||
|
|||
![]()
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 |
#4
|
||||
|
||||
![]()
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
#5
|
||||
|
||||
![]()
Attached is an example of the 'Macro' Style I use. Note the custom tabs, colour, etc. - and no spell checking.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
|||
|
|||
![]()
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?
|
#7
|
|||
|
|||
![]()
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.
|
#8
|
||||
|
||||
![]()
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] |
#9
|
|||
|
|||
![]()
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.
|
#10
|
||||
|
||||
![]()
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] |
![]() |
Tags |
spell check |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spell Check | HondaS600 | Office | 5 | 08-26-2013 01:04 PM |
![]() |
CommoMP | Word | 5 | 05-30-2011 05:40 PM |
![]() |
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 |