@Walaa, VB.NET is case INsensitive, the language definition for VB.NET for the editor control has a feature which auto-corrects strings.
jovball wrote:
I don't think that helps me because the output language setting isn't "sticky." As soon as I re-open the file in the editor, the output language defaults back to VB.NET and the "keywords" immediately change case.
That would work if that setting was sticky. It would probably have to be tied into the template bindings file with an additional attribute as shown below.
<language name="VB.NET">
<templateBinding templateID="SD_ASPX_GridView" filename="WebControls\Net2.x\VB.NET\ASPX_GridView.lpt"
templateLanguage="VB.NET" outputLanguage="HTML" />
Let me know if I'm missing something that is already in there. I've certainly done that enough in the past.
the value for name in the language tag should be 'HTML'. the templateLanguage attribute describes the language of the logic inside the template. the language tag describes the output language and is used for filtering.
Sometimes this is too strict, as it's also used for filtering. In that case you can edit the vb.net language xml file if you want to get rid of this 'feature' of the text editor control. In the file SD.VBDotNet.xml in the 'LanguageDefinitions' folder, replace
CaseSensitivity="AutoCorrect"
into an empty string (no quotes), so effectively removing CaseSensitivity="AutoCorrect"
this should disable the 'auto-correct'. (just do a global replace in the file, match case)
We'll disable it in v3.1's next build and v3.5's language file, as it is indeed annoying.