在 HTML 中,是否可以部分格式化 <input> 或 <textarea> 框?

In HTML, is it possible to partially format <input> or <textarea> box?

是否可以部分格式化 <input><textarea> 框中的文本? 当用 Gmail 写邮件时,邮件内容的格式可以如下例所示:

我知道我可以找到现有的 JS 库来像在 Stack Overflow 中一样编写消息,但我更喜欢 Gmail (WYSIWYG) 之类的东西。

这是不可能的。所有所见即所得编辑器都使用 contentEditable attribute on <div> (or another element) and the execCommand JS API 来格式化编辑器内容。