To post pieces of code, surround them with <code>...</code> tags.
For PHP code, you can use <?php ... ?>, which will also color it based on syntax.
Lines and paragraphs are automatically recognized.
The <br /> line break, <p> paragraph, and </p> close paragraph tags are inserted automatically.
If paragraphs are not recognized, simply add a couple of blank lines.
Web page addresses and email addresses turn into links automatically.
Allowed HTML tags include:
<h2> <h3> <h4> <h5> <h6> <em> <strong> <pre> <code> <del> <img> <blockquote> <q> <cite> <sup> <sub> <s> <p> <br> <ul> <ol> <li> <dl> <dt> <dd> <a> <abbr> <b> <u> <i> <table> <tr> <td> <th> <tbody> <thead> <tfoot> <colgroup> <caption> <hr> <div> <!-- -->
This site allows HTML content. Learning all of HTML may feel intimidating, but understanding a few basic tags is easy. The following examples show how each tag works.
| Tag description | You type | You get | ||
|---|---|---|---|---|
| Heading | <h2>Subtitle</h2> |
|||
| Emphasized | <em>Emphasized</em> |
Emphasized | ||
| Strong | <strong>Strong</strong> |
Strong | ||
| Preformatted | <pre>Preformatted</pre> |
Preformatted |
||
| Code | <code>Coded</code> |
Coded |
||
| Deleted | <del>Deleted</del> |
|||
| Block quote | <blockquote>Block quoted</blockquote> |
Block quoted |
||
| Quoted inline | <q>Quoted inline</q> |
Quoted inline |
||
| Cited | <cite>Cited</cite> |
Cited | ||
| Superscript | <sup>Super</sup>scripted |
Superscripted | ||
| Subscript | <sub>Sub</sub>scripted |
Subscripted | ||
| Paragraph | <p>Paragraph one.</p> <p>Paragraph two.</p> |
Paragraph one. Paragraph two. |
||
| Line break | Text with <br />line break |
Text with line break |
||
| Unordered list | <ul><li>First</li><li>Second</li></ul> |
|
||
| Ordered list | <ol><li>First</li><li>Second</li></ol> |
|
||
| Definition list | <dl><dt>Term</dt><dd>Definition</dd></dl> |
|
||
| Link | <a href="https://www.drupal.org">Drupal.org</a> |
Drupal.org | ||
| Abbreviation | <abbr title="Abbreviation">Abbrev.</abbr> |
Abbrev. | ||
| Bold | <b>Bolded</b> |
Bolded | ||
| Underline | <u>Underlined</u> |
Underlined | ||
| Italic | <i>Italicized</i> |
Italicized | ||
| Table | <table><tr><th>Header</th></tr><tr><td>Cell</td></tr></table> |
|
Most unusual characters can be entered directly without issues.
If you encounter problems, use HTML character entities.
For example, & produces an ampersand &.
| Character description | You type | You get |
|---|---|---|
| Ampersand | &amp; |
& |
| Greater than | &gt; |
> |
| Less than | &lt; |
< |
| Quotation mark | &quot; |
" |
For a complete list of HTML entities, see W3C’s HTML entities reference.
References to project issues in the form [ #1234 ] (or [ #1234-2 ] for comments) turn into links automatically with the issue title shown on hover.
Appending @ (for example [ #1234@ ]) also displays the assigned user.
Only images hosted on this site may be used in <img> tags.
External images are replaced with an error icon.