cfml/Tidy questions....

Greetings,

I tried searching the archives of the list, but the search engine seems 
to be busted right now.

I'm trying to configure BBTidy to look at my .cfm files, but am having 
some difficulty.
(Perhaps this code is simply beyond what Tidy can handle?)

I've tried many config combinations, but the closest I can get is:

 From Config.txt:
new-inline-tags: cfelse, cfinclude
new-blocklevel-tags: cfif, cfoutput, cfquery, cfloop
new-empty-tags: cfelse, cfelseif, cfinclude, cfinsert, cfupdate
new-pre-tags: cfmail, cfinsert, cfquery, cfoutput, cfloop

example 1
================
Input:
<cfif ISDefined('Form.partnumber')>
   <cfinsert datasource="#Application.dsname#" tablename="storeitems" 
dbtype="ODBC">
</cfif>

Errors:
line 18 column 1 - Warning: <cfif> attribute 
"isdefined('form.partnumber')" lacks value
line 20 column 1 - Warning: discarding unexpected </cfif>

Output:
<cfif>
   <cfinsert datasource="#Application.dsname#" tablename="storeitems" 
dbtype="ODBC">
</cfif>

My ISDefined is getting whacked.
================

example 2
================
Input:
<select name="categoryid">
	<option selected>Choose a Category...</option>
           <cfloop query="rsCatlookup">
             	<option 
value="<cfoutput>#rsCatlookup.categoryid#</cfoutput>">
		<cfoutput>#rsCatlookup.categoryname#</cfoutput>
		</option>
           </cfloop>
</select>

Errors:
line 64 column 11 - Warning: discarding unexpected <cfloop>
line 65 column 75 - Warning: discarding unexpected <cfoutput>
line 65 column 85 - Warning: discarding unexpected plain text
line 65 column 111 - Warning: discarding unexpected </cfoutput>
line 65 column 122 - Warning: discarding unexpected </option>
line 66 column 11 - Warning: discarding unexpected </cfloop>

Output:
<select name="categoryid">
<option selected>
Choose a Category...
</option>

<option 
value="&lt;cfoutput&gt;#rsCatlookup.categoryid#&lt;/cfoutput&gt;">
</option>
</select>
=================

In ex.2, I need a <cfoutput> tag WITHIN an option value attribute (see 
input).
Tidy is encoding my brackets.

Is it possible to avoid this?

Thanx for any help!
=T=

Received on Wednesday, 20 February 2002 21:53:34 UTC