On 2009-12-08, Jason S wrote:
> On Nov 8, 10:11 am, Georg Brandl <[email protected]> wrote:
>> You can do something like this in your conf.py:

>> def setup(app):
>>     from sphinx.highlighting import lexers
>>     from pygments.lexers.compiled import JavaLexer

>>     lexers['java'] = JavaLexer(tabsize=4)

> and how do you do this in general, or for included files with
> a specific extension? (like '.blam' for instance)

In Docutils you can do this general for source and included files with
the tab-width config setting
http://docutils.sourceforge.net/docs/user/config.html#tab-width

and (since version 0.6) per-file with the tab-width option of the include
directive
http://docutils.sf.net/docs/ref/rst/directives.html#including-an-external-document-fragment

but not for a specific extension.

I don't know whether Sphinx is up-to-date regarding the tab-width
directive option.

Günter

--

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