Hi there.  I posted this to comp.lang.python recently; no answers so
far.  Then I spotted this group...

I'm writing Sphinx documentation for a non-Python program. The program
has an input file syntax suitable for highlighting using Pygments but,
obviously, Pygments knows nothing about it.  I've created a Pygments
lexer which should highlight things, but how do I tell Pygments about
the new lexer, short of manually adding the Python source to the
Pygments "lexers" directory (clearly the Wrong Thing)?

I've scoured Sphinx, Pygments and setuptools documentation, and
seemingly the only way is to register a setuptools 'entry point' in
the setup() function -- but that seems to imply I'm installing a
Python package, which I'm not.  Do I have to create one, or is there
another way?

Glenn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" 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/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to