Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

add a way to externally reference a code snippet #104

Open
glyph opened this issue Aug 18, 2013 · 1 comment
Open

add a way to externally reference a code snippet #104

glyph opened this issue Aug 18, 2013 · 1 comment

Comments

@glyph
Copy link

glyph commented Aug 18, 2013

Sometimes when I'm writing code for my blog, I'd like to make the code in question downloadable, and keep it in a separate file so I get nice syntax highlighting / snippets / etc when I'm working on it, and also so I can run it and write simple test cases for it to make sure it works.

Maybe markdown syntax that included a comment at the first line of the file, like this:

    ```python
    # from: foo.py
    ```

This could re-write the source file during the build process, to drop the contents foo.py into the document inline (indented as appropriate).

@lepture
Copy link
Collaborator

lepture commented Aug 18, 2013

@glyph I am redesigning this software in the develop branch now. I will take this into consideration.

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

No branches or pull requests

2 participants