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

Formatting question

Expand Messages
  • Lee Underwood
    I have been using the following clip: -- clip start ---- ^!replace < ; RHAS ^!IfError Syntax ; Next line was used for testing purposes after
    Message 1 of 3 , Dec 7, 2006
    • 0 Attachment
      I have been using the following clip:

      -- clip start ----

      ^!replace \< >> \<\; RHAS
      ^!IfError Syntax
      ; Next line was used for testing purposes after commenting out the line above.
      ;^!Goto ^?{Continue?==_Yes^=Syntax|No^=END}

      :Syntax
      ^!InsertHtml <div style="width: 700px;">^%NL%<textarea name="code"
      class="php" cols="60" rows="10">^&</textarea>^%NL%</div>

      -- clip end ----

      For some reason, today it changed the way that it works. The text is
      highlighted by me before I do this. The script then replaces the "<"
      bracket with the ASCII code. (I know this because I have used the
      "Goto line" and also did a CTRL-Z) Then, after the bracket is
      replaced, the scripts returns it to the "<" bracket and adds the HTML code.

      Any idea why is happening (that it is replacing the ASCII code with
      the "<" after changing it)?

      Lee
    • Sheri
      ... line above. ... You need to change the ^& in your inserthtml text to ^$GetSelection$ ^& represents whatever was highlighted when the clip started (not the
      Message 2 of 3 , Dec 7, 2006
      • 0 Attachment
        --- In ntb-clips@yahoogroups.com, Lee Underwood <leeu@...> wrote:
        >
        > I have been using the following clip:
        >
        > -- clip start ----
        >
        > ^!replace \< >> \<\; RHAS
        > ^!IfError Syntax
        > ; Next line was used for testing purposes after commenting out the
        line above.
        > ;^!Goto ^?{Continue?==_Yes^=Syntax|No^=END}
        >
        > :Syntax
        > ^!InsertHtml <div style="width: 700px;">^%NL%<textarea name="code"
        > class="php" cols="60" rows="10">^&</textarea>^%NL%</div>
        >
        > -- clip end ----
        >

        You need to change the ^& in your inserthtml text to ^$GetSelection$

        ^& represents whatever was highlighted when the clip started (not the
        text selected at the point where the inserthtml command within the
        clip starts).

        You should also put quotes around the search text and replace text in
        your replace command.

        Regards,
        Sheri
      • Lee Underwood
        Thanks Sheri! That worked. I never figured that it would remember the original text and change it back. Lee On 12/7/2006 11:55 PM, Sheri wrote: ...
        Message 3 of 3 , Dec 8, 2006
        • 0 Attachment
          Thanks Sheri! That worked. I never figured that it would remember the
          original text and change it back.

          Lee


          On 12/7/2006 11:55 PM, Sheri wrote:
          ........................................................


          >You need to change the ^& in your inserthtml text to ^$GetSelection$
          >
          >^& represents whatever was highlighted when the clip started (not the
          >text selected at the point where the inserthtml command within the
          >clip starts).
          >
          >You should also put quotes around the search text and replace text in
          >your replace command.
          >
          >Regards,
          >Sheri
          >
          ........................................................
        Your message has been successfully submitted and would be delivered to recipients shortly.