I started out using the langauge designer and regular expressions, but decided it would be easier to implement a programmatic lexer, since I have one already coded that's used inside a compiler. I've retargeted it (based on the lexer used in sample 3c) and it seems to work fine, but I can't find any information on how to make automatic case correction work. The language designer used a drop down to allow this, and on examining the code generated, it just sets a member called DefaultCaseSensitivity to CaseSensitivity.AutoCorrect, but this isn't available using a programmatic lexer.
I've had a read of the help file and searched the forum, so any ideas would be gratefully received.