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)
Submitted | taitoh - 2012-04-27 19:01:52 | Assigned | kerik-sf |
---|---|---|---|
Priority | 5 | Labels | XML |
Status | open | Group | None |
Resolution | None |
2012-04-27 19:01:53 taitoh |
Image of Jetbrains IDEA wrapping a selection with an arbitrary tag 01_jetbrains_IDEA_wrap_in_tag.png (97.2Kio) |
---|---|
2012-04-27 19:07:00 taitoh |
Oops...
|
2012-04-27 19:07:40 taitoh |
Image of Espresso with Wrap selected lines in tag. 02_Wrap_selected_lines_in_tag.png (129.4Kio) |
2012-04-27 19:23:39 daleanson |
- **labels**: 871558 --> |
2012-04-27 19:23:39 daleanson |
Looks like a nice feature for the XML plugin. |
2012-04-27 19:37:42 jarekczek |
- **labels**: --> XML |
2012-04-27 19:38:17 jarekczek |
- **assigned_to**: nobody --> kerik-sf |
2012-04-27 20:27:24 taitoh |
Thanks Dale,
|
2013-07-31 19:25:11 ezust |
- **priority**: 5 --> 7 |
2013-07-31 19:25:11 ezust |
+1 to that\!\! |
2013-07-31 20:13:24 sjakob |
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. |
2013-08-01 04:38:19 ezust |
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.
|
2013-08-01 04:38:28 ezust |
- **priority**: 7 --> 5 |
2017-10-31 23:23:39.425000 ngc |
Does this Macro help? (Small bug fixed 2017-11-02)
|
2017-11-02 11:01:58.546000 ngc |
One more iteration without a video this time.
|
2017-11-02 20:16:35.269000 tsourick |
This would be a super cool feature!
|
2017-11-02 21:54:32.802000 ngc |
> - adds unecessary tab before selection
|
2017-11-04 19:47:30.190000 tsourick |
Now I understand your use case.
|
2017-11-06 07:41:46.753000 ngc |
I already checkeked whether the selection is on just one line.
|
2017-11-07 00:32:16.558000 tsourick |
Yes, now it respects nubmer of lines.
|