Персональные инструменты
 

TextArea Sputnik/en — различия между версиями

Материал из CustisWiki

Перейти к: навигация, поиск
м (реплицировано из внутренней CustisWiki)
м (1 версия)
 
(не показано 12 промежуточных версий 5 участников)
Строка 1: Строка 1:
Это плагин к броузеру «Mozilla Firefox», позволяющий относительно удобно редактировать
+
This is Mozilla Firefox plug-in that helps to edit «TextArea» in any external text editor and partially solves the problem for lack of «Undo» and «Find/Replace» functions.
«TextArea»-области в произвольном внешнем редакторе, т. е. несколько снимающий проблему отсутствия в Firefox функциональности «Undo», «Find/Replace» при редактировании «TextArea».
+
  
Этот плагин нужно настроить («Tools»/ «Extensions»/ «TextArea Sputnik»/ «Options»), указав в нем:
+
This plug-in has to be configured («Tools»/ «Extensions»/ «TextArea Sputnik»/ «Options») by setting the following parameters:
* путь к внешнему редактору (редактор должен уметь получать имя редактируемого файла из командрой строки);
+
* path to external text editor (this editor has to be able to get filename from command line);
* в какой кодировке поставлять ему файлы (если ваш редактор не поддерживает UTF-8, вы можете выбрать кодировку из более чем десяти наиболее распространенных:
+
* coding of input file (in case your editor doesn’t support UTF-8, you can choose one of more than ten most prevalent codings):
 
** UTF-8
 
** UTF-8
 
** windows−850
 
** windows−850
Строка 16: Строка 15:
 
** iso-2022-jp
 
** iso-2022-jp
 
** shift_jis
 
** shift_jis
* с каким расширением должен быть файл — расширение можно использользовать для указания редактору синтаксической раскраски и иной настройки;
+
* file extension, that can be used to assign syntax colors or any other specific settings of text editor;
* Если ваш редактор понимает только двухбайтные DOS-разделители строк — установите и эту опцию.
+
* in case your editor can only interpret double-bytes DOS-separators corresponding option has to be set.
  
В качестве редактора рекомендуется использовать легкий редактор (чтобы мгновенно открывался).
+
It is recommended to use light text editor (in order to open file immediately).
  
Например, Notepad++.
+
For example, Notepad++, that can be downloaded at:
Его можно взять
+
  
 
* http://notepad-plus.sourceforge.net/
 
* http://notepad-plus.sourceforge.net/
и настроить для расширения «wiki» некоторую синтаксическую раскраску и правила foldinga.
+
It is possible to configure some syntax colors and folding rules for «wiki» extension.
 
+
Если вызвать контекстное меню (правой клавишей мыши) из области, где редактируется текст, то в нем будет пункт «Edit» (или «Править», в зависимости от локализации), который скопирует текст в файл уникальный для данной пары (URL,textarea), и вызовет для него указанный редактор. 
+
По окончании редактирования, вы сохраняете файл в редакторе, возвращаетесь в
+
исходную текстовую текстовую область
+
* если вы нажимаете в этой области левой клавишей мыши, то содержимое файла проносится в текстовую область, а файл стирается. Впрочем, если ваш редактор не закрыт, и не настроен автоматически закрывать удаленные файлы — вы можете продолжить редактирование в редакторе, время от времени, перенося файл в текстовую область «левыми» щелчками мыши.
+
* если вы нажимаете на две кнопки или среднюю, то после переноса файл не удаляется. Может использоваться аналогично для нескольких последовательных переносов (после каждого из которых выполняется «Preview», а текст продолжаете редактироваться в редакторе). Единственная возможная проблема — если вы закончили редактировать файл, закрыли редактор, но «перенесли» его в текстбокс без удаления — то есть вероятность, что ткнув очередной раз в текстбокс, вы перенесете в него более старую версию.  
+
  
 +
If you press right mouse button at the text edition area then context menu will appear. Clicking on «Edit» menu will copy text to file, that unique for any (URL, textarea) pair, and then will call specified text editor. After edition you have to save the file in editor and return to the initial text area.
 +
* if you press left mouse button, the file’s content will be exported to text area, and the file will be deleted. However, if your editor doesn’t close and isn’t configured to close deleted files automatically, then you will be able to continue editing, and from time to time export file’s contents to text area.
 +
* if your press both mouse buttons or middle one, then after export the file will not be deleted. It can be used similarly for sequence of exports (after every export you can make «Preview», and continue to edit the text). The only problem may occur if you finish file’s edition, close editor, but export file in the textbox without deleting it, then probably if you click next time at the textbox you may export older version of the file.
  
  
 
== Download ==
 
== Download ==
* [http://luch-mgsu.msk.ru/misc/textareasputnik/textareasputnik.xpi Download and Install the «TextArea Sputnik»]
+
* [[media:Textareasputnik.xpi|Download and Install the «TextArea Sputnik»]]
  
 
== Compatibility ==
 
== Compatibility ==
Проверено на версиях <tt>1.04</tt>, <tt>1.07</tt>, <tt>1.5.0.1</tt> — проблем не обнаружено.
+
It has been tested with versions <tt>1.04</tt>, <tt>1.07</tt>, <tt>1.5.0.1</tt>, <tt>2.0</tt>, <tt>3.0</tt>- problems haven’t been detected.
  
 
== Links ==
 
== Links ==
Идея такого плагина не нова, давно существовали плагины
+
The idea of such plug-in isn’t new, a long time ago there were
 
* [http://mozex.mozdev.org/ Mozex]
 
* [http://mozex.mozdev.org/ Mozex]
 
* [http://null.se/externaleditor ExternalEditor]
 
* [http://null.se/externaleditor ExternalEditor]
  
К сожалению, у них было плохо с русским (настройка кодировок и разделителей), а
+
Unfortunately, there were problems with Russian (coding settings and separators), and ExternalEditor blocked Firefox by the modal dialog, so that it was unable to edit multiple TextArea, and leads to hangs while attempting to copy in editor from Clipboard (some text copied from browser).
ExternalEditor модально блокировал работу Firefox, что не позволяло не только редактировать несколько TextArea, но приводило к зависаниям, при попытке в редакторе скопировать из Clipboard, чего либо, скопированного туда из броузера.
+
 
 +
Perhaps this plug-ins haven’t such problems now.
  
Возможно сейчас эти плагины лишены упомянутых недостатков.
+
== Contacts ==
 +
Please contact mailto:stas-fomin@yandex.ru, if you have any problems or suggestions.
  
 +
[[Категория:Документирование]]
 +
[[Категория:Программирование]]
 
{{replicate-from-custiswiki-to-lib}}
 
{{replicate-from-custiswiki-to-lib}}

Текущая версия на 16:10, 18 января 2010

This is Mozilla Firefox plug-in that helps to edit «TextArea» in any external text editor and partially solves the problem for lack of «Undo» and «Find/Replace» functions.

This plug-in has to be configured («Tools»/ «Extensions»/ «TextArea Sputnik»/ «Options») by setting the following parameters:

  • path to external text editor (this editor has to be able to get filename from command line);
  • coding of input file (in case your editor doesn’t support UTF-8, you can choose one of more than ten most prevalent codings):
    • UTF-8
    • windows−850
    • windows−1251
    • windows−1252
    • iso-8859-1
    • iso-8859-2
    • iso-8859-5
    • koi8-r
    • euc-jp
    • iso-2022-jp
    • shift_jis
  • file extension, that can be used to assign syntax colors or any other specific settings of text editor;
  • in case your editor can only interpret double-bytes DOS-separators corresponding option has to be set.

It is recommended to use light text editor (in order to open file immediately).

For example, Notepad++, that can be downloaded at:

It is possible to configure some syntax colors and folding rules for «wiki» extension.

If you press right mouse button at the text edition area then context menu will appear. Clicking on «Edit» menu will copy text to file, that unique for any (URL, textarea) pair, and then will call specified text editor. After edition you have to save the file in editor and return to the initial text area.

  • if you press left mouse button, the file’s content will be exported to text area, and the file will be deleted. However, if your editor doesn’t close and isn’t configured to close deleted files automatically, then you will be able to continue editing, and from time to time export file’s contents to text area.
  • if your press both mouse buttons or middle one, then after export the file will not be deleted. It can be used similarly for sequence of exports (after every export you can make «Preview», and continue to edit the text). The only problem may occur if you finish file’s edition, close editor, but export file in the textbox without deleting it, then probably if you click next time at the textbox you may export older version of the file.


Download

Compatibility

It has been tested with versions 1.04, 1.07, 1.5.0.1, 2.0, 3.0- problems haven’t been detected.

Links

The idea of such plug-in isn’t new, a long time ago there were

Unfortunately, there were problems with Russian (coding settings and separators), and ExternalEditor blocked Firefox by the modal dialog, so that it was unable to edit multiple TextArea, and leads to hangs while attempting to copy in editor from Clipboard (some text copied from browser).

Perhaps this plug-ins haven’t such problems now.

Contacts

Please contact mailto:stas-fomin@yandex.ru, if you have any problems or suggestions.


Любые правки этой статьи будут перезаписаны при следующем сеансе репликации. Если у вас есть серьезное замечание по тексту статьи, запишите его в раздел «discussion».

Репликация: База Знаний «Заказных Информ Систем» → «TextArea Sputnik/en»