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 EXAMPLE, SOURCE, and CODE blocks #73

Open
balupton opened this issue Sep 16, 2015 · 3 comments
Open

Add EXAMPLE, SOURCE, and CODE blocks #73

balupton opened this issue Sep 16, 2015 · 3 comments
Labels
enhancement Improvement or suggestion PR / Bounty only External demand, as such, external funding / effort is required to make this happen

Comments

@balupton
Copy link
Member

balupton commented Sep 16, 2015

<!-- EXAMPLE[./example.js] --> will output the file in a syntax code block, and replaces require('./') with require('the-package-name') - useful for including example code files

<!-- CODE[./input.js] --> will output the file in a syntax highlighted code block - useful for including code files

<!-- SOURCE[./output.md] --> will output the file as is, no code block wrapper - useful for including markdown and HTML files

@balupton balupton changed the title Add <!-- EXAMPLE --> that will output the source and result of the example file add EXAMPLE, SOURCE, and CODE blocks Sep 17, 2016
@balupton balupton added this to the Next Release milestone Sep 17, 2016
@balupton balupton added the enhancement Improvement or suggestion label Sep 17, 2016
@balupton
Copy link
Member Author

/cc @mcollina - this is the feature I was telling you about, will do it within the next 1-4 weeks

@balupton
Copy link
Member Author

Just published up https://github.com/bevry/ropo which can be a foundation for this

Details at https://twitter.com/balupton/status/1006070544871985153

@balupton balupton changed the title add EXAMPLE, SOURCE, and CODE blocks Add EXAMPLE, SOURCE, and CODE blocks Dec 10, 2018
@balupton balupton removed this from the Next Release milestone Dec 10, 2018
@balupton balupton added the PR / Bounty only External demand, as such, external funding / effort is required to make this happen label Dec 10, 2018
@balupton
Copy link
Member Author

Live code running services like asciinema, scrimba, and a bunch of others seem to do this better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement or suggestion PR / Bounty only External demand, as such, external funding / effort is required to make this happen
Projects
None yet
Development

No branches or pull requests

1 participant