Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64832

Re: Highlighting program variables instead of keywords?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.013
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'syntax': 0.04; 'value,': 0.04; 'string': 0.09; 'highlighting': 0.09; 'literal': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.12; "'it'": 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:program': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'header :User-Agent:1': 0.23; 'skip': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'especially': 0.30; "i'm": 0.30; 'getting': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'could': 0.34; 'but': 0.35; 'keyword': 0.36; 'subject:?': 0.36; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'color': 0.61; 'son': 0.61; 'received:173': 0.61; 'back': 0.62; 'url:p': 0.64; 'more': 0.64; 'between': 0.67; 'useful.': 0.68; 'forth': 0.81; 'convinced,': 0.84; 'received:fios.verizon.net': 0.84; 'bounce': 0.91; 'convinced': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Highlighting program variables instead of keywords?
Date Mon, 27 Jan 2014 01:30:06 -0500
References <CANc-5UwcZT18RgLqzHq0oMPA4sxfbfu0ZQhGPJBYZ0KEUJ6m2g@mail.gmail.com> <CANc-5UwkLjmwA5LCAKRGjDZaf5EiHXCfU4_Hm2e9yXsDmApR=g@mail.gmail.com> <mailman.6008.1390782718.18130.python-list@python.org> <52e5b66d$0$29999$c3e8da3$5496439d@news.astraweb.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-173-75-254-207.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To <52e5b66d$0$29999$c3e8da3$5496439d@news.astraweb.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.6023.1390804227.18130.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1390804227 news.xs4all.nl 2957 [2001:888:2000:d::a6]:41026
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:64832

Show key headers only | View raw


On 1/26/2014 8:29 PM, Steven D'Aprano wrote:
> On Sun, 26 Jan 2014 18:31:49 -0600, Skip Montanaro wrote:
>
>> My son sent me a link to an essay about highlighting program data
>> instead of keywords:
>>
>> https://medium.com/p/3a6db2743a1e/
>>
>> I think this might have value, especially if to could bounce back and
>> forth between both schemes.
>
> Hmmm, I'm not convinced, but then I wasn't convinced by syntax
> highlighting either until I had used it for a while. (I still think it's
> a nice-to-have rather than a must-have.)

When my fingers get a bit fumbly, I find it more useful. When I do not 
hit ' or " solidly, or  type a mismatch 'something", having the string 
literal color continue is a handy clue. So is 'it' not getting the 
keyword color that if would.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Highlighting program variables instead of keywords? Skip Montanaro <skip@pobox.com> - 2014-01-26 18:31 -0600
  Re: Highlighting program variables instead of keywords? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-27 01:29 +0000
    Re: Highlighting program variables instead of keywords? Chris Angelico <rosuav@gmail.com> - 2014-01-27 12:51 +1100
    Re: Highlighting program variables instead of keywords? Ben Finney <ben+python@benfinney.id.au> - 2014-01-27 13:08 +1100
    Re: Highlighting program variables instead of keywords? Terry Reedy <tjreedy@udel.edu> - 2014-01-27 01:30 -0500

csiph-web