Thread: Quick Question
View Single Post
Old 12-07-2020, 01:51 PM   #40
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,746
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
Okay we have now implemented a version of this in Sigil master. It will highlight both the open and proper closing tag if your cursor is anywhere inside the opening or closing tag.
I like the default behavior, because it exactly matches the behavior of Scintilla-based editors such as Notepad++.
I also have no problems with the default highlight color.



Quote:
Originally Posted by KevinH View Post
Instead of doing the highlighting anytime the cursor is anyplace in the tag, I would much prefer limiting this extra highlighting to when the cursor is directly on a '<' or '>'.
I honestly don't see any advantage in implementing this approach and would rather you keep the current implementation.

BTW, I have another idea: since the tag highlighting code must keep track of opening and closing tags, how about also adding a keyboard shortcut that'll delete both opening and closing tags, but keeps the text enclosed by the tags?
This would make it easy to get rid of superfluous <span> or <div> tags.
Doitsu is offline   Reply With Quote