<< Automatic expansion [57/117] >>

Automatic expansion


Home / Projects / PIEdit / PIEdit-Documentation / Automatic expansion

Automatic expansion



By automatic expansion it is possible e.g. that which one only must type "Sop", thus this is extended to "System.out.println ();". It pay attention that the automatic expansion is only accomplished, if one types a blank after the expansion text.
In the directory "expand/" the information rules which when to expand itself is. Here there are certain substitute symbols:
Substitute symbol:

Substitute symbolFunction
!CUR!Here stands the cursor after expanding
!SPACE!Defines a blank
!TAB!Defines a tabulator
!LF!Defines a new line
!ACTUALDATE!Here the current date is inserted (landspecific output) (in Germany: e.g.: 24.05.2003)
!ACTUALTIME!Here the current time is inserted (landspecific output) (in Germany: e.g.: 20:06:41)
%String2 = String1 (see below)
!FREEMEMORY!Storage requirement in bytes
!TOTALMEMORY!
!MAXMEMORY!

The file expand/all.txt applies to all file types, i.e. one can register expansions, which are to be made with all file types, as e.g. by input of DATE the current date is inserted there.
Line syntax in the Expand files: Min length String1 String2
Min length: Minimum number of characters of String1 in order to expanded
String1: Input text (none may contain of the above substitute symbols, and also no blanks)
String2: Transformation text (can contain the above substitute symbols, no blanks allowed!!!)
Examples:
"3 Sop System.out.println (!CUR!);" thus, the Sop means to extend to System.out.println (); , and the cursor appears then between the clips.
"4 JOptionPane %" means, which must be entered at least "JOpt", so that it to "JOptionPane" extends.
"3 NOW!ACTUALDATE!!SPACE!!ACTUALTIME!" meant, during the input of NOW the current date and the current time (e.g. "12.01.2003 18:28") is inserted.
Everything hears itself a little complicated, but I am sure, if you looked yourselves at a file in the expand directory that then is clear how it functions


Visitors PageClicks Valid XHTML 1.0! Valid CSS!

CanciAbout meSite-MapRightsContactJSWins (JavaScript-Desktop-System)© 2004-2013 by Markus Krebs