The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Change colors in script window
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bafaneh

USA
49 Posts

Posted - 10/13/2011 :  3:00:25 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.5.1
Operating System:win7

Hi,

Is there any way to change the colors in the script window, so it looks more organized and is easier to read?

I prefer to have different colors for the comments, functions, etc.

Thanks,
Basheer

LabTalk user

USA
35 Posts

Posted - 10/13/2011 :  6:04:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
bafaneh,

If you click on the gear image at the top of the Origin GUI, it opens a window called 'Code Builder'. Within this window you can edit LabTalk and other languages scripts with color indicators for the code. I'm not sure if there is a way to change the colors within the script window, but the Code Builder window has lots of great features to help with editing and debugging scripts.

I hope this helps!
Go to Top of Page

bafaneh

USA
49 Posts

Posted - 10/14/2011 :  4:52:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I see the colors in the code builder's text editor, but it doesn't run when I press enter. How is that supposed to go?

-Basheer
Go to Top of Page

bafaneh

USA
49 Posts

Posted - 10/14/2011 :  5:22:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Oh, I see its for Origin C. Can you find out if there is a way to change Labtalk to color code like Origin C?
Go to Top of Page

pheromore

United Kingdom
1 Posts

Posted - 10/16/2011 :  05:04:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I kind'a have a hard time looking for the specified option.
Go to Top of Page

greg

USA
1379 Posts

Posted - 10/17/2011 :  5:10:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The Editor in the Code Builder IDE works with both OriginC and LabTalk, and provides customizable (see Tools : Options) text coloring, but LabTalk is handled a bit differently than OriginC.

Your Labtalk code must be in an OGS file with sections.
You can insert break points and execute a section by using the run.section( ) command or the Debug menu option to execute the Current Section (where the cursor is).
Declared variables will show up in the Variables window during debug, while undeclared variables will show their values only by hovering the mouse over an instance in your code or setting up a watch.
Go to Top of Page

bafaneh

USA
49 Posts

Posted - 10/26/2011 :  5:18:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Greg,

Thanks for responding.

>>You can insert break points and execute a section by using the >>run.section( ) command or the Debug menu option to execute the >>Current Section (where the cursor is).

I don't know how "run.section()" can be used in a helpful manner, and I am unsure of how to use the "execute current section" command. Could you give me an example to help me understand how to use them?

Sincerely,
Basheer
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000