Author |
Topic  |
|
bafaneh
USA
49 Posts |
Posted - 10/13/2011 : 3:00:25 PM
|
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
|
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!
|
 |
|
bafaneh
USA
49 Posts |
Posted - 10/14/2011 : 4:52:54 PM
|
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 |
 |
|
bafaneh
USA
49 Posts |
Posted - 10/14/2011 : 5:22:43 PM
|
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? |
 |
|
pheromore
United Kingdom
1 Posts |
Posted - 10/16/2011 : 05:04:26 AM
|
I kind'a have a hard time looking for the specified option. |
 |
|
greg
USA
1379 Posts |
Posted - 10/17/2011 : 5:10:41 PM
|
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.
|
 |
|
bafaneh
USA
49 Posts |
Posted - 10/26/2011 : 5:18:40 PM
|
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
|
 |
|
|
Topic  |
|