Lugaru's Epsilon
Programmer's
Editor 14.04

Context:
Epsilon User's Manual and Reference
   . . .
   Command Reference
      abort
      about-epsilon
      align-by-tab
      . . .
      zoom-window
   Variable Reference
      . . .
      reindent-perl-comments
      reindent-php-comments
      replace-by-case
      replace-in-region
      replace-num-changed
      . . .
   Changing Epsilon
   . . .

Previous   Up    Next
reindent-php-comments  Variable Reference   replace-in-region


Epsilon User's Manual and Reference > Variable Reference >

replace-by-case: preference variable

Default value: 1

This variable controls how commands like query-replace and regex-replace modify the case of the replacement text to match the case of individual matches.

If 0, the replacement text is inserted as-is.

If 1, the search is case-insensitive, and neither the search nor the replace text contain capital letters, Epsilon makes the replacement text upper case or capitalized whenever a match is entirely upper case or capitalized, respectively.

If 2, the Ctrl-c to toggle case-folding in searches includes a third option, CaseRepl. When this option is toggled on and searching is case-insensitive, Epsilon modifies the case of the replacement text based on the case of the match, according to these rules:

If the match contains both uppercase and lowercase characters, the first character of the replacement text will be given the case of the first character of the match. Otherwise, if the match contains only lowercase or only uppercase characters, the replacement text will be made all lowercase or uppercase, respectively. Otherwise, the case of the replacement text will not be altered.

More info:

Replacing



Previous   Up    Next
reindent-php-comments  Variable Reference   replace-in-region


Lugaru Epsilon Programmer's Editor 14.04 manual. Copyright (C) 1984, 2021 by Lugaru Software Ltd. All rights reserved.