Tom, Kenny, and Bill,
Thank you for the responses!
Gist It appears to provide the most flexibility. I like that it allows a
slice of line numbers to be extracted.
I discovered that Jekyll provides a convenient way to reference a GitHub
Gist.
I created a page with some sample embeds that are visible when viewed in
GitHub Pages.
- https://github.com/terrywbrady/tutorialTest/blob/master/README.md
On Fri, May 4, 2018 at 8:53 AM, Bill Dueber <[log in to unmask]> wrote:
> You can probably use http://gist-it.appspot.com/ -- just drop a `<script>`
> tag into your markdown (assuming you can include arbitrary html) and you're
> set.
>
> On Fri, May 4, 2018 at 11:21 AM, Tom Hutchinson <[log in to unmask]>
> wrote:
>
> > Hi, Terry –
> >
> > Thanks for the tip. After you recommended it last year, I've been
> > enjoying using GitPitch. Before that, if I wanted to easily create a
> > presentation, particularly if it had embedded math or code, I used
> > Beamer in LaTeX.
> >
> > I've found that the ability to easily embed technical content should
> > be used with utmost care. It's just so easy to add too much and end up
> > with terrible slides.
> >
> > The one trouble point I had with GitPitch is that it took me a while
> > to figure out how to do it entirely within the GitHub interface. I was
> > messing around with a local git repo to create the markdown file.
> > Having GitHub make a README file when creating a new repository got
> > around this.
> >
> > > Are you aware of any tools or services that are able to generate an
> > > embedded code viewer that can reference source files from GitHub?
> >
> > Unfortunately, no. Please report back if you find something.
> >
> > However, GitHub's pastebin service, Gist, does support embedding. Be
> > sure to use to appropriate file extension to get syntax highlighting.
> >
> > Cheers,
> >
> > Tom
> >
> > On Wed, May 2, 2018 at 3:58 PM, Terry Brady <[log in to unmask]>
> > wrote:
> > > I have been using the GitPitch presentation service to embed code
> > snippets
> > > into a presentation.
> > >
> > > In that service, the following code (using an extension of markdown)
> > >
> > > +++?code=
> > >> https://raw.githubusercontent.com/DSpace-Labs/DSpace-
> > codenvy/master/Scripts/workspaceInit.sh
> > >> Workspace initialization script - already run
> > >> @[34](Before ingesting content, we need an administrator id)
> > >> @[36-43](Data Load Script)
> > >
> > >
> > > generates the following display which I find very useful.
> > >
> > > - https://gitpitch.com/DSpace-Labs/DSpace-rel-demo/webinar#/6/1
> > >
> > > Note that if you hit the space bar, the code scrolls to the designated
> > line
> > > numbers referenced above.
> > >
> > > I would actually be curious to embed a similar code viewer on a web
> page
> > > (rather than in just a slide show).
> > >
> > > Are you aware of any tools or services that are able to generate an
> > > embedded code viewer that can reference source files from GitHub?
> > >
> > > Thanks,
> > >
> > > Terry
> > >
> > > --
> > > Terry Brady
> > > Applications Programmer Analyst
> > > Georgetown University Library Information Technology
> > > https://github.com/terrywbrady/info
> > > 425-298-5498 (Seattle, WA)
> >
>
>
>
> --
> Bill Dueber
> Library Systems Programmer
> University of Michigan Library
>
--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://github.com/terrywbrady/info
425-298-5498 (Seattle, WA)
|