nsITXTToHTMLConv 编辑
netwerk/streamconv/public/nsITXTToHTMLConv.idl
Scriptable This interface allows you to modify the conversion from plain text to HTML. Inherits from: nsIStreamConverter
Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Implemented by "@mozilla.org/streamconv;1?from=text/plain&to=text/html"
. You should normally obtain an instance via the nsIStreamConverterService
interface. Method overview
void preFormatHTML(in boolean value); |
void setTitle(in wstring text); |
Prior versions of the interface named the methods using the InitialCaps style instead of the interCaps style.
Methods
preFormatHTML()
Specifies whether or not to wrap the resulting HTML in an <pre>
block.
void preFormatHTML( in boolean value );
Parameters
value
true
to wrap the resulting HTML in a<pre>
block.
setTitle()
Sets the title to use on the resulting HTML document.
void setTitle( in wstring text );
Parameters
text
- Title to set for the HTML document.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论