mirror of
https://github.com/alecthomas/chroma.git
synced 2025-04-11 11:32:05 +02:00
Merge pull request #20 from sago35/fix-windows-color
Fix colors on windows
This commit is contained in:
commit
e5fd873611
@ -152,12 +152,12 @@ command, for Go.
|
||||
if len(*filesArgs) == 0 {
|
||||
contents, err := ioutil.ReadAll(os.Stdin)
|
||||
kingpin.FatalIfError(err, "")
|
||||
format(os.Stdout, style, lex("", string(contents)))
|
||||
format(w, style, lex("", string(contents)))
|
||||
} else {
|
||||
for _, filename := range *filesArgs {
|
||||
contents, err := ioutil.ReadFile(filename)
|
||||
kingpin.FatalIfError(err, "")
|
||||
format(os.Stdout, style, lex(filename, string(contents)))
|
||||
format(w, style, lex(filename, string(contents)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user