I have a plugin that executes a command via a shell call.
I would like to style the output.
I’ve seen you can do it from a ruby plugin I’ve seen but I’m completely baffled by thTheme & tmLanguage files even though everyone seems to suggest they are easy.
The output I have is:
xUnit.net console test runner (32-bit .NET 4.0.30319.17020)
Copyright (C) 2015 Outercurve Foundation.
Discovering: Owin.StatelessAuth.Tests
Discovered: Owin.StatelessAuth.Tests
Starting: Owin.StatelessAuth.Tests
Finished: Owin.StatelessAuth.Tests
=== TEST EXECUTION SUMMARY ===
Owin.StatelessAuth.Tests Total: 17, Errors: 0, Failed: 0, Skipped: 0, Time: 0.231s
[Finished in 1.4s]
I’ve got as far as getting the regex for the output I’m interested in:
^\s+\S+ Total: \d+, Errors: \d+, Failed: \d+, Skipped: \d+, Time: \d+.\d+s$
I have a thTheme and tmLanguage files borrowed from https://github.com/maltize/sublime-text-2-ruby-tests that I’ve tried to modify but I never seem to get colours applied in the output.exec panel so wondering if starting from scratch would be better. I want the total to be green, errors to be red, failed to be red and skipped to be yellow and time to be blue.
I was wondering if someone could help.