Code: Select all
v15.00.0501 - 2015-04-21 16:24
+ Scripting: Added support for NOWDOCs - that is HEREDOCs without interpolation.
Quoting from PHP documentation where the idea and the syntax it copied from:
"Nowdocs are to single-quoted strings what heredocs are to double-quoted
strings. A nowdoc is specified similarly to a heredoc, but no parsing is
done inside a nowdoc.
A nowdoc is identified with the same <<< seqeuence used for heredocs, but
the identifier which follows is enclosed in single quotes, e.g.
<<<'EOT'. All the rules for heredoc identifiers also apply to nowdoc
identifiers, especially those regarding the appearance of the closing
identifier."
Additionally, XY's NOWDOC also accepts the alternative radical option
enabled by prefixing the identifier with '#' (within the quotes).
Example:
"HEREDOC: Interpolated Continuation - Shows 'Hello World!'"
$a = "World";
Echo <<<MSG
Hello $a!
MSG;
"HEREDOC: Alternative (Radical) Interpolated Continuation - Shows 'Hello World!'"
$a = "World";
Echo <<<#MSG
Hello $a!#MSG;
"NOWDOC: Literal Continuation - Shows 'Hello $a!'"
$a = "World";
Echo <<<'MSG'
Hello $a!
MSG;
"NOWDOC: Alternative (Radical) Literal Continuation - Shows 'Hello $a!'"
$a = "World";
Echo <<<'#MSG'
Hello $a!#MSG;
* Scripting | Include statement: Now you may prefix a single-line include
statement with the script marker "::", and you may end any include
statement line with the usual instruction terminator ";" .
For example, all these lines can be passed through the Address Bar now.
They will load script_file and then execute its code:
include script_file;
::include script_file
::include script_file;
After the trailing ";" there can be any number of spaces.
NOTE: Before this change you could not use include in one-liners at all
because you could not mark it as script. So the change is useful.
However it is also a bit misleading: Note that you cannot add another
instruction to the same line. This will NOT work:
::include script_file; echo "Hola!";
! User-Defined Functions: Not internally updated when called via User | Load
Script File. Fixed.
! Color filters: Scope was not always handled as advertised. The following
rules are obliged to now:
- [selector, no scope] defaults to scope "fd" (Files and Folders)
- BUT: [no selector, no scope] defaults to "name f:" (Name, Files only!)
Here is an overview:
Pattern Scope
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pic* Files only
name: pic* Files and Folders
name f: pic* Files only
name d: pic* Folders only
name fd: pic* Files and Folders
! Tools | Tools Special | Control Panel...: Did not work anymore for Win2003
(and maybe other historic Windows versions) since 20150315. Fixed.
! Network Browsing: Under certain conditions partially matching servers
would be browsed instead of the fully matching servers. Fixed.
It's a good idea to backup your complete XYplorer settings (menu File | Settings Special | Backup Application Data Folder...)
before running a new BETA version. This will also help in fixing any fresh bugs.
XYplorer Beta Club