2 new comment-like characters in Python to aid development?

Robert Marshall spam at chezmarshall.freeserve.co.uk
Fri Mar 9 12:50:41 CET 2007


On Fri, 09 Mar 2007, Bruno Desthuilliers wrote:

> 
> Nick Craig-Wood a écrit :
>> dbhbarton at googlemail.com <dbhbarton at googlemail.com> wrote:
>>>  What if 2 new 'special' comment-like characters were added to
>>>  Python?:
>>>
>>>
>>>  1. The WIP (Work In Progress) comment:
>>
>> I use # FIXME for this purpose or /* FIXME */ in C etc.
>>
>> I have an emacs macro which shows it up in bright red / yellow text
>> so it is easy to see
> 
> <ot>
> Care to share this macro ?
> </ot>

I have this

(cond (window-system
   (progn
     (font-lock-add-keywords 
        'python-mode '(("\\<FIXME: .*$" 0 font-lock-warning-face prepend))))))

Robert
-- 
La grenouille songe..dans son château d'eau
Links and things http://rmstar.blogspot.com/



More information about the Python-list mailing list