hey, one of my validates_format_of statements, I have a regEx to verify a website address is valid, not pinging the server or anything, just simply so the web address is proper format. anyways, im curious to know if there is a way to avoid having the regEx accidently comment out the rest of the file.. keep in mind the file still works properly, just the code highlighting is ugly after the regEx is typed up. Yeah.. im using dreamweaver8 code view.. get over it.. :P if anyone knows how to do that, it would be cool, not a serious issue though, just something I would rather have look nice. thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
releod wrote:> hey, one of my validates_format_of statements, I have a regEx to verify > a website address is valid, not pinging the server or anything, just > simply so the web address is proper format. > > anyways, im curious to know if there is a way to avoid having the regEx > accidently comment out the rest of the file.. keep in mind the file > still works properly, just the code highlighting is ugly after the > regEx is typed up. > > Yeah.. im using dreamweaver8 code view.. get over it.. :P > > if anyone knows how to do that, it would be cool, not a serious issue > though, just something I would rather have look nice. > > thanks!a ruby comment begins with # and only lasts one line. And it should be ignored in a Regex anyway. There is no "ruby" way to do this since it''s entirely your IDE''s fault. Write Macromedia and ask for proper ruby support, or use one of the many free editors out there. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 02/09/06, releod <releod-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > hey, one of my validates_format_of statements, I have a regEx to verify > a website address is valid, not pinging the server or anything, just > simply so the web address is proper format. > > anyways, im curious to know if there is a way to avoid having the regEx > accidently comment out the rest of the file.. keep in mind the file > still works properly, just the code highlighting is ugly after the > regEx is typed up.You could use the %r{} constructor for regex - it might not tickle the same bug. See http://www.ruby-doc.org/core/.> Yeah.. im using dreamweaver8 code view.. get over it.. :PTo edit your models? Didn''t know it did that. -- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---