When you have a file open and active, open
Advanced - Configuration - Editor Display - Syntax Highlighting. The language for the active file is already preselected. Click on button
Open to open the wordfile containing the syntax highlighting language used for the active file. Close the configuration dialog with button
Cancel.
Go to the line starting with
/Indent Strings = which is in standard wordfile c_cplusplus.uew:
/Indent Strings = "{" "if" "else" ":"According to the small example you posted I suggest to change the line to
/Indent Strings = "{" ":"which is enough for your coding style.
"if" and
"else" are for programmers coding your example as:
- Code: Select all
if( variable < 5 )
// single command
else
// other single command
The
":" is for
- Code: Select all
switch( var )
{
case 1:
// commands
break;
case 2:
// commands
break;
default:
// commands
break;
}
You can remove
":" also from the indent strings definition if your are coding switch statements (normally) as follows:
- Code: Select all
switch( var )
{
case 1: // commands
break;
case 2: // commands
break;
default: // commands
break;
}