Re: Can one have different Coloring to show which local symbols are
- To: mathgroup at smc.vnet.net
- Subject: [mg108719] Re: Can one have different Coloring to show which local symbols are
- From: Albert Retey <awnl at gmx-topmail.de>
- Date: Mon, 29 Mar 2010 05:21:35 -0500 (EST)
- References: <hoklkh$so0$1@smc.vnet.net>
Am 27.03.2010 11:11, schrieb Nasser M. Abbasi: > Hello; > > Many times when I write some module, I add local symbols, then later I might > change the code and those symbols will no longer be used. > > For example > > f[x_]:=Module[{a,b},... a=...; ....] > > Suppose that 'a' is still used, but 'b' is not used inside the module. Both > will be colored green as things are now. > > It would be nice, if a new color is made for symbols that are local, but NOT > used, i.e not referenced. > > This way, after some long editing session, and I need to clean the code, I > can simply remove those local symbols declaration more easily, by remove the > symbols with the new color. the workbench will report unused local variables as warnings. I don't think that switching to the workbench would be justified for just this feature, though... hth, albert