View Single Post
Old 12-22-2013, 12:46 PM   #1
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Syntax Highlighting extra feature

I just read in one of the other threads that the Editor's syntax highlighting was written from scratch. As such I wonder whether it might be possible to introduce a feature which I've found endlessly useful in Notepad++ over the years.

If one left-clicks anywhere inside a tag then that tag and its corresponding end-tag are highlighted. e.g. in the following html:

<p class="tx"><span class="bold"><span class="it"><span class="dropcap">T</span><span class = "sc">his</span> is a paragraph</span> with lots of spans.</span></p>

Clicking anywhere in the <span class = "it"...> tag would show like this (except NotePad++ colours background rather than foreground text):

<p class="tx"><span class="bold"><span class="it" id="urhere"><span class="dropcap">T</span><span class = "sc">his</span> is a paragraph</span> with lots of spans.</span></p>

The lack of this feature in Sigil often made sorting out spaghetti nested html easier in the old ebook Tweak for me because I could use my normal editor. Retail Publishers seem to love endless nested divs which don't actually do anything.
jackie_w is offline   Reply With Quote