Quote-handling.
Displaying 1-5 of 5 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Overkill

Perhaps, someday people might want the ability to use quotes in their strings without having to use chr(34). To avoid dealing with escape characters, why not allow the user to assign string values with either single quotes, back quotes/graves, and double quotes, and go until a closing quote of the same character is met.


TextBox(`Darin's party found some "Herbs of Recovery" inside of the crimson treasure chest!`);


Note: I use two single-quotes merely because Verge-rpg.com still has the annoying quote parsing issue! Fix'd!

Posted on 2005-10-23 15:59:53 (last edited on 2005-10-25 15:17:09)

Kildorf

Quote:
Originally posted by Overkill

Perhaps, someday people might want the ability to use quotes in their strings without having to use chr(34). To avoid dealing with escape characters, why not allow the user to assign string values with either single quotes, back quotes/graves, and double quotes, and go until a closing quote of the same character is met.


TextBox(`Darin's party found some ''Herbs of Recovery'' inside of the crimson treasure chest!`);


Note: I use two single-quotes merely because Verge-rpg.com still has the annoying quote parsing issue!

That seems a little excessive. Why not just allow back-slash escaping?

Posted on 2005-10-25 05:49:28

Overkill

Eh, I suppose we *could* use escape characters. But, parsing single quotes could still be useful though, especially since vrpg changes all double quotes to singles in posts!

Posted on 2005-10-25 06:49:19

Kildorf

Or someone could fix the quote parsing bug on v-rpg :D

Posted on 2005-10-25 14:59:19

Overkill

Or some combination of adding single-quotes to VC, and getting rid of annoying quote handling problems in the site! :D

Edit: "Thus sayeth Overkill, quotes could have been fixed just now.". It turns out Grue was replacing \" with \' instead of replacing with "

Posted on 2005-10-25 15:09:52 (last edited on 2005-10-25 15:18:03)


Displaying 1-5 of 5 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.