HtmlFormatTools Extension [Free & Open Source]

Congratulations @Salman_Dev. Nice extension :+1: keep it up.

1 Like

Thank you very much for your support @techVsurya :star_struck: :kissing_heart:

1 Like

You wrote an extension to enable HTML and you don't know what HTML? :koala:

2 Likes

I know what is HTML, but I don't know what version of HTML works with my extension, I think HTML5 works with my extension. :sweat_smile:

Salman, you surely have to know the HTML version and which tags your extension supports. Saying you don't know is like saying you don't know the make and model of your phone, or the name of your pet fish, or or ............ :upside_down_face:

@ChrisWard I really don't know what HTML version it supported, see this :
import android.text.Html;
just that I import for HTML :cold_sweat:

There is your clue - read the documentation on that. I suspect it might be as limited as the tags App Inventor currently supports.

Edit: Need to watchout for the compliant Android API versions too.

don't worry, I have already set it up for Android Version Nougat or higher :wink:

Great extension Salman ! :+1:


Btw, these are the supported tags by the Html class ( and probably by the extension that uses the Html class, as Salman satated above ) :grinning:

  • <br>
  • <p>
  • <ul>
  • <li>
  • <div>
  • <span>
  • <strong>
  • <b>
  • <em>
  • <cite>
  • <dfn>
  • <i>
  • <big>
  • <small>
  • <font>
  • <blockquote>
  • <tt>
  • <a>
  • <u>
  • <del>
  • <s>
  • <strike>
  • <sup>
  • <sub>
  • <img>
  • <h?> ( The heading size (? value) should be from 1 to 6 )

Source :- The Html class source

3 Likes

Thank you very much Teacher @MohamedTamer :heart_eyes: :kissing_heart:

1 Like

Hmmm... I think the supported HTML version is most likely HTML4 because tags like the <font> tag and <tt> are only supported in that version.

1 Like

do you have any documentation about that

I didn't remember learning those tags in HTML 5 so I checked with W3 Schools here and here

1 Like

Okay now I understand, so my extension support Html4.
Thanks for the info @Mayank_Kumar :kissing_heart:

Nice extension!

1 Like

Thank you very much for helping me a lot @Kumaraswamy :heart_eyes: :kissing_heart:

Hello Salman_Dev,

great extension!

One or three questions:
To put some HTML-Text on a button is just the same as to put text on a HTML-Label?
Some "letters" like arrows are much smaller than normal text size?
Some "letters" like phone or hearts ignore color?


yes it same, but the difference is that you have to put your text into a block (Html ​​Text).

Strange question, the button is different from the label so you can not equate it. :unamused:

wht, I see in the screenshot that you provide there is no difference.

If you have any questions or problems, please PM me so I can guide you.
Thank you :innocent:

Hello Rudolf

That has nothing to do with the extension - it just displays your input. If your input does not fit what HTML4 + UTF8 characters can do, then the results will not be as hoped. This is particularly true with icon type characters (effectively images) which generally have their own built-in colour that you cannot change. You might find a font that fits your requirements better. That can be loaded into your App and distributed with it - providing the author of the font permits this, but otherwise for buttons you can use an actual image (png recommended) rather than a font.

Edit: Another issue is the use of web-dependent fonts (e.g. font awesome). They require an Internet connection. If the site is down, your App will be missing it's font. That happen this year to millions of websites, mine included. So I have replaced "font images" for buttons with my own.

1 Like

Thank you ChrisWard, thank you Salman_Dev!

I want to put a symbol together with normal text on the same button like ["=>" 127] (goto page 127), f.e. 127 is the result of a calculation. I think I can't do this with different pics, there are too many possibilities, so the extension was very helpfull. From now on I will only use HTML4 characters. Controlling the output should be much easier.

Extension to ChrisWard...
Is it possible to manipulate a AppInventor Button "extern" with java and webviewer, like set text "abc" to InventorButton5?
<button name="InventorButton5 value="abc">