If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Leading on from a very useful suggestion from the Scooter guys, I would like to make all my diffs important barring my SVN header. But I can't seem to get simple character case mismatch to come up in red.
Under Session -> Session Settings... -> Importance tab, did you check "Everything else" and "Character case"?
If the characters are part of defined grammar element (such as keywords in a programming language) the grammar element will define whether or not character case is important. For example: in C++ keywords are case sensitive so the grammar rules define that changes in case are important. In Visual Basic keywords are not case sensitive, so the grammar rules define that changes in case are not important. If you want to deviate from the default importance of case sensitivity in grammar elements, you may have to edit the grammar rule for the elements in which you wish to see case changes as important and mark that grammar element as being case sensitive.
BC v4.0.7 build 19761
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
If it occurs in variable names, edit the grammar element for Identifiers and check the This element is case sensitive checkbox at the bottom of the Grammar Item dialog.
BC v4.0.7 build 19761
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
If it occurs in variable names, edit the grammar element for Identifiers and check the This element is case sensitive checkbox at the bottom of the Grammar Item dialog.
Yes, that works thank you. I missed that checkbox at the bottom by obsessing with the 'Match character case' one. A little confusing to me.
Yes, it can be a little confusing. I'm not sure how well I can explain the difference, but I'll give it a try.
Match character case means if an explicit case is defined in the grammar element and the case of the text differs from the case defined in the grammar element then the text does not fall under that grammar element. It may fall under another type of grammar element or it simply falls in the Everything else category.
If Match character case is not checked, then matching text will always fall under the same grammar element regardless of its case. Therefore, since changes in case do not change the type of grammar element you have, you can choose whether changes in case are significant or unimportant using the This element is case sensitive checkbox at the bottom of the dialog.
BC v4.0.7 build 19761
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Comment