Beginner HTMLText question

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
yachris
Posts: 20
Joined: Sat May 21, 2011 1:26 am

Beginner HTMLText question

Post by yachris » Sat May 21, 2011 2:15 am

Hello,

I'm seeing if it makes sense to "port" a partly-completed iOS project to LiveCode.

A big part of the project is a LOT of HTML. I'm curious if I can use the "HTMLText" property for iOS and Android. The documentation says it's for OSX/Windows/Linux only.

Will it be supported on iOS/Android any time soon? Are there workarounds (other than launching the browser, which isn't acceptable)?

Thanks!

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Beginner HTMLText question

Post by BvG » Sat May 21, 2011 11:33 am

htmltext is build into every field object, no matter the platform. However, it is not really html, but only a very small subset. If that is enough for what you need to do, then it will run on any platform that LC can deploy to.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

yachris
Posts: 20
Joined: Sat May 21, 2011 1:26 am

Re: Beginner HTMLText question

Post by yachris » Sat May 21, 2011 1:04 pm

Excellent, that's exactly what I need... thanks for the reply. Basically, I'm using bold text and paragraphs... and maybe bold-italics if I get really crazy :-)

sp27
Posts: 135
Joined: Mon May 09, 2011 3:01 pm

Re: Beginner HTMLText question

Post by sp27 » Sat May 21, 2011 4:55 pm

Is there a place where this "small subset" is defined/listed? I need tables with definable borders (just the on/off or thickness, nothing fancy), cellpadding, and cell alignment. Are those supported, please?

sp27

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Beginner HTMLText question

Post by Dixie » Sat May 21, 2011 5:22 pm

sp27..

Look at' htmlText' in the dictionary...

be well

Dixie

sp27
Posts: 135
Joined: Mon May 09, 2011 3:01 pm

Beginner HTMLText question

Post by sp27 » Sat May 21, 2011 7:29 pm

Very disappointing, at least for my purposes. HTMLText is barely more than text styles. Has someone developed an add-on that would display a better subset of HTML tags in a field? User Guide says there is "a 3rd party library available that allows you to host a web browser within an object and control it by script." I've also seen references to a "web browser object" (based on WebKit, etc.) that allows the programmer to place a Web page in a LC card.

I am not looking for a full-featured browser to build into my cards, nor for a way to launch the user's browser.

I have a large database of texts in basic HTML format (including tables), and I need to display these texts in a card. Where should I look?

Any tips will be appreciated.

sp27

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Beginner HTMLText question

Post by Klaus » Sun May 22, 2011 12:20 am

Hi sp27,

LiveCode for iOS supports a native "Browser control – UIWebView" on iOS that you can use and manage!
Check the "iOS Release Notes" (Menu: Help) for more info -> Browser control – UIWebView


Best

Klaus

sp27
Posts: 135
Joined: Mon May 09, 2011 3:01 pm

Re: Beginner HTMLText question

Post by sp27 » Sun May 22, 2011 3:52 am

Anyone interested in a complete solution to displaying a full set of HTML tags please refer to my post called "something better than HTMLText of fileds, anyone?" in forum Using Externals and Plugins. Thanks,

sp27

Post Reply