# Text Format Grammar Settings

The Grammar tab defines the syntax of a file. Grammar elements such as comments and keywords are defined here. Each grammar element can be described by one or more grammar items which appear in the list. The order of the list is significant. Items higher on the list take precedence over lower items. Click the New button to add a Grammar Item. Line weights are used to improve alignment in a comparison. The alignment algorithm will try to line up matching lines with higher line weights.