NightRoman wrote:Может, стоит и запустить уже в пользование, так лучше протестируется
Гложат меня сомнения в правильности подхода.
По хорошему это должен быть плагин (возможно АПИ "к клипборду" - вызов плагина для необходимых преобразований массива данных перед помещением онных в клипборд), т.к. сейчас код только для граббера (с добавками HTML и RTF), а выше были хотелки для картинок и т.п.
We are the Borg. You will be assimilated.
So Say We All!
Век живи, век учись...
В faq лишь сказано "За дополнительной информацией о BBCode обратитесь к руководству по BBCode, ссылка на которое доступна из формы отправки сообщений."
Но ссылки я там не нашёл.
Console Dump
Copyright 2012 Jason Hood
Version 1.00. GPL
===========
Description
===========
Console Dump will generate either an HTML or ANSI file containing a full
color snapshot of the current Windows console.
============
Requirements
============
Windows NT 4.0 and later (it won't work with 9X, but could be made to).
=====
Usage
=====
Console Dump can generate various kinds of dumps:
- Single HTML file with inline color attributes included in the HTML
<HEAD> section (option -h).
- Single HTML file referring to external CSS containing all possible
color attributes (option -e). This may be useful if you want to
adjust the colors from the default.
- HTML fragment with only the screen dump (option -p). This may be
useful for embedding inside other HTML pages, giving better control
over the page layout. You will need to provide the required attrib-
utes for color display on the page, either by linking to an external
CSS, embedding the styles in the page, or using option -d.
- ANSI file, using either the current code page (option -a), UTF-8 (-u),
or UTF-8 with initial byte-order mark (-U).
Console Dump can also generate a CSS containing all possible attributes
(option -C). In this case, no screen dump is done; only the CSS file is
generated.
The following aspects of Console Dump's behavior can be further control-
led with options:
- The name of the output file can be set with the -o option. Using "-"
for a filename causes output to be directed to stdout.
- The name of the external CSS file can be set with the -c option. Using
"-" for a filename causes output to be directed to stdout.
- The HTML color attributes can be written directly in the span tag with
the -d option. This will create a larger file, but avoids the need
for a style sheet, which may be useful for fragment dumps.
- The HTML title/heading can be set with the -t option.
- Trailing spaces can be included in the ANSI file with the -d option.
Normally the remainder of the line is erased, as this avoids the extra
blank line when writing a full line to the console.
- The lines to be dumped can be controlled via options -b (dump from the
start of the buffer), -w (dump the entire window, not just up to the
cursor), -s (skip previous lines; the default is 2, which should
normally skip the condump command itself and the blank line before it)
and -l (the number of lines to dump, counting backwards from the
skip). The top of the window may be selected by using option -k to
wait for a key before dumping, allowing the mouse to scroll the
buffer. Press Escape to cancel the dump.
===============
Version History
===============
Legend: + added, - bug-fixed, * changed.
v1.00 - 22 December, 2012:
+ initial release.
===============
Acknowledgments
===============
Based directly on:
vcsadump - Linux virtual console color snapshot tool
(C) 2003 Florian <petafrog@yahoo.com>
=======
Contact
=======
mailto:jadoxa@yahoo.com.au
http://condump.adoxa.cjb.net/
Jason Hood
11 Buckle Street
North Rockhampton
Qld 4701
Australia
=======
License
=======
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL-
ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
==============================
Jason Hood, 22 December, 2012.
Спасибо.
Хочется, чтобы при этом переключении существующее выделение перерисовывалось с новым типом, а то смена типа становится заметна только после какого-то изменения выделения.