Forums

How to install and run Cobra.

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

How to install and run Cobra.

Postby qrjqrjqrj » Tue Feb 28, 2017 7:18 pm

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.
qrjqrjqrj
 
Posts: 1

Re: How to install and run Cobra.

Postby torial » Fri Mar 10, 2017 10:24 pm

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.
torial
 
Posts: 227
Location: IA

Re: How to install and run Cobra.

Postby Charles » Sun Mar 12, 2017 6:45 pm

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.
Charles
 
Posts: 2497
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron