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

Tutorial Syntax highlighting #83

Open
ptheywood opened this issue Apr 19, 2022 · 0 comments
Open

Tutorial Syntax highlighting #83

ptheywood opened this issue Apr 19, 2022 · 0 comments

Comments

@ptheywood
Copy link
Member

The tutorial pages include partial code blocks to show only the relevant snippets of code.

This means that in some cases, the code blocks are not valid python (or c++/cuda?) on their own.

I.e. the following highlights the wrong segment as a string, due to the missing opening """

image

Only a single code block fails to parse via pygments entriely, generating a warning and is not highligted.

Additionally, (in my opinion) the elipses indicating there is more code above below are unclear, and combined with snippets with mismatched braces aren't the easiest to read/follow in isolation

image

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

No branches or pull requests

1 participant