Difference between revisions of "Syntax coloring and fonts and error underlining"

m
m
Line 1: Line 1:
 
''New in [[What's new inAnalytica_5.4?]]''
 
''New in [[What's new inAnalytica_5.4?]]''
Syntax coloring identifies keywords, system variable, global and local variables
+
Syntax coloring helps you spot mistakes as you read or edit Definitions. It uses different colors for system variables, user global and local variables, keywords, text values, comments, and undefined variables each in a different color. It also shows a squiggly red lines under syntax errors, for example:
, a fixed font option, and error underlining are new 5.4 features that apply to fields like definitions that make use of expressions. Here is an example illustrating how these features affect the appearance of a definition:
+
  
:[[File:Syntax coloring example.jpg|400px]]
+
:[[File:Syntax coloring example.jpg|600px]]
  
You can change syntax colors for the various syntax categories and turn all three features on or off using system variables as described below, with links to separate pages for these system variables:
+
By default it uses a font for Definitions (including Edit tables) that is fixed width -- i.e. the same width for each letter or character -- which is conventional for code editors. But, you can change this back to variable width font,  change the syntax colors, and the error underlining using these system settings variables, available  from ''Definition / System variables / Settings /
  
 
#  Set the syntax colors using system variable '''Syntax colors''' from ''Definition / System variables / Settings / Syntax colors'' (see [[Sys_SyntaxColors]])
 
#  Set the syntax colors using system variable '''Syntax colors''' from ''Definition / System variables / Settings / Syntax colors'' (see [[Sys_SyntaxColors]])
# You can turn syntax coloring on and off using system variable '''Enable syntax coloring''' from ''Definition / System variables / Settings / Enable syntax coloring'' (see [[Sys_EnableSyntaxColo]])
+
# Disable/enable syntax coloring using system variable '''Enable syntax coloring''' from ''Definition / System variables / Settings / Enable syntax coloring'' (see [[Sys_EnableSyntaxColo]])
Go back to variable width font using system variable '''Enable fixed font''' back from 1 to 0 from ''Definition / System variables / Settings / Enable fixed font'' (see [[Sys_EnableFixedFont]])
+
Enable fixed-width font or disable (use variable-width font) using system variable '''Enable fixed font''' back from 1 to 0 from ''Definition / System variables / Settings / Enable fixed font'' (see [[Sys_EnableFixedFont]])
# Disable error underlining with system variable '''Enable error underlining''', accessible from ''Definition / System variables / Settings / Enable error underlining'' (see [[Sys_EnableErrorUnder]])
+
# Disable/enable error underlining with system variable '''Enable error underlining''', accessible from ''Definition / System variables / Settings / Enable error underlining'' (see [[Sys_EnableErrorUnder]])

Revision as of 21:50, 8 September 2020

New in What's new inAnalytica_5.4? Syntax coloring helps you spot mistakes as you read or edit Definitions. It uses different colors for system variables, user global and local variables, keywords, text values, comments, and undefined variables each in a different color. It also shows a squiggly red lines under syntax errors, for example:

Syntax coloring example.jpg

By default it uses a font for Definitions (including Edit tables) that is fixed width -- i.e. the same width for each letter or character -- which is conventional for code editors. But, you can change this back to variable width font, change the syntax colors, and the error underlining using these system settings variables, available from Definition / System variables / Settings /

  1. Set the syntax colors using system variable Syntax colors from Definition / System variables / Settings / Syntax colors (see Sys_SyntaxColors)
  2. Disable/enable syntax coloring using system variable Enable syntax coloring from Definition / System variables / Settings / Enable syntax coloring (see Sys_EnableSyntaxColo)
  3. Enable fixed-width font or disable (use variable-width font) using system variable Enable fixed font back from 1 to 0 from Definition / System variables / Settings / Enable fixed font (see Sys_EnableFixedFont)
  4. Disable/enable error underlining with system variable Enable error underlining, accessible from Definition / System variables / Settings / Enable error underlining (see Sys_EnableErrorUnder)
Comments


You are not allowed to post comments.