Genii Weblog


Civility in critiquing the ideas of others is no vice. Rudeness in defending your own ideas is no virtue.


Tue 24 May 2005, 03:28 PM
A friend asked me how I handle hyperlinks to common destinations, as I frequently answer questions in e-mails or comment on my blog about our products, and they always take the form of @Midas Formulas or CoexEdit.  He wanted to know if I keep copies handy, or have add them manually, or what.

The answer, of course, is that I use our Midas Rich Text LSX to do it for me.  The basic code is below (the whole agent is only 25 lines with comments):

' *** Connect to BlogBodyRT field and perform LinkMatching  ****
Call rtitem.ConnectBackend(doc.Handle, "BlogBodyRT", True)
 
rtitem.URLFont = "Blue Underline"
If mode Then uidoc.Save
uidoc.Close
Call rtitem.Everything.LinkMatching("", "GeniiKeywords.nsf", "Keyword View", "Term", "Link", |Target="_new"|)
rtitem.Save
Set uidoc = ws.EditDocument(mode, doc)

So, do you have a common set of keywords you would be able to automatically hyperlink?

Copyright 2005 Genii Software Ltd.