Plugin:HistoryPP/en/Text formatting: Difference between revisions
No edit summary |
(+{{content}}) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{PageLang|en}}__TOC__ | |||
The following <tt>STRING</tt> keys are used to change text which is copied to clipboard. | The following <tt>STRING</tt> keys are used to change text which is copied to clipboard. | ||
{{Content:HistoryPP/TextFormatting-Keys}} | |||
You will need {{Plugin|DbEditorPP|Database Editor}} plugin to add/edit these keys. To restore default format for particular setting, just delete it from the database and restart Miranda. | You will need {{Plugin|DbEditorPP|Database Editor}} plugin to add/edit these keys. To restore default format for particular setting, just delete it from the database and restart Miranda. | ||
== Formatting variables == | == Formatting variables == | ||
{{Content:HistoryPP/TextFormatting-Variables}} | |||
Line 46: | Line 18: | ||
Format: <tt>''%nick% - [%datetime%]:\n%mes%''</tt> | Format: <tt>''%nick% - [%datetime%]:\n%mes%''</tt> | ||
<pre style="overflow:auto;"> | |||
SomeContact - [21.01.2006 18:34]: | |||
Hello, how are you? I haven't seen you for a long time. I've got fantastic new gadget I want to tell you about. Please, drop me a line. | |||
</pre> | |||
Format: <tt>''%nick%, %time%\n%quot_mes%''</tt> | Format: <tt>''%nick%, %time%\n%quot_mes%''</tt> | ||
<pre style="overflow:auto;"> | |||
SomeContact, 18:34 | |||
> Hello, how are you? I haven't seen you for a long time. I've got fantastic | |||
> new gadget I want to tell you about. Please, drop me a line. | |||
</pre> | |||
Line 67: | Line 41: | ||
Format: <tt>''%nick%, %smart_datetime%: %quot_mes%''</tt> | Format: <tt>''%nick%, %smart_datetime%: %quot_mes%''</tt> | ||
<pre style="overflow:auto;"> | |||
Mario, 21.01.2006 18:34: > Hi! | |||
You, 18:35: > Hi! | |||
Mario, 18:36: > Bye then | |||
You, 22.01.2006 12:11: > Hi again! Where have you been? | |||
Mario, 12:12: > Oh, don't ask | |||
</pre> | |||
Format: <tt>''%from_nick%\\%to_nick% [%smart_datetime%]: %mes%\n-----\n''</tt> | |||
<pre style="overflow:auto;"> | |||
Mario\You [21.01.2006 18:34]: Hi! | |||
----- | |||
You\Mario [18:35]: Hi! | |||
----- | |||
Mario\You [18:36]: Bye then | |||
----- | |||
You\Mario [22.01.2006 12:11]: Hi again! Where have you been? | |||
----- | |||
Mario\You [12:12]: Oh, don't ask | |||
----- | |||
</pre> | |||
Format: <tt>''% | Format: <tt>''%nick%\t[%time%]\t%mes%''</tt> | ||
<pre style="overflow:auto;"> | |||
Mario [18:34] Hi! | |||
You [18:35] Hi! | |||
Mario [18:36] Bye then | |||
You [12:11] Hi again! Where have you been? | |||
Mario [12:12] Oh, don't ask | |||
</pre> | |||
== See also == | |||
* [[Plugin:HistoryPP/en#Hidden_options|History++ - Hidden options]] | |||
[[Category:Tutorials (en)]] | [[Category:Tutorials (en)]] |
Latest revision as of 13:19, 28 June 2015
The following STRING keys are used to change text which is copied to clipboard.
Key | Default | Description |
---|---|---|
FormatCopy | %nick%, %smart_datetime%:\n%mes%\n | Formats text which is copied to clipboard on Copy command |
FormatCopyText | %mes%\n | Formats text which is copied to clipboard on Copy Text command |
FormatReplyQuoted | %nick%, %smart_datetime%:\n%quot_mes%\n | Formats text which is copied to message input area on Reply Quoted command |
FormatReplyQuotedText | %quot_selmes%\n | Formats selected text which is copied to message input area on Reply Quoted command |
FormatSelection | %selmes%\n | Formats selected messages or text via external log API query |
You will need Database Editor plugin to add/edit these keys. To restore default format for particular setting, just delete it from the database and restart Miranda.
Formatting variables
Variable | Description |
---|---|
\n | New line |
\t | Tab |
\\ | Backslash (if you need to output backslash, instead of "Me\You" write "Me\\You") |
\% | Percent sign (if you need to output percent sign, instead of "Me%You" write "Me\%You") |
%nick% | Default contact's nickname text |
%from_nick% | Nick of the sender |
%to_nick% | Nick of the reciever |
%mes% | Plain message text |
%adj_mes% | Message adjusted to fit in 72 symbols |
%quot_mes% | The same as %adj_mes%, but every line is prefixed with "> " |
%selmes% | The same as %mes% or selected text in pseudo-edit mode |
%adj_selmes% | The same as %adj_mes% or applied to selected text in pseudo-edit mode |
%quot_selmes% | The same as %quot_mes% or applied to selected text in pseudo-edit mode |
%datetime% | Date and time of the event |
%smart_datetime% | Works only for several messages. Outputs full date & time only for messages with unique date. For other events outputs only time. |
%date% | Date of the event |
%time% | Time of the event |
Single event examples
Event:
SomeContact, 21.01.2006 18:34
Hello, how are you? I haven't seen you for a long time. I've got fantastic new gadget I want to tell you about. Please, drop me a line.
Format: %nick% - [%datetime%]:\n%mes%
SomeContact - [21.01.2006 18:34]: Hello, how are you? I haven't seen you for a long time. I've got fantastic new gadget I want to tell you about. Please, drop me a line.
Format: %nick%, %time%\n%quot_mes%
SomeContact, 18:34 > Hello, how are you? I haven't seen you for a long time. I've got fantastic > new gadget I want to tell you about. Please, drop me a line.
Multiple events examples
Events:
Mario, 21.01.2006 18:34: Hi!
You, 21.01.2006 18:35: Hi!
Mario, 21.01.2006 18:36: Bye then
You, 22.01.2006 12:11: Hi again! Where have you been?
Mario, 22.01.2006 12:12: Oh, don't ask
Format: %nick%, %smart_datetime%: %quot_mes%
Mario, 21.01.2006 18:34: > Hi! You, 18:35: > Hi! Mario, 18:36: > Bye then You, 22.01.2006 12:11: > Hi again! Where have you been? Mario, 12:12: > Oh, don't ask
Format: %from_nick%\\%to_nick% [%smart_datetime%]: %mes%\n-----\n
Mario\You [21.01.2006 18:34]: Hi! ----- You\Mario [18:35]: Hi! ----- Mario\You [18:36]: Bye then ----- You\Mario [22.01.2006 12:11]: Hi again! Where have you been? ----- Mario\You [12:12]: Oh, don't ask -----
Format: %nick%\t[%time%]\t%mes%
Mario [18:34] Hi! You [18:35] Hi! Mario [18:36] Bye then You [12:11] Hi again! Where have you been? Mario [12:12] Oh, don't ask