フルウィンドウ編集マクロ

フルウィンドウ編集マクロ , Fullwindow.jsee (780 B) - メニューバー、ツールバー、ステータスバー、カスタムバーのすべてを隠して、ウィンドウ全体で編集するマクロです。もう一度実行すると元に戻ります。

設定変更マクロ

設定変更マクロ , Property.jsee (25 KB) - 各種設定をポップアップメニューから手軽に変更します。

V7から追加された設定APIを最大限に活用しています。項目が多すぎるという方はマクロを改造して必要な項目だけに絞り込んでも良いかもしれません。

Macro to add file information to the header

Macro to add file information to the header by planetcall, PutHeader.jsee (6 KB) - This macro add the file information to the header.

Convert non-ASCII characters to hexdecimal entities

Convert non-ASCII characters to hexdecimal entities , Version 6.0+, unicode2hex.jsee (496 B) - Macro converts selected non-ASCII characters to XML hexadecimal character references.

Convert non-ASCII characters to decimal entities

Convert non-ASCII characters to decimal entities , Version 6.0+, unicode2decimal.jsee (280 B) - Macro converts selected non-ASCII characters to XML decimal character references.

Convert hexadecimal entities to respective Unicode characters

Convert hexadecimal entities to respective Unicode characters , Version 6.0+, hex2unicode.jsee (580 B) - Macro that converts selected XML hexadecimal character references to respective Unicode characters

Convert decimal entities to respective Unicode characters

Convert decimal entities to respective Unicode characters , Version 6.0+, decimal2unicode.jsee (248 B) - Macro that converts selected XML decimal character references to respective Unicode characters

Macro that highlights occurrences of a string in the current file

Macro that highlights occurrences of a string in the current file by roku, Highlight.jsee (1 KB) - Highlights occurrences of the selected string, in the current file.

Macro to stupefy quotes

Macro to stupefy quotes by Emurasoft, StupefyQuotes.jsee (246 B) - This macro converts educated quotes to stupefied quotes. For example,‘abc’will be converted to 'abc'.
See forum topic: http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=19&forum=4&post_id=49

I took this macro and modified it to replace *all* smart quotes, both single and double with their ' and " counterparts. It previously only worked on paired single quotes, which rarely occur in English. Macro follows:

document.selection.Replace("‘","\x27",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("’","\x27",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("“","\x22",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("”","\x22",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);

XML Formatter macro

XML Formatter macro , XMLFormatter.jsee (23 KB) - This macro is designed to help people who work with and around XML, so that they may format there xml documents, to make it easier to read and analyse.

After working with a lot of unformatted xml, I find this a very useful tool when trying to visualise the structure.

Installing:
- Make sure that the macros toolbar is enabled.
- Right click on the toolbar to “Customize Macros”
- Find and add the macro file to the list of available macros.

How to use:
- Highlight the XML that you wish formatted within your document, then click the XMLFormatter Macro button displayed in the Macros toolbar.
- You will be asked if you wish to use tabs or spaces to indent.
- You will then be prompted to specify the spacing/tabs used to indent each child node tag.
- Once you have selected the required indentation the highlighted text will be formatted and rewritten to the document selection.