#294 XML: Wrap selection in a tag

open
Eric Le Lay
XML (5)
5
2013-08-01
2012-04-27
Tai
No

Hi there,

I primarily work with HTML and XML. I find jEdit to be an amazing tool, in particular how sidekick parses and displays the markup language.

One feature that I would dearly like, is a way for me to:

i) Wrap selected lines with tags
ii) Wrap a selection with tag

1) Wrap selection with an arbitrary tag

Often time, I'm required to take multiple lines and wrap them with an arbitrary tag. Right now, I make use of beanshell macros to do this, but they are hardcoded to specific tags (like <li> or <p>). I would like to do this without having to type into a dialog box.

See image 01_jetbrains_IDEA_wrap_in_tag.png

2)

Discussion

1 2 > >> (Page 1 of 2)
  • Tai
    Tai
    2012-04-27

    Image of Jetbrains IDEA wrapping a selection with an arbitrary tag

     
  • Tai
    Tai
    2012-04-27

    Oops...

    2) I would like to have the option to do this across multiple lines. This is great for making individual paragraphs or list elements. I have macros that do it, but some editors on OS X (like Textmate, espresso) do this out of the box.

    See image 02_Wrap_selected_lines_in_tag.png

    Thanks,

    Tai

     
  • Tai
    Tai
    2012-04-27

    Image of Espresso with Wrap selected lines in tag.

     
  • Dale Anson
    Dale Anson
    2012-04-27

    • labels: 871558 -->
     
  • Dale Anson
    Dale Anson
    2012-04-27

    Looks like a nice feature for the XML plugin.

     
    • labels: --> XML
    • summary: Wrap selection in a tag --> XML: Wrap selection in a tag
     
    • assigned_to: nobody --> kerik-sf
     
  • Tai
    Tai
    2012-04-27

    Thanks Dale,

    I'd love to see it implemented.

    -T

     
  • Alan Ezust
    Alan Ezust
    2013-07-31

    • priority: 5 --> 7
     
  • Alan Ezust
    Alan Ezust
    2013-07-31

    +1 to that!!

     
1 2 > >> (Page 1 of 2)