Name: gosyntect
Owner: Sourcegraph
Description: Go HTTP client for syntect_server
Created: 2017-08-16 19:25:40.0
Updated: 2017-12-20 05:56:49.0
Pushed: 2017-08-24 00:43:13.0
Homepage: null
Size: 3
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
gosyntect is a Go HTTP client for syntect_server, a Rust HTTP server which syntax highlights code.
et -u github.com/sourcegraph/gosyntect/cmd/gosyntect
e: gosyntect <server> <theme> <file.go>
ple:
gosyntect http://localhost:8000 'InspiredGitHub' gosyntect.go
nt := gosyntect.New("http://localhost:8000")
, err := cl.Highlight(&gosyntect.Query{
Extension: "go",
Theme: "InspiredGitHub",
Code: string(theGoCode),
rr != nil {
log.Fatal(err)
Println(resp.Data) // prints highlighted HTML