Hi list,

  I also want to add pygments extension to sphinx, but I get some problems.
You can see the extension here:

  https://github.com/azru0512/tblgenlexer

I install the extension under virtual python (i..e. it's being installed in 
my home directory),
`pygmentize -L` shows it aware of my extension.

* tblgen:
    Tblgen (filenames *.td)

Now I add lines below in conf.py:

def setup(app):
    from sphinx.highlighting import lexers
    lexers['tblgen'] = TblgenLexer()


But `make html` complains it cannot find TblgenLexer, error message below:

Exception occurred:
  File "/z/tmp/chenwj/lbd/source/conf.py", line 25, in setup
    lexers['tblgen'] = TblgenLexer()
NameError: global name 'TblgenLexer' is not defined


What am I missing here? :-(

Thanks!

chenwj

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


Reply via email to