Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

The following markdown files:

1-serialization.md
2-requests-and-response.md
3-class-based-views.md
4-authentication-and-permissions.md
5-relationships-and-hyperlinked-apis.md
6-viewsets-and-routers.md

Do not have syntax highlighting, which makes it a bit harder to read the code. This will be a super simple fix, just add a code block with python or py

For reference:
snippet

You must be logged in to vote

Replies: 1 comment · 4 replies

Comment options

If it's okay, I can send a PR fixing this

You must be logged in to vote
4 replies
@browniebroke
Comment options

Are you seeing these files in GitHub? They're meant to be used in the docs: https://www.django-rest-framework.org/tutorial/1-serialization/ where the syntax highlighting is present.

I don't mind adding it to the source file, as long as it doesn't break the docs.

@Infamous003
Comment options

Yes, this only happens on GitHub. There is syntax highlighting on the actual docs is working.
The changes are very minor, so it shouldn't break the documentation

@browniebroke
Comment options

Sure, feel free to send a PR

@Infamous003
Comment options

I've sent a PR

Answer selected by browniebroke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.