Formatting Guide

Formatting Guide
0

#1

How do I format posts?

Safari Zone supports two methods of post formatting - Markdown and BBCode. Markdown is more convenient for simple formatting but less versatile, whereas BBCode is for advanced users.


Markdown

Text Formatting

Bold Text
**TEXT-HERE**

Italicized Text
*TEXT-HERE*

Strikethrough Text
~~TEXT-HERE~~

Blockquote

> TEXT-HERE


Headings

H1 Level Heading

# HEADING-TEXT-HERE

H2 Level Heading

## HEADING-TEXT-HERE

H3 Level Heading

### HEADING-TEXT-HERE


Embeds

Link
[TEXT-HERE](URL-HERE)

Image
coolduck
![ALT-TEXT-HERE](URL-HERE)

Image with custom dimensions
coolduck
![ALT-TEXT-HERE|WIDTHxHEIGHT](URL-HERE)


BBCode

Text Formatting

Bold Text
[b]TEXT-HERE[/b]

Italicized Text
[i]TEXT-HERE[/i]

Strikethrough Text
[s]TEXT-HERE[/s]

Underlined Text
[u]TEXT-HERE[/u]

Resized Text
[size=TEXT-SIZE-HERE]TEXT-HERE[/size]

Custom Font Text
[font=FONT-NAME-HERE]TEXT-HERE[/font]

Colored Text
[color=COLOR-NAME-OR-HEX-HERE]COLORED-TEXT-HERE[/color]

Background Colored Text
[bgcolor=COLOR-NAME-OR-HEX-HERE]BACKGROUND-COLORED-TEXT-HERE[/bgcolor]


Embeds

Link
[url=URL-HERE]TEXT-HERE[/url]

Code Blocks

module MessageParsingHelper
  def embed(data, message = nil)
    data[:color] ||= @event.server.bot_color
    data[:image] ||= { url: data[:image_url] }
    @event.channel.send_embed(message, data)
  end
  #@TODO fill in the rest of this!
end

[code=LANGUAGE-HERE]CODE-HERE[/code]

Quotes

[quote=USERNAME-HERE]CONTENT-HERE[/quote]


Positioning

Centered Text

[center]TEXT-HERE[/center]

Right-aligned Text

[right]TEXT-HERE[/right]


CSS

Div

Div

[div="CSS-HERE"]CONTENT-HERE[/div]

Span (Inline Div)
Span
[span="CSS-HERE"]CONTENT-HERE[/span]

Class

Class

[class="CLASS-NAME-HERE"]CONTENT-HERE[/class]

Inline Class
Inline Class
[iclass="CLASS-NAME-HERE"]CONTENT-HERE[/iclass]


The End?

Hope this helps! If you have any questions or suggestions for additional BBCode features post them below!