Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Explorer ,
Jul 09, 2009 Jul 09, 2009

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.

676
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 09, 2009 Jul 09, 2009

quotation marks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 09, 2009 Jul 09, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 09, 2009 Jul 09, 2009
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources