ExpandParameter
ExpandParameter Format
This special sign can be used by the following each character string.
- Header/Footer of Print Page Setting.
- Execute External Command.
- Window Commonness to title bar character string of "Window" Property
- Function only for macro Argument of S_ExpandParameter.
- Macro Argument of S_TraceOut.
Special Sign
The full path used by the example is assumed to be "D:\source\Main.cpp".
$$ | $ oneself. |
$F | Full path of open file. If there is no name (untitled). |
$f | Name of open file. (Only file name + extension) Example: Main.cpp |
$N | Name of open file. (Convenient Display) Example: source\Main.cpp (It depends on the setting) |
$g | Name of open file. (extension division) Example: Main |
$/ | Full path of open file. (path delimitation is "/") Example: D:/source/Main.cpp |
$C | Text of the first line to exclude line feed code by average selecting it now. The word at a present cursor position is acquired when there is no range of the selection. |
$x | Present logical digit position (one byte number beginning from head). |
$y | Present logical line position (one beginning). |
$d | Present date (format of date of common setting). |
$t | Present time (format of time of common setting). |
$p | Present page (It is possible to use it only with header/footer of the print). |
$P | Total page (It is possible to use it only with header/footer of the print). |
$D | Time-stamp on a file (format of date of common setting). |
$T | Time-stamp on a file (format of time of common setting). |
$V | Version character string of editor. |
$h | 32 head bytes of Grep retrieval key. |
$S | Full path name of Sakura-Editor. (sakura:1.5.7.0 or later) Example: C:\Program files\sakura\sakura.exe |
$M | Full path name of macro executing it now. (sakura:1.5.7.0 or later) |
$I | ini file path to which it is referring now. |
Note: When New file,Grep retrieval result window,Output window, $F,$f,$g,$/ are "(Untitled)", $D,$T are "(Modified)".
Hint: $C becomes the same character string , saying that the character string taken into "Condition" column of the retrieval when "search dialog is put out the peel".
the following specifications.
- The character string is acquired and when the range has been selected, the character string that has been selected is acquired.
- The character string is acquired and when the range has not been selected, the word at the cursor position is acquired.
- Even if two or more lines were selected, being acquired is one line on alone, and doesn't include line-feed most.
- The character string that can be acquired 259 bytes.
It might be different from return value of GetSelectedString(0);.
Syntax of Condition Branching
${Condition?String1$:String2$}
Either of character string 1 or character string 2 is evaluated by the result of the condition (display).
A condition branching (possible the nest) and a special sign can be put in the character string.
There is the one with three patterns or more according to the condition, too.
The following conditions can be used.
- R ReadOnly $: Superscription prohibition $: It is not however sooner or later.
- U Updated file $: File that has not been updated.
- M Keyboard macro is being recorded $: It is not recording.
- w Grep window $: Output window $: Normal window.
- I The editor window is not active $: The editor window is active.
Note: The meaning of the condition of R is as follows.
- ReadOnly: It does only for reading by operating "ReadOnly" on the editor.
- Overwrite Prohibition: Turning on and other applications are with exclusive control and the attribute only for reading the file is open, etc.
- It is not however sooner or later: Excluding the above-mentioned.
Example:
- Before it develops: "$F is {U?modified$:un-modified}."
- After it develops: "D:\source\Main.cpp is un-modified."