Compiling sonic pi code in sublime text editor?

I’m still a newbie to working with Sublime text editor. How do I configure it so I can compile my sonic pi ruby code inside of sublime?
Any guidance would be most welcome. I have a very long file that is throwing a syntax error that I can’t find, and I’d like to use sublime to chase it down. I’m sure it’s something stupid, but it’s a pain to chase such things down – commenting out large blocks to find the offending block is so brute force and tedious.
Thanks!