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

No footer

(:pastebin-embed T3rxzk4N nofooter:)

No JS

(:pastebin-embed T3rxzk4N no-js:)
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. package main
  2. import "fmt"
  3.  
  4. func main() {
  5.     fmt.Println("Hello World")
  6. }

No line numbers

(:pastebin-embed T3rxzk4N nolinenums:)

Raw (plain text)

(:pastebin-embed T3rxzk4N raw:)
package main
import "fmt"

func main() {
    fmt.Println("Hello World")
}

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