Warning: Undefined array key 1 in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 32

Warning: Undefined array key "lines" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 38

Warning: Undefined array key "hl" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 52

Warning: Undefined array key "lines" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 38

Warning: Undefined array key "hl" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 52

Warning: Undefined array key "lines" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 38

Warning: Undefined array key "hl" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 52

Warning: Undefined array key "lines" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 38

Warning: Undefined array key "hl" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 52

Warning: Undefined array key "lines" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 38

Warning: Undefined array key "hl" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 52

Warning: Undefined variable $id_ in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 114

Warning: Undefined array key 1 in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 32

Warning: Undefined array key "lines" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 38

Warning: Undefined array key "hl" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 52

Warning: Undefined array key "lines" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 38

Warning: Undefined array key "hl" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 52

Warning: Undefined array key "hl" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 52

Warning: Undefined array key "lines" in /home/public/wiki.obormot.net/cookbook/gist-embed.php on line 38
New OborWiki feature: Gist embedding — OborWiki
Blog »

New OborWiki feature: Gist embedding

December 25, 2017, at 10:49 PM by Obormot in Features, Updates (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:)
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
view raw example.go hosted with ❤ by GitHub

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

Leave a reply
Your name (required):

Your comment (required):


Enter value: Captcha