I use a variable in_side, to help this out. When the beginning of the
next word to be marked is found,
then the <mark> is written, and the in_side flag is set to 1 (true).

When the end of the current word being marked has been reached, then </
mark> is written, and in_side is set to false.
When in_side is false, the only tag that can be written (when the next
words to be enclosed are found),
is the <mark> tag.

Hope that helps you out.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to