Shortcut for selecting parent (html) tag?

Shortcut for selecting parent (html) tag?

27
Basic UserBasic User
27

    Jun 05, 2020#1

    Hi,
    in Dreamweaver it's possible to select the parent html tag by shortcut. Is  this possible in UE, too?

    thanks
    webachtl

    6,626551
    Grand MasterGrand Master
    6,626551

      Jun 05, 2020#2

      What do you mean exactly with "select the parent HTML tag"?

      Let's say we have a simple paragraph like the one below with | marking individual caret positions inside body element:

      |<p| st|yle="color:#008|000"|>|This is an example para|graph with <b>bold<b> and |<i|>ita|lic|</i> text.|</p|>|

      What do you expect as selection for the fourteen caret positions?

      Which version of UltraEdit do you use?

      Have you enabled the setting Display XML/HTML tag highlighting at Advanced - Settings or Configuration - Editor - XML / HTML / Markdown?

      Is the command Select to brace with default hotkey Ctrl+B on ribbon tab Coding respectively in contemporary menu Coding respectively in traditional menu Search (with menu item name Select to matching brace) the feature you are looking for?
      Best regards from an UC/UE/UES for Windows user from Austria

      27
      Basic UserBasic User
      27

        Jun 05, 2020#3

        Thanks for helping me

        UE v24.2

        In Dreamweaver you can select the whole parent tag by pressing ctrl-ö.
        Attached some screenshots (maybe in reverse order).

        That would be all (I want)  ; )
        2020-06-05_shot_004.png (34.26KiB)
        2020-06-05_shot_003.png (34.26KiB)
        2020-06-05_shot_002.png (34.41KiB)
        2020-06-05_shot_001.png (34.19KiB)
        +1

        6,626551
        Grand MasterGrand Master
        6,626551

          Jun 06, 2020#4

          Thanks for the screenshots. They were really helpful to understand the wanted feature.

          There is no built-in command in currently latest UltraEdit for Windows v27.00.0.54 for this type of HTML element selecting as far as I know.

          I suggest to read my post Highlight matching HTML tag explaining what to modify in used syntax highlighting wordfile - default: %APPDATA%\IDMComp\UltraEdit\wordfiles\html.uew - to change default behavior of  command Select to brace for HTML. I use that definition for years and so did not recognize yesterday that the default behavior on using Ctrl+B inside an HTML element is different and less useful for you.

          But command Select to brace is still not exactly what you would like to have even with the customization of the brace strings in wordfile for HTML. For example on having selected already a list item (element LI) of a list or a table row (element TR) of a table, a hit of Ctrl+B results in selecting next LI respectively TR element instead of the entire list or table.

          It would be necessary to write an UltraEdit script for the same behavior as in Dreamweaver which is executed by hotkey. That script is definitely not easy to code. It would require real language knowledge, i.e. what can be the parent element of currently selected inline or block element if there is already a selection on execution of the script which takes also current element level into account.

          See also my post Finding matching HTML/XML tag and the posts linked there.
          Best regards from an UC/UE/UES for Windows user from Austria