I'm writing some topology up, and I prefer to use the notation ]a,b[ to denote an open interval as opposed to (a,b), since the ( and ) symbols tend to be over used in this subject.
Is there a preferred practice for writing [ and ] as mathematical symbols as opposed to delimiters? While in my editor, I notice they are highlighted in red as unpaired delimiters. I also figure if ever want to go through and automatically change my notation of open interval, I would not want to change all [ and ] to ) and (, which would greatly mess things up.


\newcommand{\lb}{[}\newcommand{\rb}{]}(note the order!) early on and use\lband\rbinstead of[and]then the editor won't get confused. The order of the definitions should ensure that it doesn't think that there are any open groups. – Andrew Stacey Sep 01 '11 at 09:12