On Thu, Aug 27, 2009 at 7:42 AM, Scott Violet<[email protected]> wrote:
>> myLabel->set_bold_delimiter("*");
>> myLabel->set_text("hello *world*");
>>
>> Is this totally lame?
>
> Then you have to worry about escape characters, which ends up being a
> bit finicky. I would rather see some way to add specify an attribute
> over a range of the text. Perhaps though we end up with what you are
> suggesting in our resources files. Hm.

To complete the discussion I had with Aaron, this is more or less what
I wrote for the pre-HTML history system, for formatting snippets that
contained bold text.  (It's especially tricky in the presence of
word-wrapping.)  You could probably dig the code out of the repository
history somewhere.

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to