Skip to content

Commit 47931fc

Browse files
author
Yutaka Emura
committed
v25.3
1 parent 4f0b415 commit 47931fc

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

en/dlg/properties/highlight1/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,17 @@ Resets to default settings. The
101101
[**Reset** dialog box](../reset/index) will be displayed
102102
and will allow you to copy from another configuration.
103103

104+
## Tips
105+
106+
When Regular Expression is enabled, you can add these special directives to conditionally apply a highlight based on the formatting at the start of the match. Place the directive at the very beginning of your pattern.
107+
108+
- `(?#_text_c==n)` Apply the highlight only if the current text (foreground) color is n.
109+
- `(?#_text_c!=n)` Apply the highlight only if the current text (foreground) color is not n.
110+
- `(?#_back_c==n)` Apply the highlight only if the current background color is n.
111+
- `(?#_back_c!=n)` Apply the highlight only if the current background color is not n.
112+
- `(?#_font_s==n)` Apply the highlight only if the current font style is n.
113+
- `(?#_font_s!=n)` Apply the highlight only if the current font style is not n.
114+
115+
Here, n is an integer ID defined in plugin.h (for example, 0 = SMART_COLOR_NORMAL, 17 = SMART_COLOR_HILITE_4, etc.).
116+
117+
Example: instead of `%%.*$`, use `(?#_text_c!=17)%%.*$` to highlight lines that start with `%%` only if they don’t already use color 17 (SMART_COLOR_HILITE_4).

en/history/v25_3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ August 20th, 2025
66

77
- Added the **Sort by Similarity** command. {{pro}}
88
- Added new HTML features to the **Markdown** toolbar, which has been redesigned as the **Markdown/HTML** toolbar. The previous **HTMLBar** plugin has been discontinued. {{pro}}
9-
- The latest version lets you use special keywords in regex highlight strings to set additional conditions, like \`(?#_text_c!=17)\`. For more details, visit https://www.emeditor.com/forums/topic/emeditor-syntax-highlighter-overlap-conflict-when-using-regex-quantifiers/. {{profree}}
9+
- The latest version lets you use special keywords in regex highlight strings to set additional conditions, like \`(?#_text_c!=17)\`. For more details, see [Highlight (1) page](../dlg/properties/highlight1/index). {{profree}}
1010
- The **Extract Frequent Strings** command now works on the filtered content when filters are applied. {{pro}}
1111
- Improved cursor placement after sorting. {{pro}}
1212

ja/dlg/properties/highlight1/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,17 @@ CSV形式またはESY形式のファイルに強調文字列をエクスポー
8888

8989
設定を既定にします。
9090

91+
## ヒント
92+
93+
正規表現が有効な場合、一致の開始位置における書式に基づいて強調表示を条件付きで適用するための特殊ディレクティブを追加できます。ディレクティブはパターンの先頭に置いてください。
94+
95+
- `(?#_text_c==n)` 現在のテキスト色が n の場合にのみ強調表示を適用します。
96+
- `(?#_text_c!=n)` 現在のテキスト色が n でない場合にのみ強調表示を適用します。
97+
- `(?#_back_c==n)` 現在の背景色が n の場合にのみ強調表示を適用します。
98+
- `(?#_back_c!=n)` 現在の背景色が n でない場合にのみ強調表示を適用します。
99+
- `(?#_font_s==n)` 現在のフォントスタイルが n の場合にのみ強調表示を適用します。
100+
- `(?#_font_s!=n)` 現在のフォントスタイルが n でない場合にのみ強調表示を適用します。
101+
102+
ここで n は plugin.h で定義されている整数 ID です(例: 0 = SMART_COLOR_NORMAL、17 = SMART_COLOR_HILITE_4 など)。
103+
104+
例: `%%.*$` の代わりに `(?#_text_c!=17)%%.*$` を使用すると、すでに色 17(SMART_COLOR_HILITE_4)が使われていない場合に限り、`%%` で始まる行を強調表示します。

ja/history/v25_3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
- [類似度で並べ替え] コマンドを追加しました。
88
- Markdown ツール バーに HTML の機能を追加し、Markdown/HTML ツール バーとしました。従来の HTMLBar プラグインは廃止となりました。 {{pro}}
9-
- 最新バージョンでは、正規表現のハイライト文字列に特別なキーワードを使用して、`(?#_text_c!=17)` のような追加条件を設定することができます。詳細については、 https://www.emeditor.com/forums/topic/emeditor-syntax-highlighter-overlap-conflict-when-using-regex-quantifiers/ をご覧ください。 {{profree}}
9+
- 最新バージョンでは、正規表現のハイライト文字列に特別なキーワードを使用して、`(?#_text_c!=17)` のような追加条件を設定することができます。詳細については、[\[強調(1)\] ページ](../dlg/properties/highlight1/index)をご覧ください。 {{profree}}
1010
- フィルター設定後に [頻出文字列を抽出] コマンドを実行すると、フィルター設定の状態から文字列を抽出するようになりました。 {{pro}}
1111
- 並べ替えの後のカーソル位置を調節しました。 {{pro}}
1212

0 commit comments

Comments
 (0)