Highlight (1) page¶
The Highlight (1) page allows you to set properties related to highlight
(1). If this is checked, EmEditor will highlight specified keywords. Specifies the type of keywords to be highlighted. Select one of the following options. Only user-defined strings Only highlights the strings specified in the User-Defined Strings list box. Only default keywords only highlights default configuration keywords. Both user-defined strings and default keywords Highlights both user-defined strings and default configuration keywords. List of highlighted strings. Clicking the checkbox will change the color.
These numbers correspond to the highlight colors specified on the
Display page. Highlights the selected string only if the whole word is the string. Highlights the selected word and the right of the word on the line only up to the word wrapped position. Highlights the selected word and everything to the right of the word on the line up to the window border (if no wrap or wrap by window is selected) or specified width or page width. Highlights the selected word only if the case matches. Highlights the string only if the string is inside a tag. Highlights the selected string using a regular expression. Specifies the color to highlight the selected string. The beginning character of the tag. You can set each string to be highlighted only if it exists inside the tag. The end character of the tag. You can set each string to be highlighted only if it exists inside the tag. 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. Here, n is an integer ID defined in plugin.h (for example, 0 = SMART_COLOR_NORMAL, 17 = SMART_COLOR_HILITE_4, etc.). Example: instead of Enable keyword highlight checkbox¶
Enable keyword highlight drop-down list box¶
User-defined strings list box¶
Whole word only checkbox¶
Highlight right side checkbox¶
Highlight right all checkbox¶
Match case checkbox¶
Inside tag only checkbox¶
Regular expression checkbox¶
Color drop-down list box¶
Begin tag text box¶
End tag text box¶
Tips¶
(?#_text_c==n) Apply the highlight only if the current text (foreground) color is n.(?#_text_c!=n) Apply the highlight only if the current text (foreground) color is not n.(?#_back_c==n) Apply the highlight only if the current background color is n.(?#_back_c!=n) Apply the highlight only if the current background color is not n.(?#_font_s==n) Apply the highlight only if the current font style is n.(?#_font_s!=n) Apply the highlight only if the current font style is not n.%%.*$, use (?#_text_c!=17)%%.*$ to highlight lines that start with %% only if they don’t already use color 17 (SMART_COLOR_HILITE_4).