Possible Duplicate:
Matching brackets in a string
Is there a way around using [[ and ]] for Part in Mathematica?
OK, today looks like the day for asking typesetting questions!
This is something I always wondered if there is a solution for. Many times, I write Part notation just the normal way like this x[[3]] but what I prefer is the solid notation, which is
The reason I do not enter it as above the first time, is that it is faster to type x[[3]] because I do not have to type x ESC [[ ESC 3 ESC ]] ESC each time, and also many times I simply forget.
Then what I do, is later on, I go over the whole code looking for each normal [[ ]] and then change it to the solid [[ ]] . But this is boring.
I tried to use the editor to do a replace every [[ with the solid [[ and then replace all every ]] with the solid ]] but that did not work. It broke the code.
So my question is: Is there a way to automatically do this change? It would require lexical scanning and analysis of the code, as one can just change any [[ seen with a solid [[.
Thanks