Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #22850
    LTT
    Participant

    URLs:
    Hovered = None (or Decode and Show as Tooltip)
    M-Clicked = None (or None + Select)

    Percent-encoding:
    Hovered = Decode and Show as Tooltip
    M-Clicked = None + Select

    Sample URL:
    http://www.x.com/%20

    Issues:
    ** The Percent-encoding in the URL never shows the tooltip.
    ** Unable to select the Percent-encoding in the URL with M-clicking.

    So is it possible to make the priority adjustable (by reordering the Active String list)?

    ====================
    Another suggestion:
    I hope customized formats (e.g. regular expressions) can be added by the user.
    For example,

    More color formats used in different files:
    “255,0,128”
    “255 0 128”
    “ff0080”
    $00ff0080

    And I want to add some more URL prefixes.
    particularly, I want to highlight the CHM URLs in my files, e.g.:
    its:..\x.chm::/path/page.htm
    mk:@MSITStore:..\x.chm::/path/page.htm
    CHM URLs can be opened directly with hh.exe or IE-based browsers.
    I use a macro to determine what app should be run to open the URL.
    With Active String feature, the URL would be clickable. And the macro could be very simple (no need to recognize the string).

    #23148
    LTT
    Participant

    URLs:
    Hovered = None (or Decode and Show as Tooltip)
    M-Clicked = None (or None + Select)

    Percent-encoding:
    Hovered = Decode and Show as Tooltip
    M-Clicked = None + Select

    Sample URL:
    http://www.x.com/%20

    Issues:
    ** The Percent-encoding in the URL never shows the tooltip.
    ** Unable to select the Percent-encoding in the URL with M-clicking.

    So is it possible to make the priority adjustable (by reordering the Active String list)?

    Is it possible to make the Active-String recognition non-greedy?

    #23149
    LTT
    Participant

    More issues:

    Sample text: “www.test.me”

    Settings:
    Strings in “” are highlighted.

    Active String:
    Strings in “”: M-clicked = Select.

    ** Unable to select the URL in “” with M-click.

    Now go on with further settings:
    Style for strings in “”: Dotted Line.
    Style for URLs: Dotted Line (or Underline).

    Active String:
    URLs: M-clicked = Select.

    Now M-click the URL in “”.
    ** The double quotation marks are included in the selection.

    #23156
    Yutaka Emura
    Keymaster

    Currently, EmEditor active strings are related to highlighting, and those issues happen as you experienced. In order to resolve this issue, lots of code changes will be necessary and it might take some time. I will consider that in future versions.
    Thanks,

    #26544
    LTT
    Participant

    Also hope the tooltip can be shown even when the hovered Active String is in a selection.

    > ** The Percent-encoding in the URL never shows the tooltip.
    ▲ I noticed this issue is fixed.
    Hope there will be more optimization when opportunities mature.

    New found issue:
    URLs: Hovered = a macro that will show a tooltip (using ShowTip method).
    Percent-encoding: Hovered = Decode and Show as Tooltip.
    ** When a Percent-encoding string in a URL is hovered, the tooltip will flicker.

    #26626
    LTT
    Participant

    Another example:

    —————
    Display settings:

    URLs:
    Style = Underline

    String enclosed by double quotation marks “…”:
    Style = Dotted Line

    —————
    Active String settings:
    URLs:
    Hovered event = run this macro:
    [code]ShowTip(‘Open‘, eeShowTipActiveString);[/code]

    —————
    Sample text:
    “www.url”

    —————
    ** When the URL is hovered, the tooltip is not correct.
    (The tooltip text should be “Open” and clickable.)

    #26628
    LTT
    Participant

    The macro:
    pastebin.com/P6r36UX4

    #26627
    LTT
    Participant
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.