mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-10-27 11:59:56 -04:00
Improve api
This commit is contained in:
1 parent
0f7ed208c1
commit
6dfc8e081f
5 files changed
+37
-9
No files matched your search
+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