Finding Code Blocks

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
LargeAllen
Posts: 5
Joined: Thu Mar 29, 2007 10:27 pm

Finding Code Blocks

Post 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.
User avatar
woho
Posts: 100
Joined: Tue Sep 02, 2003 9:12 am
Location: Steyr/Austria
Contact:

Post 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
LargeAllen
Posts: 5
Joined: Thu Mar 29, 2007 10:27 pm

Finding Code Blocks

Post 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.
Post Reply