Skip to content

Instantly share code, notes, and snippets.

@robbie-cao
Created May 17, 2016 03:20
Show Gist options
  • Save robbie-cao/f939b7aa765cfdd5b65bab3e7e6d1b48 to your computer and use it in GitHub Desktop.
Save robbie-cao/f939b7aa765cfdd5b65bab3e7e6d1b48 to your computer and use it in GitHub Desktop.
layout title date categories
post
Textile Syntax
2016-05-10 13:08:53 +0800
markup

Heading

h1. level 1 heading
h2=. level 2 heading
h3>. level 3 heading
h4<{color:red}. level 4 heading

level 1 heading

level 2 heading

level 3 heading

level 4 heading


Quote

bq. this is blockquoted text
fn1. footnote 1
fn2. footnote 2
This text refernces a footnote[1]

this is blockquoted text

1 footnote 1

2 footnote 2

This text refernces a footnote1


List

# numbered list item 1
# numbered list item 2
* bulleted list first item
* bulleted list second item
  1. numbered list item 1
  2. numbered list item 2
  • bulleted list first item
  • bulleted list second item

Phrase Modifiers

_emphasis_
*strong*
??citation??
-deleted text-
+inserted text+
^superscript^
~subscript~
%span%

emphasis
strong
citation
deleted text
inserted text
superscript
subscript
span


Paragraph

p(class). paragraph with a classname
p(#id). paragraph with an ID
p{color:red}. paragrah with a CSS style
p[fr]. paragraphe en français
p<. right aligned paragraph
p>. left aligned paragraph
p=. centered aligned paragraph
p<>. justified text paragraph

paragraph with a classname

paragraph with an ID

paragrah with a CSS style

paragraphe en français

right aligned paragraph

left aligned paragraph

centered aligned paragraph

justified text paragraph


Table

| _. head | _. table | _. row |
| a | table | row 1 |
| a | table | row 2 |

head table row
a table row 1
a table row 2

Blocked Code

bc. 10 PRINT "I ROCK AT BASIC!"
20 GOTO 10

10 PRINT "I ROCK AT BASIC!"
20 GOTO 10

p. A line with @printf@

A line with printf


Link

"Link to Textile on GitHub":https://github.com/textile
!https://avatars2.githubusercontent.com/u/362604?v=3&s=200!


Link to Textile on GitHub


Abbreviation

ABBR(Abbreviation)

ABBR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment