8000 add a way to externally reference a code snippet · Issue #104 · avelino/liquidluck · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 4, 2021. It is now read-only.
This repository was 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

Description

@glyph

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0