In changes to Qt IDE for version 1.6.2 included a new tool to insert HTML into the term window. I played with it a little and have the interesting following. Hopefully, the lines are short enough to not wrap:
NB. ____ Start of script ___________________ t1=:0 : 0 sm html * <html> <body><p> The next two words are bold, underlined and italic: <b><u><i>Two words</i></u></b> but no more. </p> <p>A J icon: ) f=:jpath '~bin/icons/jblue.png' t2=:'<img src="',f,'" width="60" height="60">' t3=:0 : 0 </p> <p> Here is a J icon put in a sentence. Here it is right here ) f=:jpath '~bin/icons/jred.png' t4=:'<img src="',f,'" width="20" height="20">' t5=:0 : 0 <sp>and more text is all around it. Neat! </p> </>Unfortunately, I don't know how to get it to wrap within the window. </p> <pre style="color:green"> ) t6=:0 : 0 </pre> </body> </html> ) wd t1,t2,t3,t4,t5,JVERSION,t6 NB. ___ End of script __________________ Okay. Not a polished script. But several questions have come up. 0. What HTML works and what does not? I tried several valid HTML in a normal browser but some fail, actually doesn't do anything. I looked in the Qt site but couldn't figure out what works and what doesn't. 1. Paragraphs don't wrap. Not sure how that should work as I have no idea what the width of the form for the term window as it has a scroll bar at the bottom for lines that are too long, but it would be nice if it wrapped to the width of the current displayed window. 2. alt image doesn't work. If it can't find the image it just displays an empty picture. I haven't explored this much yet, but I would be glad to help document this. Just give me some idea where this is going. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
