Skip to main content
November 1, 2011
Question

Variables with angle brackets <>

  • November 1, 2011
  • 2 replies
  • 1105 views

I was trying to create a variable that contained angle brackets <> as the text needed in the variables are angle brackets in this instance. However, there is also text between the angel brackets. When I created the variable, the text between the angle brackets was in Courier New font and it had a red background. When I previewed the page, that information was cut out of the variable.

First, how do I add angle brackets within a variable (or can you)?

Second, what is happening when I add angle brackets and the font changes and the background color changes behind the text? What does it do? Can someone point me to an article or reference on what it does and how it's helpful?

Thanks.

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    November 2, 2011

    Hi mcallit82,

               you can have &lt; or &gt; in the udv values there are two ways to achieve this

         1. You can directly type these characters in the design view of the UDV value as shown below

    2. the UDV creation dialog you can use '&lt;' for '&lt;' and '&gt;' for '&gt;'

    Hope this will help

    Ashish

    Willam van Weelden
    Inspiring
    November 1, 2011

    Hi,

    Which version of RoboHelp are you using? Can you post a screen shot of what is happening? If the font and background changes, you either applied styling or you added a HTML tag by accident.

    The angle brackets are protected elements as they delimit HTML tags. What are you trying to achieve? Do you want to add a HTML tag to the variable or do you want to add the brackets as text? Adding HTML tags was introduced in RH8 if I'm not mistaken.

    If you want to add the brackets as text, make sure you vies the design view of the variables and simply type the angle brackets. If that doesn't work, add the escape characters for the brackets in HTML mode:

    < = &lt;

    > = &gt;

    Greet,

    Willam