So I finally looked into this again and this time I was able to tweak my
settings to get my desired result. To recap, the problem I had was that the
CF bundle expects cfsets to be like so:
<cfset foo = "Hello World" />
However I prefer to code like so:
<cfset foo = "Hello World">
Not the lack of XHTML style syntax. This caused several problems the most
annoying of which was the fact that hitting return after finishing my cfset
tag would cause the next line to be indented. Likewise if I pasted something
in after a cfset tag the entire thing pasted would be indented. Same thing
would happen for all the tags that I didn't want indented as well such as
cfinclude, cfargument, etc. Here's what I did to work around it. Open your
bundle editor and under the HTML bundle there should be a Preference called
"Miscellaneous". In there is an "increaseIndentPattern", simply add the tags
you want so if you added the cfset tag the new pattern should look like:
increaseIndentPattern = '(?x)
<(?!\?|area|base|br|col|frame|hr|html|img|input|link|meta|param|*
cfset*|[^>]*/>)
([A-Za-z0-9]+)(?=\s|>)\b[^>]*>(?!.*</\1>)
|<!--(?!.*-->)
|<\?php.+?\b(if|else(?:if)?|for(?:each)?|while)\b.*:(?!.*end\1)
|\{[^}"'']*$
';
So far so good. Hope this helps those of you who like me say screw the man
and do things the non-xhtml style way.
- Andrew