📄 readingposting.hlp
字号:
TOPIC_TITLE: <a name="style">How to format text?</a>
TOPIC_HELP:
Generally, messages on the forum are mostly plain text, however on occasion you may want to add
some formatting to your text, such as making certain words bold,italics,etc...
<p>
Since in most cases the admin does not permit you to use HTML inside your posts, you can use FUDcode, which is a special
set of tags that allows you to apply certain formatting to your text. FUDcode is very easy to use and is a lot more secure then HTML.
<p>
<b>Here is a list of the supported FUDcode tags & short examples on it's usage</b>
<b>URL Hyperlinking</b><br><br>
The forum can automatically pick up on many forms of URLs, for example:<br>
<div align="Center"><font color="#FF0000">http://fud.prohost.org</font></div><br>
will be automatically picked up as a URL and converted to a valid URL, which will look like this:
<div align="center"><a href="http://fud.prohost.org" target=_blank>http://fud.prohost.org</a></div><br>
You can create a URL yourself by using FUD code also, this can be done in 2 ways, a simple way works like this:
<div align="Center"><b><font color="#ff0000">[URL]<font color="#006600">http://www.myhomepage.com</font>[/URL]</font></b></div><br>
this will result in a generation fo the following link:
<div align="center"><a href="http://www.myhomepage.com" target=_blank>http://www.myhomepage.com</a></div><br>
You can add a description to your URL by using a different syntax inside the <font color="#ff0000"><b>[URL=<font color="#006600">http://www.myhomepage.com</font>]<font color="#006600">My Homepage</font>[/URL]</b></font> this code will result in the following:<br>
<div align="center"><a href="http://www.myhomepage.com" target=_blank>My Homepage</a></div><br>
<p>
<b>Email Hyperlinking</b><br><br>
To create an email link simply type the email address as it would
normally appear, for example:<br>
<div align="Center"><font color="#ff0000"><b>support@prohost.org</b></font></div><br>
the forum will automatically understand this create a link. In addition
it is also possible to create a real email hyperlink using this format<br>
<div align="Center"><font color="#ff0000"><b>[email=<font color="#006600">support@prohost.org</font>]</b></font>Click here to email our tech support<font color="#ff0000"><b>[/email]</b></font><br></div>
<br>
<b>Text Styling</b><br>
There are a number of tags which you can use to style text, they
are:<br>
<br>
<ul>
<li><font color="#ff0000"><b>[b]</b></font>bold<font color="#ff0000"><b>
[/b]</b></font> produces <b>bold</b> text</li>
<li><font color="#ff0000"><b>[u]</b></font>underline<font color="#ff0000"><b>
[/u]</b></font> produces <u>underlined</u> text</li>
<li><font color="#ff0000"><b>[i]</b></font>italic<font color="#ff0000"><b>
[/i]</b></font> produces <i>italicized</i> text</li>
<li><font color="#ff0000"><b>[sub]</b></font>subscript<font color="#ff0000"><b>
[/sub]</b></font> produces <sub>subscript</sub> text</li>
<li><font color="#ff0000"><b>[sup]</b></font>superscript<font color="#ff0000"><b>
[/sup]</b></font> produces <sup>superscript</sup> text</li>
</ul>
It is also possible to control color/size and even font face.<br>
<ul>
<li><font color="#ff0000"><b>[color=red]</b></font>red text<font color="#ff0000"><b>
[/color]</b></font> produces <font color="#ff0000">red text</font></li>
<li><font color="#ff0000"><b>[size=4]</b></font>big text<font color="#ff0000"><b>
[/size]</b></font> produces text in the specified <font size="4">
size</font></li>
<li><font color="#ff0000"><b>[font=courier]</b></font>text<font color="#ff0000"><b>
[/font]</b></font> produces text using the named <font face="Courier New, Courier, monospace">
type face</font></li>
</ul>
It is also possible to combine various formatting tags:<br>
<div align="Center"><font color="#ff0000"><b>[b][u][i][color=red][size=10][font=courier]</b></font>Formatted Text<font color="#ff0000"><b>[/font][/size][/color][/i][/u][/b]<br></b></font></div>
this example produces:<br>
<div align="Center"> <font color="#ff0000" size="10" face="Courier New, Courier, monospace"><u><i><b>Formatted Text</b></i></u></font></div>
<br>
<br>
<b>Text Alignment</b><br>
FUDcode supports text alignment via the [align] tag, which allows your to align your text in 3 ways:
<ul>
<li><font color="#ff0000"><b>[align=center]</b></font>centered text<font color="#ff0000"><b>[/align]</b></font> produces:</li>
<div align="center">centered text</div>
<li><font color="#ff0000"><b>[align=left]</b></font>left aligned<font color="#ff0000"><b>[/align]</b></font> produces:</li>
<div align="left">left aligned</div>
<li><font color="#ff0000"><b>[align=right]</b></font>right aligned<font color="#ff0000"><b>[/align]</b></font> produces:</li>
<div align="right">right aligned</div>
</ul>
<br>
<br>
<b>Various Lists</b><br>
You can create various kinds of lists using Form Code:<br>
<br>
Un-ordered bulleted list:<br>
<font color="#ff0000"><b>[list]</b></font><br>
<font color="#ff0000"><b>[*]</b></font>first item<br>
<font color="#ff0000"><b>[*]</b></font>second item<br>
<font color="#ff0000"><b>[/list]<br>
</b></font><br>
would produce<br>
<ul>
<li>first item</li>
<li>second item</li>
</ul>
It is possible to use various kinds of lists, for example to create
an numerical ordered list:<br>
<font color="#ff0000"><b>[list type=1]</b></font><br>
<font color="#ff0000"><b>[*]</b></font>first item<br>
<font color="#ff0000"><b>[*]</b></font>second item<br>
<font color="#ff0000"><b>[/list]</b></font><br>
which produces<br>
<ol>
<li>first item</li>
<li>second item<br>
</li>
</ol>
to create an A-Z list:<br>
<font color="#ff0000"><b>[list type=A]</b></font><br>
<font color="#ff0000"><b>[*]</b></font>first item<br>
<font color="#ff0000"><b>[*]</b></font>second item<br>
<font color="#ff0000"><b>[/list]</b></font><br>
<br>
which produces:<br>
<ol type="a">
<li>first item</li>
<li>second item</li>
</ol>
<b>Adding Images</b><br>
It is possible to include in-line images with the message. using the <font color="#ff0000"><b>
[img][/img]</b></font> tags. <br>
<br>
so, for example,<br>
<div align="Center"> <font color="#ff0000"><b>[img]</b></font><font color="#006600">http://www.prohost.org/img/pro_logo.gif</font><font color="#ff0000"><b>[/img]</b></font>, <br></div>
will insert an image in the message as such:<br>
<div align="Center"><img src="http://www.prohost.org/img/pro_logo.gif" alt="http://www.prohost.org/img/pro_logo.gif" width="409" height="62"><br></div>
in addition you can create links to images by enclosing them inside a
<font color="#ff0000"><b> [url][/url]</b></font> tags such as<br>
<div align="Center"><font color="#006600"><font color="#ff0000"><b>[url=<font color="#006600">http://www.prohost.org</font>][img]</b></font>http://www.prohost.org/img/pro_logo.gif<b><font color="#ff0000">[/img][/url]</font></b></font><br></div>
which will create a linked image such as<br>
<div align="Center"><a href="http://www.prohost.org"><img src="http://www.prohost.org/img/pro_logo.gif" alt="image" width="409" height="62" border="0"></a><br></div><br>
<br><b>Quoting other messages</b><br>
It is possible to quote something that has already been posted, by just
putting <font color="#ff0000"><b>[quote][/quote]</b></font> tags around it.
<br>
<div align="Center"><font color="#ff0000"><b>[quote]</b></font>hello world<font color="#ff0000"><b>[/quote]</b></font><br></div>
would appear such as:<br>
<table border="0" align="center" width="20%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>Quote:</b></td></tr><tr><td class="quote">Hello World<br></td></tr></table>
<p>
<b>Pre-formatted Text</b><br>
The <font color="#ff0000"><b>[pre][/pre]</b></font> tags allows to post
text exactly as it is, maintaining relational formatting such as tabs and multiple
spaces. <br>
<br>
it used like this: <br>
<font color="#ff0000"><b>[pre]</b></font>
<pre>$fp = fopen('somefile', 'w');<br>if ( !$fp ) {<br> exit('no such file!');<br>}<br>else { <br> fwrite($fp, 'hello world');<br> fclose($fp);<br>}<br></pre>
<font color="#ff0000"><b>[/pre]</b></font><br>
<br>
which produces the text exactly as it was typed maintaining the formatting.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -