Gosyntect
Go HTTP client for syntect_server
Install / Use
/learn @sourcegraph/GosyntectREADME
gosyntect
gosyntect is now part of the Sourcegraph monorepo.
The information below is preserved for archival purposes only.
gosyntect is a Go HTTP client for syntect_server, a Rust HTTP server which syntax highlights code.
Installation
go get -u github.com/sourcegraph/gosyntect/cmd/gosyntect
Usage
usage: gosyntect <server> <theme> <file.go>
example:
gosyntect http://localhost:9238 'InspiredGitHub' gosyntect.go
API
client := gosyntect.New("http://localhost:9238")
resp, err := cl.Highlight(&gosyntect.Query{
Extension: "go",
Theme: "InspiredGitHub",
Code: string(theGoCode),
})
if err != nil {
log.Fatal(err)
}
fmt.Println(resp.Data) // prints highlighted HTML
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
