Skip to main content
Nov 17, 2011 5:36 PM UTC
Answered

Copy code from pasteBin to forum editor

What do I have to do in pasteBin to properly display code in the forum editor?  Thank you.

    This topic is closed to new replies. Start a new post to keep the conversation going.
    -__cfSearching__-Correct answer
    Inspiring
    Nov 17, 2011 6:49 PM UTC

    If you are using pastebin, just post the url for your code snippet.

    To post code in this forum, select "Use Advanced Editor". Enter your code and select it. Then

        - Click Insert ie arrows ">>" (next to yellow emoticon)

        - Syntax Highlighting

       <cffunction name="foo" output="false" returnType="string">

          <cfargument name="bar" required="true">

          <cfreturn "result"& arguments.bar>

       </cffunction>

    15 replies

    Inspiring
    Nov 17, 2011 11:08 PM UTC

    Out of curiousity, since you are the only one who is having the forum software strip out code, how are you accessing this site?  I have always used a Windows PC with either IE or Firefox and have never experienced a problem.  I also see code posted by other people, so they don't have a problem either.

    Translate
    Inspiring
    Nov 18, 2011 4:49 AM UTC

    They are not the only one. I have seen it happen to others before. Though I am not sure what sequence of events triggers it. Replying via email usually causes it too ... due to a security "feature".

     

    -Leigh

    Translate
    -__cfSearching__-Correct answer
    Inspiring
    Nov 17, 2011 6:49 PM UTC

    If you are using pastebin, just post the url for your code snippet.

    To post code in this forum, select "Use Advanced Editor". Enter your code and select it. Then

        - Click Insert ie arrows ">>" (next to yellow emoticon)

        - Syntax Highlighting

       <cffunction name="foo" output="false" returnType="string">

          <cfargument name="bar" required="true">

          <cfreturn "result"& arguments.bar>

       </cffunction>

    Translate
    Nov 17, 2011 7:19 PM UTC

    Thank you!!

    Translate