ActiveCompare

ActiveCompare by Takahiro Kawakami, Version 1.00, ActiveCompare.jsee (4 KB) - ActiveCompare   (編集中のファイルを保存済みのファイルと比較する)

 

説明:You can compare the file you are editing with the last state it was saved in before editing.

(編集中のファイルを編集前の最後に保存された状態と比較することができます。)

A macro to round numbers to 2 decimal places in CSV

A macro to round numbers to 2 decimal places in CSV , RoundNum.zip (514 B) - A macro to round numbers to 2 decimal places at the current column in CSV file.

CSV ファイルの現在の列の数値を小数点以下2桁に四捨五入するマクロ

Format JSON macro

Format JSON macro , TidyJSON.zip (282 B) - A macro to format a JSON file.

Popup Macros

Popup Macros , Version 1.0, PopupMacros.jsee (4 KB) - This macro displays a popup menu enumerating all macro files including sub folders within the specified root folder. This replaces Aye Wong's MacroPopupMenu2 plug-in which does not work anymore in newer versions of EmEditor.

Running this macro requires EmEditor v17.0.0 or later.

このマクロは、ポップアップ メニューを表示して、指定したルート フォルダ内のサブフォルダを含むすべてのマクロ ファイルを列挙します。これは新しいバージョンの EmEditor では使用できなくなった Aye Wong さんの MacroPopupMenu2 プラグインの代わりとしてお使いください。

このマクロを実行するには、EmEditor v17.0.0 以上が必要です。

DeleteEmptyLines

DeleteEmptyLines by chengzi (Tiancheng Yu), Version 1.0, DelEmptyLines_2.jsee (1 KB) - This macro will delete all empty lines in your current file in a lightning speed.

Note: This macro make use of bookmarks and all your current bookmarks of the file will be cleared.

Yet another “smart tab” or “smart spaces” macro

Yet another "smart tab" or "smart spaces" macro , Smart_Tab_Forward_and_Backward_Macros_2.zip (6 KB) - Written on 2015-12-14 16:33

Having recently migrated from PSPad (for various reasons) my only and dearly
missed functionality are "smart tabs" or "smart spaces", i.e.:

“TAB press will cause the cursor to follow words from previous line(s).”
(as in PSPad's description)

***Example 1***
↑ indicates the cursor location

line1 does xyz1; // comment 1
line2 does xyz2; // comment 2
line three; // comment 3
↑

executing "smart_tab_forward.jsee"

line1 does xyz1; // comment 1
line2 does xyz2; // comment 2
line three; // comment 3


***Example 2***
↑ indicates the cursor location

line1 does xyz1; // comment 1
line2 does xyz2; // comment 2
line three; // comment 3
↑

executing "smart_tab_backward.jsee"

line1 does xyz1; // comment 1
line2 does xyz2; // comment 2
line three; // comment 3



Basically the tab is adapted according to the first previous line which delivers
a suitable tab anchor point (default is to consider the preceeding 20 lines).
It also works with multi-line selections.

Perhaps this is of use for someone.

Best wishes,

Patrick

PS Required files:

● smart_tab_forward.jsee
● smart_tab_backward.jsee
● calc_smart_tab_forward.jsee // contains a subfunction for smart_tab_forward.jsee
● calc_smart_tab_backward.jsee // contains a subfunction for smart_tab_backward.jsee

“Smart tabs” or “Smart spaces” as in PSPad

"Smart tabs" or "Smart spaces" as in PSPad , Smart_Tab_Forward_and_Backward_Macros.zip (6 KB) - Written on 2015-12-14 16:16

Having recently migrated from PSPad (for various reasons) my only and dearly
missed functionality are "smart tabs" or "smart spaces", i.e.:

“TAB press will cause the cursor to follow words from previous line(s).”
(as in PSPad's description)

***Example***
↑ indicates the cursor location
> indicates a line in a text file

> line1 does xyz1; // comment 1
> line2 does xyz2; // comment 2
> line three // comment 3
↑

executing "smart_tab_forward.jsee"

> line1 does xyz1; // comment 1
> line2 does xyz2; // comment 2
> line three // comment 3

executing "smart_tab_backward.jsee"

> line1 does xyz1; // comment 1
> line2 does xyz2; // comment 2
> line t// comment 3



Basically the tab is adapted according to the first previous line which delivers
a suitable tab anchor point (default is to consider the preceeding 20 lines).
It also works with multi-line selections.

Perhaps this is of use for someone.

Best wishes,

Patrick

PS Required files:

● smart_tab_forward.jsee
● smart_tab_backward.jsee
● calc_smart_tab_forward.jsee // contains a subfunction for smart_tab_forward.jsee
● calc_smart_tab_backward.jsee // contains a subfunction for smart_tab_forward.jsee

Replace multiple blank lines with one blank line

Replace multiple blank lines with one blank line , Version 1.0, delSurplusLines.jsee (2 KB) - Replaces multiple blank lines with one blank line.

Trim spaces

Trim spaces , Version 1.0, trimSpaces.jsee (232 B) - Trim leading and trailing spaces.

Delete blank lines

Delete blank lines , Version 1.0, delBlankLines.jsee (234 B) - This macro deletes blank lines.