-
Notifications
You must be signed in to change notification settings - Fork 4
pMCode Reference
ExpressionEngine supports the use of "pMcode" within your entries. pMcode is a simplified syntax that you can use to format your entries with bold text, links, and more. It is very similar (in many cases identical) to the codes used on many popular forum packages.
Headings are specified using [h] tags:
### Your Heading
Note: For Wiki headings please use only [h3].
When submitting HTML or PHP code examples, please wrap them in [code] ... [/code] tags:
[code]A code example here [/code]
[url]http://www.your-site.com/[/url]
[url=http://www.your-site.com/]my site[/url]
You can easily create links with custom text or simply with the URL itself as the link.
[size=4]Hey look at this![/size]
You can specify font sizes as 1 through 6. 1 is the smallest and 6 is the largest.
[color=green]Some green text[/color]
You may also specify a color for the text. Further, these pMcodes can be nested.
[size=4][color=green]some larger green text[/color][/size]
[b]some bold text[/b]
[strong]some strong text[/strong]
[em]some em text[/em]
[i]some italic text[/i]
Bold, strong, em and italic text is simple to add.
[strike]text stricken out[/strike]
This produces text with a line through the center of it. Note that the output of this tag is not valid in XHTML 1.0 Strict documents.
[email]you@your-site.com[/email]
[email=you@your-site.com]click here to email[/email]
As with URLs, you can also format email addresses. These pMcode tags will automatically encode the email address to make it more difficult for "spam bots" to retrieve it.
[img]http://www.your-site.com/pic.jpg[/img]
You can easily display an image.
[quote]Some text. blah, blah, blah...[/quote]
You can surround text written by someone else which you'd like to "quote". These tags will be replaced with <blockquote> HTML tags.
[pre]Some pre-formatted text...[/pre]
[code]Some pre-formatted text...[/code]
You can submit pre-formatted text such as script examples. These will be replaced with <pre> </pre> HTML tags. Whitespace and line wrapping will be preserved as you input it. Note that very long lines will not automatically be wrapped and thus these could affect your site layout.