Hi Daniel,

thanks for your hints.

Il giorno ven, 08/10/2010 alle 15.56 +0200, Daniel Neuhäuser ha scritto:
> Instead of manipulating your installed version of pygments which might
> cause problems with other applications using it I would recommend to
> clone the repository, changes you make should be done only in this
> repository and if for some reason you have to install it for testing use
> a virtual environment which can be created using virtualenv.
> 

ok, done


> The last time I checked, I think you had to run a small script if you
> added another lexer or at least add it to a dictionary in
> pygments/lexers/__init__.py
> 

How can I add a dictionary in __init.py__?
Where can I find some information about it?

I thaught that adding the new lexer in __all__=[] in lexers/text.py was
enough.

Unfortunately I can't go on if I can't test what I'm writing...


Another way could be to write a plugin using setuptools' entry points:
http://pygments.org/docs/plugins/

I should find some info here:
http://lucumr.pocoo.org/2006/7/30/setuptools-plugins 

but the site has been down in the last days. I hope it will be back
soon.

> On another note: We don't use this mailinglist very often, if you have
> more questions you will get a lot faster response if you just ask in
> #pocoo on freenode, most people are active there from the late afternoon
> to midnight in CET(Central European Time). Support, discussions about
> development, new technologies and everything else which we might be
> interested in at the moment happens there.
> 

I prefer using asyncronous communication, because during working days I
have few spare time.
Also, it's a pity that most discussions happen in a place without
memory. Archives of support mailing lists are a great resource.

Anyway, I'll try to use IRC as well.

Cheers,
Federico

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en.

Reply via email to