The following items can be emphasized when Ruby or Perl scripts that have been imported into operation component projects are opened in a text editor. The emphasis can be by color, bolding, or italics.
[Ruby]
Reserved words
Strings (strings inside quotation marks)
Comment
Method
Variable
[Perl]
Reserved words
String
Comment
Usage
Open the Ruby script with a text editor. Use the following procedure to change the detail emphasis can be by color of the script. The procedure for Perl scripts is the same, but anywhere "Ruby" is mentioned should be replaced with "Perl".
Open the Ruby script with a text editor. Use the following procedure to change the the detail emphasis can be by color of the script.
Select Window >> Preferences.
From the tree on the left of the Preferences dialog, select Systemwalker RBA Studio >> Editor Settings >> Ruby >> Syntax Coloring.
In the Element field, select the element to be emphasized.
Select or cancel the checkbox for selecting the type of emphasis. To change the color, click the color selection button and select the new color in the Color dialog box. Cancelling the checkbox for Enable disables all emphasis settings for the element selected in the Element field.
The emphasis can be previewed in the Preview field.
Click the OK button.
Point
Emphasis settings are reflected immediately in any script files open in the text editor when you click Apply or OK in the Preferences dialog box.