SDK Help Needed

Anyone have instructions or a link to a tutorial for how to get the Roku SDK setup in VS 2010? I have used VS for a while, but have never had occasion to add an SDK so this is new ground for me.

Thanks!

There’s no integration with Visual Studio supported. However, viewing the .brs files as .vb files gives you pretty good syntax highlighting in VS.

–Kevin

Well, I suppose I should have asked what the best way to use the SDK is then. I can’t get it to open, and I thought I saw somewhere that it would run in an IDE. When I double click the executable in the SDK folder I get a brief flash of a command window and then nothing.

I have tried this on my Win 7 (64 bit) and Macbook (Snow Leopard) machines with the same results.

Thanks!

The sdk is distributed as a zip file. You need to unzip it first to view the contents.

Please start by going through this sticky thread:
viewtopic.php?f=34&t=36014

–Kevin

I use wordpad - which probably isn’t the best way, but it works for me.

“destruk” wrote:
I use wordpad - which probably isn’t the best way, but it works for me.

I hope you at least use a fixed width font…

I use vi/vim, and the vbs highlighting seems to work well enough that it’s useful. Personally, I think syntax highlighting is probably the single biggest enhancement that can be made over a plain vanilla text editor for writing source code.

I’ve been using Notepad++ (free) with vbs syntax highlighting and the function list plugin. Works great!

-JT

“renojim” wrote:
I’ve been using Notepad++ (free) with vbs syntax highlighting and the function list plugin. Works great!

-JT
I use Notepad++ with vbs syntax highlighting as well, but I didn’t know about the Function List plugin. Nice one!

For anyone using a Mac, TextWrangler is my favorite. It does syntax coloring, function listing, and code folding just to name a few. It also balances symbols like () {} while you type, so if you hit a ) and it doesn’t detect a matching ( it will alert you right away. That feature alone has saved me more than a few times.

“RokuChris” wrote:
For anyone using a Mac, TextWrangler is my favorite. It does syntax coloring, function listing, and code folding just to name a few. It also balances symbols like () {} while you type, so if you hit a ) and it doesn’t detect a matching ( it will alert you right away. That feature alone has saved me more than a few times.
This is what I’ve been using, with Javascript highlighting.

Could you tell me more about function listing? Not seeing that, think I might have missed an option somewhere.

You wouldn’t also happen to have any customized BrightScript plugins for TextWrangler would you?

“evilmax17” wrote:
Could you tell me more about function listing, and symbol balancing? Not seeing either of these, think I might have missed an option somewhere.

You wouldn’t happen to have any customized BrightScript plugins for TextWrangler would you?

  • I set the syntax coloring to VBScript and it works pretty well

  • The function list is at the top of the editor window. To turn it on go to View->Show Navigation Bar

  • Balance while typing is in the “Editor Defaults” section of the preferences

Thanks for the tips guys! I was under the misperception that the sdk would plug into an IDE. I’ll give it a whirl with Notepad++ on my PC and TextWrangler on my Mac to see which I like best.

Thanks!

I just started myself and I have been using Textpad. http://www.textpad.com, available for free.

i just installed notepad++ , how do i enable vbs syntax highlighting?

Go to Settings-Style Configurator. Then under Language, go down to VB/VBS and add brs as a User ext. Someone posted a full style for BrightScript and Notepad++, so you might want to search for that.

-JT

is this what you were talking about?

viewtopic.php?f=34&t=36912&p=240108&hilit=brightscript+style#p240108

i tried this but notepad++ crashes every time i try to select it.

That’s what I was talking about, but I don’t know much about it. I’ve been meaning to try it, but so far I’ve just been sticking with the VB/VBS style.

-JT

I use Jedit on the mac with the brightscript syntax highlighter viewtopic.php?f=34&t=33897&p=216174&hilit=jedit#p216165 that Malloys created for me, it is more than adequate to get the job done.

  • Joel