Visual Logic Syntax Highlighting has been expanded in SIMUL8 Professional 2014, allowing you to edit the colors for a variety of variables. This will allow you quickly to scan any section of Visual Logic and easily identify variable types being used.
Syntax highlighting is a great way to improve the readability and context of your code, especially code that is written in long sections, and it allows the reader to ignore large sections of comments or code, depending on what they are looking for.
It is also great for helping to debug your code and work out where changes need to be made.
How to Use Visual Logic Syntax Highlighting
To access Visual Logic Syntax Highlighting, first open any section of Visual Logic and select Editor Options from the ribbon.
Editor Options
In the Editor Options dropdown menu, you will see two options related to Syntax Highlighting.
Enable Visual Logic Syntax Highlighting: By selecting this option, your Syntax Highlighting preferences will apply to all sections of Visual Logic within your simulation. Uncheck this option to return to the default view with no highlighting enabled.
Customize Visual Logic Syntax Highlighting: Selecting this option will introduce a new dialog where you can specify the color coding for each variable used in Visual Logic.
Customizing your Highlighting
Use the [. . . ] button next to any variable type to browse and choose your desired color for that variable.
Use the Restore Default button to return to SIMUL8’s original default colors for Visual Logic Syntax Highlighting.