|
Search
|
|||||||
| Development Help For help from coding to error finding to that one thing you just can't get right |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Squirt
Join Date: Aug 2008
Posts: 18
Reputation: 10
|
Trying to make a notepad app.
Don't know what to store the entered text as. Could store it as a really long string. Don't think that would be a good idea. I want to include stuff like italics and indentations in the text. is there anything like rich text format i could store it in? Any help? I'm a minimalist writer... ![]() ![]() |
|
|
|
| Advertisement | [Remove Advertisement] | ||
|
|
|
|
#2 (permalink) |
|
Jr. Member
Join Date: Jun 2007
Location: Mass
Posts: 331
Reputation: 88
|
As far as variable declaration goes, the entire text should be stored as a string, there is no rich text format string. For displaying this data, you would need to parse the italics and underlines your self, which could be messy.
__________________
~Shutout5591~ ![]() [FINAL] Asteroids 1.0 If you like me work or I have helped you, + Rep me! ![]() |
|
|
|
|
|
#3 (permalink) |
|
you lost the game.
zB Programmer
Moderator Elite Zuner Join Date: May 2008
Posts: 2,355
Reputation: 866
|
There isn't any out-of-the-box solution for that, so you're going to need to roll your own. I'd assume you'd store the text as a series of objects each containing a string with a block of text plus the formatting properties for that text.
![]() |
|
|
|
![]() |
| Thread Tools | |
|
|
| |