Please enable JavaScript to view this site.

Thread Validator Help

 

The Editing tab allows you to configure which editor Thread Validator will use for editing source code.

 

The default settings are shown below:

 

 editing-settings

 

 

Editing source code

 

From the Tools menu, or any of the data views in the main tabs, you can right click to edit the source code.

 

By default, source code is opened in a provided source code editor using syntax colouring, but you can change where you edit code via the drop-down list:

 

editor-choice-settings

 

When choosing one of the editors listed, there are options for a currently open instance (e.g. the same one you're using to develop your application), or a new instance.

 

seeAlsoSCiTEexternalLink is included in the list of editors, but there are many text editors that can be used for source code on windows. Wikipedia has a comparisonexternalLink of editors including their programming feature supportexternalLink

 

 

Editing with your preferred editor

 

We've all got our favourite editors! To use yours:

 

Select User defined editor from the list of options instructionStep enables the fields below

 

Enter the Editor path and filename or just Browse instructionStep choose the executable for your preferred editor

 

editor-custom-settings

 

Now when you want to edit source code, that editor will be opened, but typically you'll need to specify some command line arguments with which to start the editor.

 

 

Starting your preferred editor with command line arguments

 

By default, just the file name is passed as a command line argument to the editor.

 

Depending on the editor, you may need to tailor the arguments, for example if you want the file scrolled to a particular line.

 

The arguments can be specified by adding them to the table provided, one at a time and in the order required

 

Add instructionStep adds a row to the Editor arguments table instructionStep select an argument Type from the following options:

 

editor-args-add

 

The possible arguments include:

 

(Space) Filename instructionStep appends a space followed by the filename

Filename instructionStep appends just the filename
 

(Space) Line Number instructionStep a space followed by the line number

Line Number instructionStep just the line number
 

Space instructionStep a space
 

(Space) Other instructionStep a space followed by the text typed in the Value column of the list

Other instructionStep just the text typed in the Value column of the list

 

note Only the Other options need an entry in the Value column.

note You will need to press Return after entering the value otherwise the entry won't get recognized.

 

 

The example below configures NotePad++ to edit a file at the required line using the -n switch

 

editor-args-notepad

 

As you modify the arguments an example command line is shown below the list.

 

 

Managing the command line arguments

 

Edit a Type or Value by double clicking the entry. The usual controls apply for removing list items:

 

Remove instructionStep removes selected arguments in the list

 

Remove All instructionStep removes all arguments, clearing the list
 

Alternatively, press b_del to delete selected items, and b_ctrl + b_a to select all items in the list first.

 

 

Reset All - Resets all global settings, not just those on the current page.

 

 

Reset - Resets the settings on the current page.