#294 XML: Wrap selection in a tag

open
XML (6)
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

  • 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.

     
  • Jarek Czekalski

    Jarek Czekalski - 2012-04-27
    • labels: --> XML
    • summary: Wrap selection in a tag --> XML: Wrap selection in a tag
     
  • Jarek Czekalski

    Jarek Czekalski - 2012-04-27
    • 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!!

     
  • Steve Jakob

    Steve Jakob - 2013-07-31

    Have you tried the XInsert plugin? Not sure about arbitrary tags, but it looks like it might not be too difficult to create your own custom tag libraries.

     
  • Alan Ezust

    Alan Ezust - 2013-08-01

    Actually, now that you mention it, this might be a templates or supertemplates or xinsert feature rather than something that needs to be added to XML plugin, but Ia m not familiar enough with those other plugins to say for sure.

    In my earlier comment, when I said +1 to that, I thought this request was for reformatting words (as in word wrap) for the contents between a tag (instead of using the traditional paragraph separation criteria that jedit's built in reformat paragraph uses) but after looking at the images you attached, I realize your request is not about word wrap, but "tag wrapping".

     
  • Alan Ezust

    Alan Ezust - 2013-08-01
    • priority: 7 --> 5
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks