cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
MathStatChem
Level VII

Using "<" and ">" as normal text when using Markup with a Text Box

 Is there a way to display "<" and/or ">" as normal text in a Text Box.  For example, the script below gives an error, it is interpreting the < and > characters as parts of an HTML tag.  

names default to here(1);
string = "the value is <b> <<a </b>, but <i> > b </i>";
new window("test",
	text box(string, <<Markup(1))
)

What I want to display in the text box is 

 

the value is <<a, but > b

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Using "<" and ">" as normal text when using Markup with a Text Box

Maybe escaping with "<" with &lt; could work?

 

names default to here(1);
string = "the value is <b> &lt;&lt;a </b>, but <i> > b </i>";
new window("test",
	text box(string, <<Markup(1))
)

 And &gt; for >

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Using "<" and ">" as normal text when using Markup with a Text Box

Maybe escaping with "<" with &lt; could work?

 

names default to here(1);
string = "the value is <b> &lt;&lt;a </b>, but <i> > b </i>";
new window("test",
	text box(string, <<Markup(1))
)

 And &gt; for >

-Jarmo
MathStatChem
Level VII

Re: Using "<" and ">" as normal text when using Markup with a Text Box

That's it! I tried using &lt and &gt, but without the semicolon after.

Recommended Articles