Skip to main content
Inspiring
July 9, 2009
Question

Tag to make coldfusion skip parsing a certain block of code.

  • July 9, 2009
  • 1 reply
  • 710 views

Is there a tag to make coldfusion skipping parsing a certain code.

Example, I want coldfusion to output the following code without executing it.

<cfquery name="qryTest" datasource="myds">

SELECT * FROM dual

</cfquery>

should result as

<cfquery name="qryTest" datasource="myds">

SELECT * FROM dual

</cfquery>

not coldfusion executing the qryTest.

    This topic has been closed for replies.

    1 reply

    Inspiring
    July 9, 2009

    quotation marks

    john85Author
    Inspiring
    July 9, 2009

    how?

    you mean the following:

    &lt;cfquery name="qryTest" datasource="myds"&gt;

    SELECT * FROM dual

    &lt;/cfquery&gt;

    not exactly what I am looking for.

    Inspiring
    July 9, 2009

    Actually, that's the result of htmleditformat which is a better option.  The quotation marks would stop the code from executing, but the angle brackets would stop it from displaying.