Re: Highlighting program variables instead of keywords?

2014-01-29 Thread Piet van Oostrum
Ned Batchelder n...@nedbatchelder.com writes: On 1/28/14 2:19 AM, wxjmfa...@gmail.com wrote: Different, but a little bit related. The work which is done actually on the possibility (not implemented but alreay realized) to colorize (style) the different graphemes of a glyph is very

Re: Highlighting program variables instead of keywords?

2014-01-28 Thread Mark Lawrence
On 28/01/2014 07:19, wxjmfa...@gmail.com wrote: Different, but a little bit related. The work which is done actually on the possibility (not implemented but alreay realized) to colorize (style) the different graphemes of a glyph is very interesting. Python with its absurd Flexible String

Re: Highlighting program variables instead of keywords?

2014-01-28 Thread Steven D'Aprano
On Mon, 27 Jan 2014 23:19:03 -0800, wxjmfauth wrote: Different, but a little bit related. The work which is done actually on the possibility (not implemented but alreay realized) to colorize (style) the different graphemes of a glyph is very interesting. Python with its absurd Flexible

Re: Highlighting program variables instead of keywords?

2014-01-28 Thread Ned Batchelder
On 1/28/14 2:19 AM, wxjmfa...@gmail.com wrote: Different, but a little bit related. The work which is done actually on the possibility (not implemented but alreay realized) to colorize (style) the different graphemes of a glyph is very interesting. Python with its absurd Flexible String

Re: Highlighting program variables instead of keywords?

2014-01-28 Thread Michael Torrie
On 01/28/2014 12:38 PM, Ned Batchelder wrote: JMF, seriously, stop it. You've convinced no one because you have no convincing arguments. It's obnoxious to continue to make this claim. Stop it. Please. If you want to try to convince someone, convince me. Write to me offline:

Re: Highlighting program variables instead of keywords?

2014-01-27 Thread Lele Gaifax
Skip Montanaro s...@pobox.com writes: I think this might have value, especially if to could bounce back and forth between both schemes. Is anyone aware of tools like this for Python? Bonus points for pointers to an Emacs implementation. There has been a recent thread on some emacs group about

Re: Highlighting program variables instead of keywords?

2014-01-27 Thread Mark Lawrence
On 27/01/2014 01:46, Skip Montanaro wrote: What it is doing is color coding user-supplied identifiers, with different color for each one. I found that confusing to read. I think it would take some time to get used to, and I don't think it would be the only way I'd like to view my program. I

Re: Highlighting program variables instead of keywords?

2014-01-27 Thread Ethan Furman
On 01/26/2014 06:54 PM, Roy Smith wrote: Chris Angelico wrote: That said, though, I grew up without syntax highlighting of any sort, and didn't think it particularly important; but now that I have editors with all those sorts of features, I do find them handy. Same here, except I'd replace

Re: Highlighting program variables instead of keywords?

2014-01-27 Thread Vito De Tullio
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. Is anyone aware of tools like this for Python?

Re: Highlighting program variables instead of keywords?

2014-01-27 Thread wxjmfauth
Different, but a little bit related. The work which is done actually on the possibility (not implemented but alreay realized) to colorize (style) the different graphemes of a glyph is very interesting. Python with its absurd Flexible String Representation just become a no go for the kind of task.

Re: Highlighting program variables instead of keywords?

2014-01-26 Thread Terry Reedy
On 1/26/2014 7:31 PM, Skip Montanaro wrote: My son sent me a link to an essay about highlighting program data instead of keywords: https://medium.com/p/3a6db2743a1e/ What it is doing is color coding user-supplied identifiers, with different color for each one. I found that confusing to read.

Re: Highlighting program variables instead of keywords?

2014-01-26 Thread Chris Angelico
On Mon, Jan 27, 2014 at 11:46 AM, Terry Reedy tjre...@udel.edu wrote: The only use I can see for this is to track the usage of a particular name, but that would be better done by just highlighting one name at a time. In SciTE, I can put the cursor on a word and hit Ctrl-F3 to find other

Re: Highlighting program variables instead of keywords?

2014-01-26 Thread Chris Angelico
On Mon, Jan 27, 2014 at 11:51 AM, Chris Angelico ros...@gmail.com wrote: On Mon, Jan 27, 2014 at 11:46 AM, Terry Reedy tjre...@udel.edu wrote: The only use I can see for this is to track the usage of a particular name, but that would be better done by just highlighting one name at a time. In

Re: Highlighting program variables instead of keywords?

2014-01-26 Thread Steven D'Aprano
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

Re: Highlighting program variables instead of keywords?

2014-01-26 Thread Chris Angelico
On Mon, Jan 27, 2014 at 12:29 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: 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.) It's definitely just a

Re: Highlighting program variables instead of keywords?

2014-01-26 Thread Skip Montanaro
What it is doing is color coding user-supplied identifiers, with different color for each one. I found that confusing to read. I think it would take some time to get used to, and I don't think it would be the only way I'd like to view my program. I think an interactive pylint (or pyflakes or

Re: Highlighting program variables instead of keywords?

2014-01-26 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: 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.) I wouldn't rate syntax highlighting a must-have. But I

Re: Highlighting program variables instead of keywords?

2014-01-26 Thread Roy Smith
In article mailman.6011.1390783954.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: That said, though, I grew up without syntax highlighting of any sort, and didn't think it particularly important; but now that I have editors with all those sorts of features, I do find

Re: Highlighting program variables instead of keywords?

2014-01-26 Thread Terry Reedy
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

Re: Highlighting program variables instead of keywords?

2014-01-26 Thread Terry Reedy
On 1/26/2014 8:46 PM, Skip Montanaro wrote: I think an interactive pylint (or pyflakes or frosty) type capability would be useful, highlighting a subset of the messages it produces, like variables which were assigned but never used, or using undefined variables. It might be best supported by