Loading ...
Sorry, an error occurred while loading the content.

8356Re: Select Matching TAGS - clip

Expand Messages
  • Wayne VanWeerthuizen
    Apr 3, 2002
      John wrote:

      >Your clip seems to work very well Hugo (after removing the line
      >breaks created by yahoo), but I have noticed one little quirk it
      >produces.. On certain hyperlinks, I get a NoteTab syntax error on
      >this line of the clip:
      >^!Set %TAG%=^$GetHtmlTagName("^$GetHtmlTag$")$

      Should rather be

      ^!Set %TAG%="^$GetHtmlTagName("^$GetHtmlTag$";lowercase)$"

      >But there is no syntax error there I can see.. I traced it to what
      >appears to be a quirk in the NoteTab function of:


      Format parameter is not optional if the TagStr might
      contain semicolons. As this is not always predictable,
      I recommend that the format parameter always be specified.

      Hugo wrote:
      >> ;---------------------------------------------------
      >> : SELECT MATCHING TAGS (Hugo Paulissen, March 2002)
      >> ;---------------------------------------------------
      >> ;
      >> ; Clip searches for previous occurence of < first,
      >> ; which allows for repetive "searches". You can
      >> ; easily remove comments. | Use at your own risk ;-)
      >> ;---------------------------------------------------
      >> ^!SetScreenUpdate OFF
      >> ;^!SetDebug ON
      >> ^!Jump SELECT_START
      >> :FINDTAG
      >> ^!find "<" BS
      >> :SETTAG
      >> ^!Set %TAG%=^$GetHtmlTagName("^$GetHtmlTag$")$
      >> ^!Set %STARTPOS%=^$GetRow$:^$GetCol$
      >> ;---------------------------------------------------
      >> ; Following lines check for "<!" and "</" tags
      >> ;---------------------------------------------------


      Nice clip, Hugo.