Keyboard shortcut to select / tab through HTML attributes?

53 views
Skip to first unread message

Martin Post

unread,
Mar 8, 2025, 3:18:37 AM3/8/25
to BBEdit Talk
I have been using BBEdit for decades, but there is one thing I have never been able to figure out: Is there a keyboard shortcut to select the next attribute of a HTML parameter? I.e., something to select “foo” and then “bar” (without the quotation marks) in <span class="foo" title="bar">? This would make editing complex HTML so much easier.

(I can grep "[^"]+", but this will select the quotation marks as well.)

Thank you.
Message has been deleted

jj

unread,
Mar 8, 2025, 4:24:18 AM3/8/25
to BBEdit Talk
Hi Martin,

This regex will select the content of a double quote string after a '=' or a '=' and a space:

((?<==")|(?<==\s"))[^"]*?(?=")

BTW, if you right click on a tag you can select the "Edit Markup…" pop-up menu item and edit your tag in a form.

HTH

Jean Jourdain

Reply all
Reply to author
Forward
0 new messages