mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-31 22:36:27 -04:00
Improve api
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ func main() {
|
||||
|
||||
h := highlight.NewHighlighter(def)
|
||||
|
||||
matches := h.Highlight(string(fileSrc))
|
||||
matches := h.HighlightString(string(fileSrc))
|
||||
|
||||
lines := strings.Split(string(fileSrc), "\n")
|
||||
for lineN, l := range lines {
|
||||
|
||||
Reference in New Issue
Block a user