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

format rust code examples inside docs #1695

Closed
sagiegurari opened this issue Jun 16, 2017 · 3 comments
Closed

format rust code examples inside docs #1695

sagiegurari opened this issue Jun 16, 2017 · 3 comments
Labels

Comments

@sagiegurari
Copy link
Contributor

is there a way to format the code examples inside the comment blocks?

@nrc
Copy link
Member

nrc commented Jun 16, 2017

I don't think there is a good way. It would be nice to support, I expect it would be a bit tricky but not too huge. I don't have much of a plan for doing it though.

@nrc nrc added the fun! :) label Jun 16, 2017
@sagiegurari
Copy link
Contributor Author

sagiegurari commented Jun 16, 2017

Thanks. Hope it will be in the plan at some point

@killercup
Copy link
Member

This might coincide with the idea to have a markdown formatter for doc comments (that e.g. always adds an empty line after headlines, and tries to breaks lines at 80 cols).

topecongiro added a commit to topecongiro/rustfmt that referenced this issue Dec 24, 2017
topecongiro added a commit to topecongiro/rustfmt that referenced this issue Dec 24, 2017
@nrc nrc closed this as completed in #2311 Dec 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants