aeric Expert Licensed User Longtime User Feb 3, 2026 #1 Currently, MiniHtml2 library is under development https://www.b4x.com/android/forum/threads/b4x-web-minihtml2.170180/ Maybe for B4X developers, it has not much of any use. Even for myself, translating the html into B4X code by hand is really torturing. With Erel's MiniHtmlParser class, I have successfully modified it to be able to convert HtmlNode to Tag object. But this is not real code. It is just object. Therefore I need to create a converter to write the object into B4X code line by line. I am not sure how easy it is but I am starting to try it out. Wish me luck. Edit: Project is now available on GitHub https://www.b4x.com/android/forum/threads/minihtml2-code-generator.170204/ Last edited: Feb 10, 2026
Currently, MiniHtml2 library is under development https://www.b4x.com/android/forum/threads/b4x-web-minihtml2.170180/ Maybe for B4X developers, it has not much of any use. Even for myself, translating the html into B4X code by hand is really torturing. With Erel's MiniHtmlParser class, I have successfully modified it to be able to convert HtmlNode to Tag object. But this is not real code. It is just object. Therefore I need to create a converter to write the object into B4X code line by line. I am not sure how easy it is but I am starting to try it out. Wish me luck. Edit: Project is now available on GitHub https://www.b4x.com/android/forum/threads/minihtml2-code-generator.170204/
aeric Expert Licensed User Longtime User Feb 3, 2026 #2 Using Code bundle, I created a MiniHtml2.json for AI to analyze my library. Uploading the file and provide a prompt to create a transpiler. #1st Attempt with Gemini (bronze) Provided me a B4X MiniHtmlCodeGenerator class code snippet but not convincing. #2nd Attempt with ChatGPT (silver) Provided me a MiniHtmlCodeEmitter.bas class on 2nd step. After 2nd reply from me still unable to produce a convincing B4J UI project. #3rd Attempt with Deepseek (gold) Provided me a MiniHtmlTranspiler class but in python script. The code is much convincing. Then I ask it to convert the python code to B4X, it seems creating a better B4J UI project. I will check all 3 solutions and combine all the ideas.
Using Code bundle, I created a MiniHtml2.json for AI to analyze my library. Uploading the file and provide a prompt to create a transpiler. #1st Attempt with Gemini (bronze) Provided me a B4X MiniHtmlCodeGenerator class code snippet but not convincing. #2nd Attempt with ChatGPT (silver) Provided me a MiniHtmlCodeEmitter.bas class on 2nd step. After 2nd reply from me still unable to produce a convincing B4J UI project. #3rd Attempt with Deepseek (gold) Provided me a MiniHtmlTranspiler class but in python script. The code is much convincing. Then I ask it to convert the python code to B4X, it seems creating a better B4J UI project. I will check all 3 solutions and combine all the ideas.
aeric Expert Licensed User Longtime User Feb 3, 2026 #4 Seems it is working fine now for simple HTML.