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

(Created page with "Refer to What's_new_in_Analytica_5.4?#Syntax_coloring_and_fonts_in_expressions for the announcement of new features discussed here. Here is a recapitulation of the in...")
 
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Refer to [[What%27s_new_in_Analytica_5.4%3F#Syntax_coloring_and_fonts_in_expressions]] for the announcement of new features discussed here.
+
''New in [[What's new in Analytica_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:
  
Here is a recapitulation of the information on the What's New page that tells you what the various sys vars are for controlling these features. Links are provided to the sys vars where you can get more detailed information for working with them. Note that each of these sys var values are preserved in the Windows registry in the User area, and do not change from model to model.
+
:[[File:Syntax coloring example.jpg|600px]]
 +
 
 +
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]])

Latest revision as of 21:50, 8 September 2020

New in What's new in Analytica_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.