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

code samples inline #55

Closed
hyukim17 opened this issue Jul 14, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@hyukim17
Copy link

commented Jul 14, 2015

It seems that writing example code only works at the top level.

For example, #!python gets parsed correctly as part of a module's comments, but is not if it is part of the docstring of a function or class.

@BurntSushi

This comment has been minimized.

Copy link
Contributor

commented Jul 14, 2015

Seems to be working fine here? http://pdoc.burntsushi.net/nfldb#nfldb.Query

@hyukim17

This comment has been minimized.

Copy link
Author

commented Jul 14, 2015

You are right. I needed to put a carriage return before the #!python tag and also indent with 4 spaces.

@hyukim17 hyukim17 closed this Jul 14, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.