Improve api

This commit is contained in:
Zachary Yedidia
2017-02-18 21:29:17 -05:00
parent 0f7ed208c1
commit 6dfc8e081f
5 changed files with 37 additions and 9 deletions
+1 -1
View File
@@ -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 {