MV Use HTML in Textbox

Hi,
for a math-oriented game i would like to use something like this:
<!DOCTYPE html>
<html>
<head>
<title>MathJax TeX Test Page</title>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script type="text/javascript" id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
</script>
</head>
<body>
When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
</body>
</html>

which should render to the attached output in a message box.
I am new the rpg maker, so perhaps i simply haven't used the right terms for the search.
Moderator note: I am moving this to Plugin Requests

I imagine there would be some way via script to do this, but anything adding new functionality to the text box will require a plugin.
Thank you, i was not aware of that.
You should look into how windows in MV work. You'll have to make your own Window class and use the javascript DOM API to manipulate DOM elements to do whatever you would have done with them in HTML.

I had to do this to implement UTF-8 support for text boxes in the Knight Editor, you can look at the code here, here, and here if you want an example of the sort of things you need to do.
Wow, that looks overwhelming at the first glance. I will have to download your plugin and see the way it looks and try to combine it with your code.
Thank you very much for giving me a starting point!
There's a lot of code there mostly because I wrote my own extension to the default Window class, so I could add a bunch of extra features to it that make it a bit easier to write complex UI, and so I could avoid having my changes overwrite the regular windows people use for their game while they're using my plugin.

You don't really need to do any of that if you don't want to though, if all you care about is getting HTML elements inside a window, you should be able to get that by mostly just making your own version of the EditorHTMLTextInput class and putting it in your own Window.

There's a few snags to getting it to work correctly, so if you have any questions about it feel free to ask

Original thread: https://forums.rpgmakerweb.com/threads/use-html-in-textbox.132747/