Skip to content
Permalink
Browse files

suggest port 9238 (default in sourcegraph/syntect_server image)

  • Loading branch information...
slimsag committed May 12, 2019
1 parent 968cb07 commit 1205f5e776e1e31779d50150bfcea7d0b5288715
Showing with 3 additions and 3 deletions.
  1. +2 −2 README.md
  2. +1 −1 cmd/gosyntect/main.go
@@ -14,13 +14,13 @@ go get -u github.com/sourcegraph/gosyntect/cmd/gosyntect
usage: gosyntect <server> <theme> <file.go>
example:
gosyntect http://localhost:8000 'InspiredGitHub' gosyntect.go
gosyntect http://localhost:9238 'InspiredGitHub' gosyntect.go
```

## API

```Go
client := gosyntect.New("http://localhost:8000")
client := gosyntect.New("http://localhost:9238")
resp, err := cl.Highlight(&gosyntect.Query{
Extension: "go",
Theme: "InspiredGitHub",
@@ -19,7 +19,7 @@ func main() {
fmt.Println("usage: gosyntect <server> <theme> <file.go>")
fmt.Println("")
fmt.Println("example:")
fmt.Println(" gosyntect http://localhost:8000 'InspiredGitHub' gosyntect.go")
fmt.Println(" gosyntect http://localhost:9238 'InspiredGitHub' gosyntect.go")
fmt.Println("")
os.Exit(2)
}

0 comments on commit 1205f5e

Please sign in to comment.
You can’t perform that action at this time.