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

Add missing syntax highlighting to python.md #2154

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Add missing syntax highlighting to python.md #2154

merged 1 commit into from
Jul 16, 2024

Conversation

DaveLak
Copy link
Contributor

@DaveLak DaveLak commented Jul 12, 2024

Fixes missing code highlighting in half of the Python code snippets.

The top half of the page had code examples formatted as code blocks with 4 space character indentations and no syntax highlighting as a result.

The bottom half on the other hand, used code blocks surrounded by "```py" formatting brackets which hints to many markdown renders that syntax highlighting should be applied.

This unifies the code blocks in the top half of the page to use the same formatting syntax used in the bottom half with syntax highlighting.

This change was prompted by requests to add the syntax highlighting in comments on the https://devhints.io/python page.

Fixes missing code highlighting in half of the Python code snippets.

The top half of the page had code examples formatted as code blocks with 4 space character indentations and no syntax highlighting as a result.

The bottom half on the other hand, used code blocks surrounded by "```py" formatting brackets which hints to many markdown renders that syntax highlighting should be applied.

This unifies the code blocks in the top half of the page to use the same formatting syntax used in the bottom half with syntax highlighting.

This change was prompted by requests to add the syntax highlighting in comments on the https://devhints.io/python page.
@rstacruz rstacruz merged commit 27970b1 into rstacruz:master Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants