Blog »

New OborWiki feature: Pastebin embedding

December 24, 2017, at 04:47 PM by Obormot in Features, Updates (0 comments)

The Pastebin Embed recipe is now installed on OborWiki (off by default; you can enable it via the Configurator). This recipe lets you embed Pastebin pastes in a wikipage.

See the Pastebin Embed info page for documentation/instructions, and see below for some usage examples.

Contents

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

Leave a reply
Your name (required):

Your comment (required):


Enter value: Captcha