On 27.11.2007, at 18:52, Thomas Aylott - subtleGradient wrote:
On Nov 27, 2007, at 8:45 AM, Hans-Jörg Bibiko wrote:
BUG:
(| = cursor)
<ul> <li><a|>Text</a></li> </ul>
Is fixed. But the behaviour depends on whether you are inside of a start tag or inside of a end tag, because the parser looks leftwards. Meaning
<li><a|>Text</a></li>
selects
" <li><a|>Text</a></li>"
and
<li><a>Text</|a></li>
selects
"<a>Text</a>"
Is this OK?
ANOTHER BUG:
<ul> <li><a>Te|xt</a></li> </ul>
First, properly selects:
"<a>Text</a>"
Then activating the macro again causes the selection to stay the same, but the selection hilite disappears. No matter how many times you activate it at this point nothing changes.
Very odd.
This is really strange but I found the problem. My first command inside of that macro is to destroy a possible selection. I use this command:
[[ -n "$TM_SELECTED_TEXT" ]] && open "txmt://open/?line= $TM_INPUT_START_LINE&column=$TM_INPUT_START_COLUMN"
OK that works but not always ?? If there is at least one \t in front of the selection this command set the caret to an other position! Is this command wrong? I also used TM_INPUT_START_LINE_INDEX but no success. Anyway it turns out that the macro also works if I leave the selection as it is ;)
On 28 Nov 2007, at 01:39, Chris Adams wrote:
On Nov 27, 2007, at 5:50 AM, Andy Armstrong wrote:
I'm pretty sure HTML::Parser is non-core - and because it's an XS module you'll need a C compiler installed too.
It appears to be included in the default install on 10.5 and 10.4.
Yes, to install that module one has to install the Developer Tool in beforehand. Well, I would be glad if Mac Tiger/Leopard has that module as default but I looked for an official site with infos about Perl's core modules on Mac but I didn't find one.
--Hans