Differences
This shows you the differences between the selected revisions of the page.
2017-09-05 | 2018-03-16 | ||
released 5.11 stable (martin) | 5.12 Extensions metadata can span multiple lines. (martin) | ||
Line 13: | Line 13: | ||
All metadata are prefixed with ''@'', followed by a metadata key, space(s) or tab(s), and a value. | All metadata are prefixed with ''@'', followed by a metadata key, space(s) or tab(s), and a value. | ||
- | The metadata line have to start with the ''@'', optionally escaped with some recognized "single-line comments" syntax. The recognized comment syntaxes are ''rem'' (Windows batch file), ''#'' (e.g. WinSCP script, PowerShell, %%Perl%%, Python), ''%%//%%'' (e.g. JavaScript), ''%%'%%'' (VBScript). | + | The metadata line have to start with the ''@'', optionally escaped with some recognized "single-line comments" syntax. The recognized comment syntaxes are ''rem'' (Windows batch file), ''#'' (e.g. WinSCP script, PowerShell, %%Perl%%, Python), ''%%//%%'' (e.g. JavaScript), ''%%'%%'' (VBScript). A metadata line can continue on following line(s) by using `''^'' at the end of the line. The following line(s) can also be escaped with a comment syntax, the same way as the first line. |
The recognized metadata keys are: | The recognized metadata keys are: | ||
Line 38: | Line 38: | ||
<code powershell> | <code powershell> | ||
# @name Verify &Checksum | # @name Verify &Checksum | ||
- | # @command powershell.exe -ExecutionPolicy Bypass -File "%EXTENSION_PATH%" -sessionUrl "!S" -localPath "!^!" -remotePath "!/!" -pause | + | # @command powershell.exe -ExecutionPolicy Bypass -File "%EXTENSION_PATH%" ^ |
+ | # -sessionUrl "!S" -localPath "!^!" -remotePath "!/!" -pause | ||
# @description Compares checksums of the selected local and remote file | # @description Compares checksums of the selected local and remote file | ||
# @flag RemoteFiles | # @flag RemoteFiles | ||
Line 90: | Line 91: | ||
# @option - -config link https://winscp.net/eng/docs/extension#options | # @option - -config link https://winscp.net/eng/docs/extension#options | ||
# @option Mask -config textbox "&File mask" "*.txt; *.html" | # @option Mask -config textbox "&File mask" "*.txt; *.html" | ||
- | # @option SearchType -config dropdownlist "Search for:" -files -files="Files" -dirs="Directories" -both="Files and Directories" | + | # @option SearchType -config dropdownlist "Search for:" -files ^ |
+ | # -files="Files" -dirs="Directories" -both="Files and Directories" | ||
# @option LogFile -config file "&Log File:" "%APPDATA%\mylog.log" | # @option LogFile -config file "&Log File:" "%APPDATA%\mylog.log" | ||
# @option Pause -config checkbox "&Pause at the end" -pause -pause | # @option Pause -config checkbox "&Pause at the end" -pause -pause |