Warning: file_get_contents(https://pastebin.com/embed_iframe/T3rxzk4N): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/public/wiki.obormot.net/cookbook/simple_html_dom.php on line 82

Warning: file_get_contents(https://pastebin.com/raw/T3rxzk4N): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/public/wiki.obormot.net/cookbook/pastebin-embed.php on line 81
Code Embedding Demo — OborWiki
Reference »

Code Embedding Demo

Contents

Pastebin embed

Enable the Pastebin Embed recipe via the Configurator in order to use the (:pastebin-embed:) markup. See the Pastebin Embed info page for documentation.

Default settings

(:pastebin-embed T3rxzk4N:)

Dark theme

(:pastebin-embed T3rxzk4N theme=dark:)

No footer

(:pastebin-embed T3rxzk4N nofooter:)

No JS

(:pastebin-embed T3rxzk4N no-js:)

Could not retrieve paste!

No line numbers

(:pastebin-embed T3rxzk4N nolinenums:)

Raw (plain text)

(:pastebin-embed T3rxzk4N raw:)

Could not retrieve paste!

Displaying only some lines of a paste

(:pastebin-embed T3rxzk4N lines=2-4:)

Highlighting some lines of a paste

(:pastebin-embed T3rxzk4N hl=4-6:)

Gist Embed

Enable the Gist Embed recipe via the Configurator in order to use the (:gist-embed:) markup. See the Gist Embed info page for documentation.

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