Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Empty tags
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andrew Hewitt  
View profile  
 More options Apr 9 2009, 12:31 am
From: Andrew Hewitt <ragamu...@gmail.com>
Date: Thu, 9 Apr 2009 00:31:17 -0400
Local: Thurs, Apr 9 2009 12:31 am
Subject: Empty tags

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google