December 25, 2017, at 10:49 PM (0 comments)
The Gist Embed recipe is now installed on OborWiki (off by default; you can enable it via the Configurator). This recipe lets you embed Gists in a wikipage.
See the Gist Embed info page for documentation/instructions, and see below for some usage examples.
Contents
Default settings
(:gist-embed achmizs/0c1b9a3a8c2d3c5e725624392e6da461:) |
|
No footer
(:gist-embed achmizs/0c1b9a3a8c2d3c5e725624392e6da461 nofooter:) |
|
No JS
(:gist-embed achmizs/0c1b9a3a8c2d3c5e725624392e6da461 no-js:) | ||||||||||||
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
|
No line numbers
(:gist-embed achmizs/0c1b9a3a8c2d3c5e725624392e6da461 nolinenums:) |
|
Raw (plain text)
(:gist-embed achmizs/0c1b9a3a8c2d3c5e725624392e6da461 raw:) |
package main import "fmt" func main() { fmt.Println("Hello World") } |
Multi-file gist
(:gist-embed achmizs/21f5e20fb0be90cdd4551f4184153cc5:) |
|
Multi-file gist (specifying only some files)
(:gist-embed achmizs/21f5e20fb0be90cdd4551f4184153cc5 helloworld.c,helloworld.swift:) |
|
Displaying only some lines of a gist
(:gist-embed achmizs/b419a568579828b956efbbb0b5186b4a circularbuttons.css lines=1,7-12,20-:) |
|
Highlighting some lines of a gist
(:gist-embed achmizs/b419a568579828b956efbbb0b5186b4a circularbuttons.css hl=10-18:) |
|