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

Support select language colorizing inside .. code:: and .. code-block:: directives #558

Open
tristanlatr opened this issue May 2, 2022 · 0 comments

Comments

@tristanlatr
Copy link
Contributor

From #491 (comment)

Right now, the code block will always the be colorized with python syntax, no matter what's the first argument passed to .. code::.

First of all, I'de suggest to simply disable the colorizing when the directive argument is set to unrecognized value.

Then, we can think about whether we want to use what's already integrated in docutils: https://pygments.org/ or use something else present in twisted maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant