Share via

What is priority in styles and How do you set it?

Anonymous
2013-04-13T17:02:35+00:00

I decided I wanted to create a new document template specfically for manuscript type documents of a specific style.  So, I started by creating a new template document.  As I started to modify styles I looked at the patterns that were already in my normal template.  For instance there is a stlye named No Spacing  that has as the following modifications:

Font: (Default) +Body, Indent: First line:  0.25", Left, Line spacing:  single, Widow/Orphan control, Style: Quick Style, Priority: 2

I know how to base a style on another style, set line spacing and other formatting options, but I don's know what Priority is for sure.  It looks like it has to do with its location in quick styles, but how to I control this?  I want to move styles around in Quick Styles so the styles I use most are first in line. I don't know how to do this now.

The documents I intend to create have to do with writing programming code, so I intend to have at least two styles related to code, one for inline examples of code and one for block examples of code, e.g. paragraph level.  I think I can do most of this by my self, but is there a way to turn off some of the auto correction features for a particular style?  I am thinking particularly about auto capitalization of sentences for instance.

It would be nice if I could also create some sort of custom dictionary that overrides or compliments the standard dictionary so that I can look for spelling errors without all my code being flagged as mispelled.

Any help is always appreciated.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Stefan Blom 338.7K Reputation points MVP Volunteer Moderator
    2013-04-13T19:13:56+00:00

    You specify priority numbers on the Recommend tab of the Manage Styles dialog box. Priorities determine the order of styles on the Home tab and in the Styles pane if you choose to view styles in "Recommended" order (in the Style Pane Options dialog box).

    To display the Manage Styles dialog, click Manage Styles button in the Styles pane (Ctrl+Alt+Shift+S). And to display the options dialog, click the Options link in the Styles pane.

    7 people found this answer helpful.
    0 comments No comments
  2. Jay Freedman 207.5K Reputation points Volunteer Moderator
    2013-04-13T23:28:55+00:00

    Adding to Stefan's reply with answers to your other questions:

    • The auto correction rules are applied to all text, regardless of the styles applied. Personally, I prefer to turn off the auto capitalization options all the time, and use the Shift key as needed. If you prefer to keep the options turned on all the time, then you can use Undo (Ctrl+Z) immediately after a letter is capitalized to return it to lower case.
    • Word always has at least two dictionaries, the main dictionary (which is binary format and can't be modified) and at least one custom dictionary (which is plain Unicode text). When a word is flagged with a squiggle by the spell checker, you can right-click it and click Add to Dictionary, which will put it into the custom dictionary. By going to Word Options > Proofing > Custom Dictionaries, you can create additional custom dictionaries (e.g., one for C# code and one for JavaScript code) and enable/disable them in any combination. Also, by clicking Edit Word List in that dialog, you can add words wholesale to the selected custom dictionary -- for example, if you have a list of all the keywords for a programming language, or a list of common variable names.
    • An alternative to the custom dictionaries is to add the "Do not check spelling or grammar" flag to the styles you'll use for code. In the New Style dialog or the Modify Style dialog, click the Format button at the bottom left and click Language in the menu. In the dialog, click the check box for "Do not check spelling or grammar" so it becomes checked (not white and not solid blue). However, the code then won't be checked at all, so you won't be notified for something like a typo in a keyword.
    5 people found this answer helpful.
    0 comments No comments