Page 1 of 1

Finding Code Blocks

Posted: Wed Jan 02, 2013 11:45 pm
by LargeAllen
I'm most interested in HTML now, but a long time ago in a much earlier version of TP, I did TCL/TK coding and there was an Add-On that assisted the user in finding the beginning, or ending, of procedures. You'd place the cursor on one end of the proc and the utility would either highlight the entire proc, or highlight just the other end of the proc.

I'd assume there would be something like this for HTML, but I don't know what to call it and can't find anything in the Add-Ons list that says it'll do this. Or at least in language I understand.

A great debug tool, but I apologize that I don't know what to call this type of add on function. Can anyone point me in the right direction.

Posted: Thu Jan 03, 2013 12:43 pm
by woho
probably you used Ctrl-M for finding the corresponding brace
Ctrl-Shift-M => highlight everything between 2 braces

textpad does not recognize syntax
thats done by e.g. ctags, maybe that would be of use for you
=> look for ctags in
http://www.textpad.com/add-ons/index.html
and in addition http://ctags.sourceforge.net/

woho

Finding Code Blocks

Posted: Fri Jan 04, 2013 1:24 am
by LargeAllen
Ctl-Shift-M I didn't know about, thank you. BUT the Ctl-M command does NOT do exactly what I'd like, at least in HTML. What I'd like to see highlighted is between the HTML tag and it's end corresponding end-tag. An example might be <table other-stuff-maybe> and it's end-tag that is </table>.

Finding the matching brackets isn't really a problem for me. As one posted elsewhere about bracketing code in a programming language that uses the words begin-end for a lot of the bracketing.