Difference between revisions of "Editor Settings"

From Lianjapedia
Jump to: navigation, search
(Enable object naming conventions)
(Library files search path)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
''Under Construction''
 
 
 
==See Also==
 
==See Also==
 
[[App Settings]], [[Script Editor]]
 
[[App Settings]], [[Script Editor]]
 +
 +
==Use External Editor==
 +
Use External Editor for editing (True | False).
 +
 +
==External Editor==
 +
The External Editor for editing, e.g. ''code''.
 +
 +
* If you are using the Visual Studio Code editor for editing JavaScript (.js) or TypeScript (.ts) files, referencing the TypeScript definition files for Lianja will provide intellisense for Lianja classes.
 +
 +
Include the following line at the start of your .js or .ts file:
 +
 +
For App files:
 +
<pre>/// <reference path="../../library/Lianja.d.ts" /></pre>
 +
 +
For library files:
 +
<pre>/// <reference path="Lianja.d.ts"/></pre>
 +
 +
==External Editor Extensions==
 +
A comma separated list of file extensions that will be edited externally, e.g. ''js,ts,html,css,py,php''.
  
 
==Activate Completion==
 
==Activate Completion==
Activate statement completion (Always &#124; Manually &#124; Never).  Introduced in v3.4.
+
Activate statement completion (Always &#124; Manually &#124; Never).
  
 
==Activate completion timeout==
 
==Activate completion timeout==
Activate statement completion timeout.  Introduced in v3.4.
+
Activate statement completion timeout.
  
 
==Enable Intellitips==
 
==Enable Intellitips==
Enable Intellitips (True &#124; False).  Introduced in v3.4.
+
Enable Intellitips (True &#124; False).
  
 
==Enable code snippets==
 
==Enable code snippets==
Enable code snippets (True | False). Introduced in v3.4.
+
Enable code snippets (True | False).
  
 
When a snippet is inserted it contains parameter insertion points e.g. Here is the snippet called ife for an if/else/endif statement.
 
When a snippet is inserted it contains parameter insertion points e.g. Here is the snippet called ife for an if/else/endif statement.
Line 26: Line 43:
 
See [[Script Editor#Code Snippets|Script Editor: Code Snippets]] for more details.
 
See [[Script Editor#Code Snippets|Script Editor: Code Snippets]] for more details.
  
==Enable parameter hints==
+
==Enable command syntax hints==
Enable parameter hints (True | False). Introduced in v3.4.
+
Enable command syntax hints (True | False).
 +
 
 +
==Enable function parameter hints==
 +
Enable function parameter hints (True | False).
  
 
==Enable command parameter hints==
 
==Enable command parameter hints==
Enable command window parameter hints (True | False). Introduced in v3.4.
+
Enable command window parameter hints (True | False).
  
 
==Insert matching characters==
 
==Insert matching characters==
Automatically insert matching characters (True | False). Introduced in v3.4.
+
Automatically insert matching characters (True | False).
  
 
==Enable code folding==
 
==Enable code folding==
Enable code folding (True | False). Introduced in v3.4.
+
Enable code folding (True | False).
 
[[{{ns:file}}:fold1.png|450px|thumb|left|link={{filepath:fold1.png}}|Code Folding]]
 
[[{{ns:file}}:fold1.png|450px|thumb|left|link={{filepath:fold1.png}}|Code Folding]]
  
Line 53: Line 73:
  
 
==Enable word highlighting==
 
==Enable word highlighting==
Enable highlighting of words in file as typed (True | False). Introduced in v3.4.
+
Enable highlighting of words in file as typed (True | False).
  
 
==Enable smart indenting==
 
==Enable smart indenting==
Enable smart indenting of code blocks (True | False). Introduced in v3.4.
+
Enable smart indenting of code blocks (True | False).
  
 
==Enable object naming conventions==
 
==Enable object naming conventions==
Enable object naming conventions to display property/method pick lists based on identifier prefixes (True | False). Introduced in v3.4.
+
Enable object naming conventions to display property/method pick lists based on identifier prefixes (True | False).
  
 
[[{{ns:file}}:codeAssist9e.png|link={{filepath:codeAssist9e.png}}|Naming format: Image]]
 
[[{{ns:file}}:codeAssist9e.png|link={{filepath:codeAssist9e.png}}|Naming format: Image]]
Line 66: Line 86:
  
 
==Refresh advanced panel==
 
==Refresh advanced panel==
Always refresh the editor advanced panel when a file is edited (True | False). Introduced in v3.4.
+
Always refresh the editor advanced panel when a file is edited (True | False).
  
 
[[{{ns:file}}:find1.png|450px|thumb|left|link={{filepath:find1.png}}|Find and Advanced Panels]]
 
[[{{ns:file}}:find1.png|450px|thumb|left|link={{filepath:find1.png}}|Find and Advanced Panels]]
Line 79: Line 99:
 
<br clear=all>
 
<br clear=all>
 
See [[Script Editor#Find Panel and Advanced Panel|Script Editor: Find Panel and Advanced Panel]] for more information about the editor advanced panel.
 
See [[Script Editor#Find Panel and Advanced Panel|Script Editor: Find Panel and Advanced Panel]] for more information about the editor advanced panel.
 +
 +
==Fast syntax highlighting==
 +
Fast syntax highlighting (True &#124; False).  From v9.5, set to True by default. The syntax highlighter for LianjaScript is much more responsive in the [[Troubleshooter_Debugger_Tab|debugger]] when opening large files.
 +
 +
==Theme==
 +
The editor theme (Default &#124; Visual Studio Dark &#124; Visual Studio Light &#124; Eclipse &#124; Dreamweaver).
 +
 +
[[{{ns:file}}:editor_theme.png|450px|thumb|left|link={{filepath:editor_theme.png}}|Editor Theme]]
 +
 +
<br clear=all>
 +
See [[Script_Editor#Themes|Script Editor:Themes]] for information on creating your own theme.
 +
 +
==Show Doc==
 +
Show the editor Doc when editing (True &#124; False).
 +
 +
==App files search path==
 +
A semi-colon (;) separated list of directories to search and refresh in the [[#Refresh_advanced_panel|editor advanced panel]] when an App file is edited. (From v5.0).
 +
 +
==Library files search path==
 +
A semi-colon (;) separated list of directories to search and refresh in the [[#Refresh_advanced_panel|editor advanced panel]] when a Library file is edited. (From v5.0).
  
 
[[Category:Developing in Lianja]]
 
[[Category:Developing in Lianja]]
Line 84: Line 124:
 
[[Category:Apps Workspace]]
 
[[Category:Apps Workspace]]
 
[[Category:Library Workspace]]
 
[[Category:Library Workspace]]
[[Category:Lianja v3.4]]
+
[[Category:App Settings]]
 +
[[Category: Lianja v9.5]]

Latest revision as of 10:34, 5 February 2024

See Also

App Settings, Script Editor

Use External Editor

Use External Editor for editing (True | False).

External Editor

The External Editor for editing, e.g. code.

  • If you are using the Visual Studio Code editor for editing JavaScript (.js) or TypeScript (.ts) files, referencing the TypeScript definition files for Lianja will provide intellisense for Lianja classes.

Include the following line at the start of your .js or .ts file:

For App files:

/// <reference path="../../library/Lianja.d.ts" />

For library files:

/// <reference path="Lianja.d.ts"/>

External Editor Extensions

A comma separated list of file extensions that will be edited externally, e.g. js,ts,html,css,py,php.

Activate Completion

Activate statement completion (Always | Manually | Never).

Activate completion timeout

Activate statement completion timeout.

Enable Intellitips

Enable Intellitips (True | False).

Enable code snippets

Enable code snippets (True | False).

When a snippet is inserted it contains parameter insertion points e.g. Here is the snippet called ife for an if/else/endif statement.

if ${condition}
	${insert your code here}
else
	${insert your else code here}
endif

See Script Editor: Code Snippets for more details.

Enable command syntax hints

Enable command syntax hints (True | False).

Enable function parameter hints

Enable function parameter hints (True | False).

Enable command parameter hints

Enable command window parameter hints (True | False).

Insert matching characters

Automatically insert matching characters (True | False).

Enable code folding

Enable code folding (True | False).

Code Folding



Code blocks such as if...endif, for...endfor, scan...endscan and do case...endcase are automatically indicated in the left margin with a small + or - icon at the start of the block and an arrow at the end.

Click the - icon to fold the code block.

Click the + icon to unfold a folded code block.


See Script Editor: Code Folding for more details.

Enable word highlighting

Enable highlighting of words in file as typed (True | False).

Enable smart indenting

Enable smart indenting of code blocks (True | False).

Enable object naming conventions

Enable object naming conventions to display property/method pick lists based on identifier prefixes (True | False).

Naming format: Image

See Object Variable Intellisense Heuristics for details.

Refresh advanced panel

Always refresh the editor advanced panel when a file is edited (True | False).

Find and Advanced Panels




The Advanced Panel has a number of tabs providing the results of App or Library wide searches along with script and compilation output.


See Script Editor: Find Panel and Advanced Panel for more information about the editor advanced panel.

Fast syntax highlighting

Fast syntax highlighting (True | False). From v9.5, set to True by default. The syntax highlighter for LianjaScript is much more responsive in the debugger when opening large files.

Theme

The editor theme (Default | Visual Studio Dark | Visual Studio Light | Eclipse | Dreamweaver).

Editor Theme


See Script Editor:Themes for information on creating your own theme.

Show Doc

Show the editor Doc when editing (True | False).

App files search path

A semi-colon (;) separated list of directories to search and refresh in the editor advanced panel when an App file is edited. (From v5.0).

Library files search path

A semi-colon (;) separated list of directories to search and refresh in the editor advanced panel when a Library file is edited. (From v5.0).