Last active
October 18, 2018 02:18
-
-
Save nqthqn/6cc7c26c9d933d9dfc6c95d45284501a to your computer and use it in GitHub Desktop.
code step throughs — a format for presenting lines of code in a beautiful way
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repo: https://github.com/elm-eug/live-polls | |
show: /blob/master/src/Poll.elm#L18-L20 | |
emph: L18 | |
emph: L19 | |
show: /blob/master/src/Poll.elm#L29-L43 | |
emph: L29-L32 | |
emph: L41,L43 | |
show: /blob/develop/src/Main.elm#L23-L26 | |
emph: L24 | |
emph: L25 | |
emph: L26 | |
done: Thanks for watching | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
repo
specifies what repository you are pulling from, maybe not necessary if you are pulling code examples from multiple placesshow
specifies what code block is on screenemph
specifies which lines to emphasizedone
would be a string that you could put as the last slideshow
must come beforeemph
andemph
must only emphasize lines in the range fromshow
.-
means "through" and,
means "and". Soemph: L29-L32
means emphasize lines 29-32. andemph: L41,L43
means emphasize lines 41 and 43.Maybe the
L
could be left off, mayberepo
anddone
could be dropped in favor of having a URL at eachshow
block.Maybe this could work locally if you specify
localhost
and it serves up some files.