Menu

#172 Handle triple-quotes different to other strings in hiliter

open
nobody
None
5
2006-09-29
2006-09-29
Andreas M.
No

Hi,

I would like to ask, whether it is possible to have
docstrings being highlighted in a different color than
the other strings.

Ie: """foo""" against "foo"

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2006-09-29

    Logged In: YES
    user_id=617340

    Well, currently not, but it could be an interesting option...

     
  • Nobody/Anonymous

    Logged In: NO

    docstrings and """ strings are two different things.

    docstrings are the first string in a class/module/etc.

    """ is a strong quote.

    It just happens that most docstrings use strong quotes, and most strong quotes are docstrings, but neither is necessarily always true.

     
  • Pete Black

    Pete Black - 2008-07-21

    Logged In: YES
    user_id=1868889
    Originator: NO

    I also see that docstrings are treated/highlighted just like ordinary strings.

    It would be nice to have functionality to make that distinction. That is, by adding the ability to set different colors for docstrings, """, " and ' type strings.

     
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.