Re: simple convenience function for text buffer tag insertion



Paul Pogonyshev wrote:
[snip]
The proposed function allows to insert some text and at the same time
apply tags to certain _parts_ of it.  Tags must be defined in the
buffer tag table prior to call to new function.  Instead of relying
on complicated arguments, it would accept one gchar* argument and
parse it.  E.g., with example from ER: argument

    See <article>Sepulka</article> for more information on <abbr>SLK</abbr>.

would cause text
    See Sepulka for more information on SLK.

be inserted in the buffer, with afterwards applying tag 'article' to
the word 'Sepulka' and 'abbr' to 'SLK'.

The purpose is to simplify tag application yet to remain as generic
as possible --- tags used are still those defined by programmer in
buffer tag table, not some predefined set.

+5 from me!

--
Sohail Somani
http://uint32t.blogspot.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]