Пример #1
0
func createNewView(filename string, window *backend.Window) *backend.View {
	v := window.OpenFile(filename, 0)

	v.Settings().Set("trace", true)
	v.SetSyntaxFile("../../packages/go.tmbundle/Syntaxes/Go.tmLanguage")

	return v
}
Пример #2
0
func createNewView(filename string, window *backend.Window) *backend.View {
	syntax := "../../3rdparty/bundles/go.tmbundle/Syntaxes/Go.tmLanguage"
	v := window.OpenFile(filename, 0)

	v.Settings().Set("trace", true)
	v.Settings().Set("syntax", syntax)

	return v
}