I'm working on introductory Golang course, and wanted to insert something like https://play.golang.org/ embeddings into my slides. I found out about golang.org/x/tools/present package, and decided to use it for my slides. I insert examples into my in .slide
file using:
.play hello.go
which works almost as expected. I'm just not able to edit example from browser.
In GOPATH/src/golang.org/x/tools/cmd/present/templates/action.tmpl
I see following code:
{{define "code"}}
<div class="code{{if playable .}} playground{{end}}" {{if .Edit}}contenteditable="true" spellcheck="false"{{end}}>{{.Text}}</div>
{{end}}
Which suggests that it is possibly editable. But how to enable it?