Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Enabling and Disabling Script Highlighting in MathScript Nodes (MathScript RT Module)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Script highlighting uses colors and font attributes to distinguish between different parts of a script in a MathScript Node. These colors and attributes improve the readability of the script and help you debug a script that contains errors or returns unexpected data. MathScript Nodes feature two types of script highlighting:

  • Syntax highlighting—Displays script elements such as operators and comments in different colors. For example, if a variable or user-defined function overrides a built-in MathScript function, syntax highlighting colors that script element as a variable or user-defined function instead of a built-in function.
    Note Note  (Windows) Syntax highlighting is also available in the Script Editor of the LabVIEW MathScript Window.
  • Data type highlighting—Displays the data types of variables in different colors and font attributes. Data type highlighting allows you to see when the script redefines a variable from one data type to another.

Complete the following steps to enable syntax or data type highlighting for a particular MathScript Node.

  1. Right-click inside the MathScript Node.
  2. Select Script Highlighting»Syntax or Script Highlighting»Data Types from the shortcut menu. Syntax highlighting is enabled by default.

If you enable syntax or data type highlighting for a MathScript Node, LabVIEW discards any color and style settings you apply to scripts with the Text Settings pull-down menu on the toolbar. If you enter a script while data type highlighting is enabled, click outside the node to apply the colors and font attributes.

Note  LabVIEW does not apply data type highlighting if a node contains an error, represented by a red glyph in the gray region on the left side of the node.

Complete the following steps to disable syntax or data type highlighting for a particular MathScript Node.

  1. Right-click inside the MathScript Node.
  2. Select Script Highlighting»None from the shortcut menu.

To enable or disable script highlighting for all MathScript Nodes, use the Script Highlighting section on the MathScript page of the Options dialog box.

If you use the MathScript page to disable script highlighting for all MathScript Nodes, LabVIEW dims the Script Highlighting item in the shortcut menus of MathScript Nodes. If you disable script highlighting for a particular MathScript Node, you cannot use the MathScript page to enable script highlighting for that node.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit