Page 1 of 1

How to install and run Cobra.

PostPosted: Tue Feb 28, 2017 7:18 pm
by qrjqrjqrj
Hi,

I am literally so lost. I don't know how or where to run this language. I clicked the zip to download but those are just folder files explaining how to write code. I need to know how to donwload and run.?? Like does is use Eclipse, or Visual Basic? Please someone help.

Re: How to install and run Cobra.

PostPosted: Fri Mar 10, 2017 10:24 pm
by torial
Get the latest (3119) version of Cobra in the form of a self-extracting EXE from http://cobra.on-track-solutions.com/wp-admin/files/Cobra.exe .

Double click it to run the self-extractor, and select c:\ as the destination. A Cobra directory should be created. Copy the c:\Cobra\bin\cobra.bat to your C:\Windows\System32 folder so that you can run the Cobra compiler from any location on your computer.

Xamarin Studio unfortunately changes their API all the time so Nerdzero's plugin no longer works (and it used to be that I'd have to re-install it/ tweak the references with every big XS release). Likewise the VS2010 addin doesn't work, and I looked into upgrading it to 2012, and so on (using various recommended techniques) but I had no luck in that.

So your best bet is to use a editor from http://cobra-language.com/trac/cobra/wiki/EditorSupport, personally I prefer Scite http://cobra-language.com/trac/cobra/wiki/SciTE but you may have a hankering for something else.

Re: How to install and run Cobra.

PostPosted: Sun Mar 12, 2017 6:45 pm
by Charles
You can use the @help directive in your code to have Cobra create an HTML file about what follows the @help:
someString = ''
@help someString

When you compile your code, the @help directive will trigger the HTML file generation. Try it out.