Skip to content

chore: enabled syntax highlighting #6754

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

Closed
wants to merge 5 commits into from

Conversation

0xflotus
Copy link

I enabled the syntax highlighting feature in the image-file-formats.rst

@hugovk
Copy link
Member

hugovk commented Nov 22, 2022

Thanks for the PR, however the default for literal blocks (::) is already Python and we've not changed it using highlight_language.

So this PR doesn't change anything other than making it more explicit, which I don't think we need in this particular case.

@0xflotus
Copy link
Author

0xflotus commented Nov 22, 2022

Ok, but there is already a use of it in the lines 1402 and 1413:

.. code-block:: python
from PIL import Image
with Image.open("drawing.wmf") as im:
im.load(dpi=144)
To add other read or write support, use
:py:func:`PIL.WmfImagePlugin.register_handler` to register a WMF and EMF
handler.
.. code-block:: python
from PIL import Image
from PIL import WmfImagePlugin

So I thought it would be consistent.

@radarhere
Copy link
Member

I've created PR #6958 as a possible alternative to this.

@radarhere
Copy link
Member

#6958 has been merged instead.

@radarhere radarhere closed this Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants