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

Re: An "uncomment" command

Expand Messages
  • mfrascinella@comcast.net
    NoteTabbers, Yes, regular expressions with the Find or Replace commands can be fun but quite dense. I added that clip to my main library but with a prompt to
    Message 1 of 1 , Feb 17, 2004
    • 0 Attachment
      NoteTabbers,

      Yes, regular expressions with the Find or Replace commands can be fun but quite dense. I added that clip to my main library but with a prompt to make it safer.

      ^!Continue Is the cursor inside the comment tag?
      ^!Replace "<!--" >> "^%empty%" TIBS
      ^!Replace "-->" >> "^%empty%" TIS

      Yours,

      Michael F
      -���-
      ~

      *************************
      Never Forget
      September 11, 2001
      *************************
      >
      > There are 3 messages in this issue.
      >
      > Topics in this digest:
      >
      > 1. Re: An "uncomment" command?
      > From: John Mitchell <notetab@...>
      > 2. Re: An "uncomment" command?
      > From: John Mitchell <notetab@...>
      > 3. Re: An "uncomment" command?
      > From: "John Zeman" <john041650@...>
      >
      >
      > ________________________________________________________________________
      > ________________________________________________________________________
      >
      > Message: 1
      > Date: Tue, 17 Feb 2004 08:50:40 +1100
      > From: John Mitchell <notetab@...>

      > Subject: Re: An "uncomment" command?
      >
      > Many thanks to both Alan Cumming and John Zeman for their neat
      > solutions.
      >
      > John, would you mind explaining what TIBS and TIS are/do? A search
      > through the Clip Programming Help did not find a match for either.
      >
      > Regards, John M
      >
      >
      > ________________________________________________________________________
      > ________________________________________________________________________
      >
      > Message: 2
      > Date: Tue, 17 Feb 2004 09:10:04 +1100
      > From: John Mitchell <notetab@...>
      > Subject: Re: An "uncomment" command?
      >
      > Now that I have looked up the full syntax of ^!Replace (which I should
      > have done in the first place) the answer to my question regarding the
      > meaning of TIBS and TIS is apparent...
      >
      > ^!Replace "<!--" >> "^%empty%" TIBS
      > ^!Replace "-->" >> "^%empty%" TIS
      >
      > Each letter in TIBS and TIS is an option. Next time I'll be a bit more
      > diligent with my research.
      >
      > Thanks again and regards,
      >
      > John M
      >
      >
      >
      >

      > ________________________________________________________________________
      > ________________________________________________________________________
      >
      > Message: 3
      > Date: Tue, 17 Feb 2004 00:23:11 -0000
      > From: "John Zeman" <john041650@...>
      > Subject: Re: An "uncomment" command?
      >
      > --- In ntb-clips@yahoogroups.com, John Mitchell <notetab@l...> wrote:
      > > Now that I have looked up the full syntax of ^!Replace (which I
      > should
      > > have done in the first place) the answer to my question regarding
      > the
      > > meaning of TIBS and TIS is apparent...
      > >
      > > ^!Replace "<!--" >> "^%empty%" TIBS
      > > ^!Replace "-->" >> "^%empty%" TIS
      > >
      > > Each letter in TIBS and TIS is an option. Next time I'll be a bit
      > more
      > > diligent with my research.
      > >
      > > Thanks again and regards,
      > >
      > > John M
      >
      >
      > Glad you found your answers John. Also since you seem to be fairly
      > new to this you might make a note that ^%empty% is one of NoteTab's
      > predefined variables (search clip script help for "Variables") and

      > means "nothing".
      >
      > Another john (no jokes please LOL)
      >
      >
      >
      >
      >
      >
      > ________________________________________________________________________
      > ________________________________________________________________________
      >
      >
      >
      > ------------------------------------------------------------------------
      > Yahoo! Groups Links
      >
      >
      >
      >
      > ------------------------------------------------------------------------
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.