[wingide-users] Why is 'credits' colored in editor

Michael Foord michael at voidspace.org.uk
Mon Feb 13 11:03:30 MST 2012

On 13/02/2012 17:28, Wing IDE Support wrote:
> On 2/13/12 10:01 AM, Michael Hipp wrote:
>> On 2012-02-13 8:57 AM, Michael Foord wrote:
>>> On 13/02/2012 13:55, Michael Hipp wrote:
>>>> When I try to name a variable as 'credits', why is it being
>>>> color-coded as if
>>>> it were a built-in function? Is there something I don't know?
>>> $ python
>>> ActivePython (ActiveState Software Inc.) based on
>>> Python 2.7.2 (default, Jun 24 2011, 12:20:15)
>>> [GCC 4.2.1 (Apple Inc. build 5664)] on darwin
>>> Type "help", "copyright", "credits" or "license" for more information.
>>> >>> credits
>>> ActivePython is a Python distribution by ActiveState Software Inc.
>>> Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of 
>>> thousands
>>> for supporting Python development. See www.python.org for more
>>> information.
>> Thanks. I think.
>> Is there any way in Wing to remove it from color coding, since it
>> doesn't actually do anything? It's making my code ugly.
> Michael Foord is correct that 'credits' is a builtin and is 
> highlighted as such.  We should probably add a way to turn off 
> highlighting of builtins such as 'credits' that are rarely used.

I would just remove "credits" and "copyright" from the list of builtins 
altogether. I don't think that syntax highlighting them is ever going to 
be useful to anyone.


> Thanks,
> John
> _________________________________________________
> Wing IDE users list
> http://wingware.com/lists/wingide


May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html

More information about the wingide-users mailing list