Menu

#175 syntax highlighting for docstrings and functions

open
nobody
None
5
2006-10-10
2006-10-10
No

See the attached patch. It has two new syntax
highlighting tokens:

* Different styles for regular strings and docstrings.
* Highlighting of function names (e.g.
"foo.someFunction(bar)" - "someFunction" will be in a
different color)

Discussion

  • Lukas Lalinsky

    Lukas Lalinsky - 2006-10-10
     
  • Anonymous

    Anonymous - 2007-01-04

    Logged In: YES
    user_id=1666886
    Originator: NO

    This is not a common way ! I prefer the way of giving colors to what is keyword. Some function like hasattr, have to be highlight, cause they are reserved names. but i didn t see any interest to higlight a function name. In Python a function is an object that is callable. You want highlight every object ? or just if they have parenthesis ?

     
  • Dirk Bergstrom

    Dirk Bergstrom - 2007-05-04

    Logged In: YES
    user_id=636384
    Originator: NO

    I would very much like the ability to set the highlight color for docstrings. I'd probably set them to something close to the comment color...

     
  • Joseph Daywalt

    Joseph Daywalt - 2011-10-22

    :bump:
    Everyone at my company would really appreciate both of those features!

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.