|  10-26-2020, 09:36 PM | #1 | 
| Hedge Wizard            Posts: 802 Karma: 19999999 Join Date: May 2011 Location: UK/Philippines Device: Kobo Touch, Nook Simple | 
				
				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. | 
|   |   | 
|  10-27-2020, 12:21 AM | #2 | |
| Grand Sorcerer            Posts: 5,763 Karma: 24088559 Join Date: Dec 2010 Device: Kindle PW2 | Quote: 
 | |
|   |   | 
| Advert | |
|  | 
|  10-27-2020, 12:32 AM | #3 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			FWIW - the calibre editor highlights corresponding closing and opening tags - that's one of the reasons I sometimes use it.   BR | 
|   |   | 
|  10-27-2020, 01:27 AM | #4 | 
| Hedge Wizard            Posts: 802 Karma: 19999999 Join Date: May 2011 Location: UK/Philippines Device: Kobo Touch, Nook Simple | 
			
			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. | 
|   |   | 
|  10-27-2020, 09:13 AM | #5 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			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. | 
|   |   | 
| Advert | |
|  | 
|  10-27-2020, 12:11 PM | #6 | 
| Grand Sorcerer            Posts: 5,763 Karma: 24088559 Join Date: Dec 2010 Device: Kindle PW2 | 
			
			BTW, in Scintilla-based editors, the end tag has the same highlight color as the start tag. (Highlighting also works in reverse, i.e., clicking the end tag will highlight the start tag.)
		 | 
|   |   | 
|  10-27-2020, 12:59 PM | #7 | |
| Groupie            Posts: 179 Karma: 91148 Join Date: Jun 2010 Device: Sony 350 | Quote: 
 | |
|   |   | 
|  10-27-2020, 04:31 PM | #8 | |
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | Quote: 
 BR | |
|   |   | 
|  10-27-2020, 05:10 PM | #9 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			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. | 
|   |   | 
|  10-27-2020, 06:32 PM | #10 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			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!  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. Last edited by DiapDealer; 10-27-2020 at 06:37 PM. | 
|   |   | 
|  10-27-2020, 07:08 PM | #11 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			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?
		 | 
|   |   | 
|  10-27-2020, 09:32 PM | #12 | |
| Hedge Wizard            Posts: 802 Karma: 19999999 Join Date: May 2011 Location: UK/Philippines Device: Kobo Touch, Nook Simple | 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. | |
|   |   | 
|  10-30-2020, 05:49 AM | #13 | 
| Chalut o/            Posts: 486 Karma: 678910 Join Date: Dec 2017 Device: Kobo | 
			
			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: 
 Last edited by un_pogaz; 10-30-2020 at 06:41 AM. | 
|   |   | 
|  10-30-2020, 05:21 PM | #14 | ||
| Wizard            Posts: 2,306 Karma: 13057279 Join Date: Jul 2012 Device: Kobo Forma, Nook | 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. Last edited by Tex2002ans; 10-30-2020 at 06:15 PM. | ||
|   |   | 
|  10-30-2020, 10:14 PM | #15 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			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."   | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Quick Question | Moonbeam111 | KOReader | 9 | 08-28-2019 12:16 PM | 
| Quick Question.. | The Branimal | Kobo Reader | 3 | 04-25-2011 08:17 PM | 
| Quick question... | Magic Man | Calibre | 18 | 09-05-2010 03:18 PM | 
| PRS-600 Okay, quick question.... | emonti8384 | Sony Reader | 13 | 11-12-2009 06:18 PM | 
| Quick Question. | Baz047 | Sony Reader | 10 | 12-09-2008 12:25 PM |