Search code examples
syntaxhyperlinkrtf

What is the RTF syntax for a hyperlink?


HTML is to <a href="x">y</a> as RTF is to _______?


Solution

  • The equivalent of the following HTML:

    <a href="https://www.google.com">Google</a>
    

    for an RTF file is:

    {\field{\*\fldinst HYPERLINK "http://www.google.com/"}{\fldrslt Google}}
    

    which results in a link:

    Google

    but without additional style information, will appear unformatted:

    Google