Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pygments options aren't supported in sourcecode sections #175

Closed
shimizukawa opened this issue Jan 2, 2015 · 6 comments
Closed

Pygments options aren't supported in sourcecode sections #175

shimizukawa opened this issue Jan 2, 2015 · 6 comments

Comments

@shimizukawa
Copy link
Member

I should be able to do this:

.. sourcecode:: php
   :startinline: True

    echo "hello world";

"startinline" is a pygments option for PHP. However, this gives me an error:

devintro.rst:148: (ERROR/3) Error in "sourcecode" directive:
unknown option: "startinline".

I might have gotten something minor wrong, but since the manual doesn't mention it, I'll presume its not supported.


@shimizukawa
Copy link
Member Author

From Georg Brandl on 2009-06-16 20:10:35+00:00

No, Pygments options are not supposed to be supported in the sourcecode directive.

@shimizukawa
Copy link
Member Author

From Paul Biggar on 2009-06-16 20:55:38+00:00

May I ask why? It seems an essential feature (I believe it uses pygments, no?)

@shimizukawa
Copy link
Member Author

From Anonymous on 2009-06-25 07:26:19+00:00

Bump!

@shimizukawa
Copy link
Member Author

From Georg Brandl on 2010-08-25 12:19:49+00:00

Removing milestone: 0.6 (automated comment)

@shimizukawa
Copy link
Member Author

From Konstantin Molchanov on 2012-12-11 17:32:59+00:00

Definitely need that feature. Can't use Sphinx without it. You have to agree, wrapping every single PHP line with is ridiculous.

@shimizukawa
Copy link
Member Author

From Georg Brandl on 2013-03-31 13:57:10+00:00

Removing version: 0.6 (automated comment)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant