![]() |
Quick Question
Hi
While the cursor is on an opening tag s there a way of highlighting/showing its closing tag? I checked the Manual and searched the forum but did not spot anything. |
Quote:
|
FWIW - the calibre editor highlights corresponding closing and opening tags - that's one of the reasons I sometimes use it.
BR |
Thank you for the info Doitsu and BetterRed.
I thought that might be the case. I already use the Calibre Editor and have Notepad++ (but do not open it from Sigil) installed so I can follow up on your advice. |
You do not want to move the cursor to the end tag, correct? You simply want to highlight the corresponding end tag with some colour other than the current tag syntax highlighting right?
If so I can look into adding that for a future release, although when it gets hard to see tags pairings I simply run mend and prettify so that indentation will show what goes with what. |
1 Attachment(s)
Quote:
|
Quote:
|
Quote:
BR |
If you want block collapse and expand, use the Inspector as it is already present and built-in, or as Doitsu said, use open-with and an editor of your choice.
I personally like to edit text not dom trees stored in Widget tree views. |
I can do without any of it, myself. ;)
I personally can't find a use case for being able to quickly see the closing tag of the opening tag I clicked on. And block collapse drives me bonkers. I keep thinking I deleted something whenever I invariably collapse a section accidentally. It's like the light in the frig: I have to keep checking to reassure myself that the hidden code is actually still there! :D But highlighting the closing tag seems innocent enough. People other than myself are clearly comforted by it somehow--else it wouldn't be so prevalent in editors. There'll be no opposition from me. Personally, I feel that if you can't easily see the closing tag without special highlighting, then the markup you're editing is a mess. In those cases, I use a parsing tool to clean it up so I don't have to worry about manually deleting the wrong tag in a ridiculously convoluted span/div rat's nest. |
In many ways I agree with DiapDealer. Wouldn't it be better to highlight a entire tag in one right click (from start to end inclusive) for later processing with clips? Wouldn't that be more useful than just highlighting the end tag?
|
Quote:
I was looking for help with what I thought could be a problem. I have investigated further and found I was wrong (Surprise, surprise :-D). What I thought could be a problem , in fact is not. I am now wondering "how the bleep did that fix that problem? When I processed that book. |
In the case of ePub editing, the block collapse system is useless (really handy to browse a big XML with a complex hierarchy system)
Nevertheless, highlighting the open/close tag of an element would be a nice addition. Advanced hierarchies are rare, but a little help is welcome. Case study, which I really got: Spoiler:
Originally, I had to merge several HTML pages because each tag <h1> had caused a separation into individual pages. Spoiler:
Well, a bit of REGEX, that's what it does. But it would have helped me a lot. EDIT: Another practical case is to find the end of an inline element in a large block of text : Spoiler:
|
Quote:
Quote:
<a> links can be extremely long and turn into visual spaghetti: Code:
<a href="https://www.pbs.org/newshour/economy/column-minimum-wage-lowers-employment-teens-low-skill-workers"><i>PBS</i></a>Code:
<a href="https://www.pbs.org/newshour/economy/column-minimum-wage-lowers-employment-teens-low-skill-workers">https://www.pbs.org/newshour/economy/column-minimum-wage-lowers-employment-teens-low-skill-workers</a>Also, tables, tables, tables. You mend/prettify, and even though the indentation levels help, those things can get hideously large. |
Hey, I'm not opposed. I just don't get it. Still. ;)
Those a tag lines you posted look imminently readable to me with no highlighting. How exactly does highlighting the closing tag help though? No one has still given me a reason that makes sense to me. What can you do with the closing tag highlighted that you couldn't do with without it highlighted? Inquiring minds want to do know. I'm assuming it's something more than, "Hey look! There's the closing tag right there. Look at that puppy in all its highlighted glory." :D |
| All times are GMT -4. The time now is 10:33 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.