DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Markup On DZone Snippets

05.26.2009
| 1139 views |
  • submit to reddit
        This post is an attempt to test what markup DZone Snippets support.  HTML tags?  BBCode?  Markdown?

Looks like the only supported tags are strong, em, b, i, a, pre and code.

  `backquote`, *splat*, /lean/, _under_

    HTML-
  character entities--
lt: <
amp: &
mdash: —
ndash; –
    tags--
<pre>pre line 1
pre line 2
</pre>
<kbd>kbd 1
kbd 2
</kbd>
<samp>samp 1
samp 2
</samp>

img (DZone logo): <img src="http://www.dzone.com/links/themes/reader/images/dzlogo-tagline-small.gif" />

<strong>strong</strong> <em>em</em> <del>del</del> <ins>ins</ins> <cite>cite</cite> <sup>sup</sup> <sub>sub</sub>
<b>b</b> <i>i</i> <u>u</u> <big>big</big> <small>small</small> <tt>tt</tt>
<q>q</q> <blockquote>blockquote</blockquote>
<a href="http://snippets.dzone.com">DZone Snippets</a>
<span>span</span><span style="color: maroon">span w/ style</span>
<div>div</div>
<ul>
 <li>ul</li>
</ul>

<ol>
 <li>ol</li>
</ol>

<dl>
<dt>dl dt</dt><dd>dl dd</dd>
</dl>

<abbr>abbr</abbr><acronym>acronym</acronym>

<fieldset><legend>fieldset legend</legend></fieldset>
<table>
  <caption>table caption</caption>
  <thead>
    <tr><th>thead th</th></tr>
  </thead>
  <tbody>
    <tr><td>tbody td</td></tr>
  </tbody>
  <tfoot>
    <tr><td>tfoot td</td></tr>
  </tfoot>
</table>

 Markdown-

A First Level Header
====================

A Second Level Header
---------------------

### Header 3

> This is a blockquote.
> 
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote

*   Splat list
*   Splat list

- Dash list
- Dash list

+ Plus list
+ Plus list

1. Numbered list 1
2. Numbered list 2

[DZone Snippets](http://snippets.dzone.com)

![DZone logo]("http://www.dzone.com/links/themes/reader/images/dzlogo-tagline-small.gif" "DZone")

  BBCode-
[b]b[/b] [i]i[/i] [u]u[/u] [COLOR="DarkRed"]color darkred[/COLOR] [FONT="Arial"Arial][/FONT] [SIZE="4"]size 4[/SIZE]
[QUOTE]quote[/QUOTE]
[indent]indent[/indent]
[left]left[/left]
[center]center[/center]
[right]right[/right]
[list]
[*]bullet 1
[*]bullet 2
[/list]
[list=1]
[*]item 1
[*]item 2
[/list]
[url]http://snippets.dzone.com/[/url]

    

Comments

Snippets Manager replied on Wed, 2009/07/01 - 7:17am

You can easily get all HTML tags from w3shool.com and from here you can also get free tutorials of HTML. You also get online certification by registring and paying online through credit card. It is satisfied you better.

Snippets Manager replied on Mon, 2009/05/25 - 11:41pm

What about in comments? HTML- character entities-- lt: < amp: & mdash: — ndash; – tags--
pre line 1
pre line 2
kbd 1 kbd 2 samp 1 samp 2 img (DZone logo): strong em del ins cite sup sub b i u big small tt q
blockquote
DZone Snippets spanspan w/ style div
  • ul
  1. ol
dl dt
dl dd
abbracronym fieldset legend table caption
thead th
tbody td
tfoot td
BBCode- [b]b[/b] [i]i[/i] [u]u[/u] [COLOR="DarkRed"]color darkred[/COLOR] [FONT="Arial"Arial][/FONT] [SIZE="4"]size 4[/SIZE] [QUOTE]quote[/QUOTE] [indent]indent[/indent] [left]left[/left] [center]center[/center] [right]right[/right] [list] [*]bullet 1 [*]bullet 2 [/list] [list=1] [*]item 1 [*]item 2 [/list] [url]http://snippets.dzone.com/[/url]