Posted 17 years ago
by Kevin Bennett
I am using the VBDotNet XML language file definition for a project that requires me to replace some simplified code with more complicated code before compiling.
One of the things I need to do is automatically put a space before and after each operator. This can be done all at once right before compile, or while the user is typing it in. Can you point me in the right direction? Should I use a textstream to find all operators and put whitespaces around them? Should I use an autoreplace in the language definition so that when they enter an operator it puts spaces around it?
Thanks for you help
KB
One of the things I need to do is automatically put a space before and after each operator. This can be done all at once right before compile, or while the user is typing it in. Can you point me in the right direction? Should I use a textstream to find all operators and put whitespaces around them? Should I use an autoreplace in the language definition so that when they enter an operator it puts spaces around it?
Thanks for you help
KB