?
Path : /home/admin/public_html/old/media/editors/codemirror/mode/textile/ |
Current File : /home/admin/public_html/old/media/editors/codemirror/mode/textile/test.min.js |
!function(){function a(a){test.mode(a,e,Array.prototype.slice.call(arguments,1))}var e=CodeMirror.getMode({tabSize:4},"textile");a("simpleParagraphs","Some text.","","Some more text."),a("em","foo [em _bar_]"),a("emBoogus","code_mirror"),a("strong","foo [strong *bar*]"),a("strongBogus","3 * 3 = 9"),a("italic","foo [em __bar__]"),a("italicBogus","code__mirror"),a("bold","foo [strong **bar**]"),a("boldBogus","3 ** 3 = 27"),a("simpleLink",'[link "CodeMirror":http://codemirror.net]'),a("referenceLink",'[link "CodeMirror":code_mirror]',"Normal Text.","[link [[code_mirror]]http://codemirror.net]"),a("footCite","foo bar[qualifier [[1]]]"),a("footCiteBogus","foo bar[[1a2]]"),a("special-characters","Registered [tag (r)], Trademark [tag (tm)], and Copyright [tag (c)] 2008"),a("cite","A book is [keyword ??The Count of Monte Cristo??] by Dumas."),a("additionAndDeletion","The news networks declared [negative -Al Gore-] [positive +George W. Bush+] the winner in Florida."),a("subAndSup","f(x, n) = log [builtin ~4~] x [builtin ^n^]"),a("spanAndCode","A [quote %span element%] and [atom @code element@]"),a("spanBogus","Percentage 25% is not a span."),a("citeBogus","Question? is not a citation."),a("codeBogus","user@example.com"),a("subBogus","~username"),a("supBogus","foo ^ bar"),a("deletionBogus","3 - 3 = 0"),a("additionBogus","3 + 3 = 6"),a("image","An image: [string !http://www.example.com/image.png!]"),a("imageWithAltText","An image: [string !http://www.example.com/image.png (Alt Text)!]"),a("imageWithUrl","An image: [string !http://www.example.com/image.png!:http://www.example.com/]"),a("h1","[header&header-1 h1. foo]"),a("h2","[header&header-2 h2. foo]"),a("h3","[header&header-3 h3. foo]"),a("h4","[header&header-4 h4. foo]"),a("h5","[header&header-5 h5. foo]"),a("h6","[header&header-6 h6. foo]"),a("h7Bogus","h7. foo"),a("multipleHeaders","[header&header-1 h1. Heading 1]","","Some text.","","[header&header-2 h2. Heading 2]","","More text."),a("h1inline","[header&header-1 h1. foo ][header&header-1&em _bar_][header&header-1 baz]"),a("ul","foo","bar","","[variable-2 * foo]","[variable-2 * bar]"),a("ulNoBlank","foo","bar","[variable-2 * foo]","[variable-2 * bar]"),a("ol","foo","bar","","[variable-2 # foo]","[variable-2 # bar]"),a("olNoBlank","foo","bar","[variable-2 # foo]","[variable-2 # bar]"),a("ulFormatting","[variable-2 * ][variable-2&em _foo_][variable-2 bar]","[variable-2 * ][variable-2&strong *][variable-2&em&strong _foo_][variable-2&strong *][variable-2 bar]","[variable-2 * ][variable-2&strong *foo*][variable-2 bar]"),a("olFormatting","[variable-2 # ][variable-2&em _foo_][variable-2 bar]","[variable-2 # ][variable-2&strong *][variable-2&em&strong _foo_][variable-2&strong *][variable-2 bar]","[variable-2 # ][variable-2&strong *foo*][variable-2 bar]"),a("ulNested","[variable-2 * foo]","[variable-3 ** bar]","[keyword *** bar]","[variable-2 **** bar]","[variable-3 ** bar]"),a("olNested","[variable-2 # foo]","[variable-3 ## bar]","[keyword ### bar]","[variable-2 #### bar]","[variable-3 ## bar]"),a("ulNestedWithOl","[variable-2 * foo]","[variable-3 ## bar]","[keyword *** bar]","[variable-2 #### bar]","[variable-3 ** bar]"),a("olNestedWithUl","[variable-2 # foo]","[variable-3 ** bar]","[keyword ### bar]","[variable-2 **** bar]","[variable-3 ## bar]"),a("definitionList","[number - coffee := Hot ][number&em _and_][number black]","","Normal text."),a("definitionListSpan","[number - coffee :=]","","[number Hot ][number&em _and_][number black =:]","","Normal text."),a("boo","[number - dog := woof woof]","[number - cat := meow meow]","[number - whale :=]","[number Whale noises.]","","[number Also, ][number&em _splashing_][number . =:]"),a("divWithAttribute","[punctuation div][punctuation&attribute (#my-id)][punctuation . foo bar]"),a("divWithAttributeAnd2emRightPadding","[punctuation div][punctuation&attribute (#my-id)((][punctuation . foo bar]"),a("divWithClassAndId","[punctuation div][punctuation&attribute (my-class#my-id)][punctuation . foo bar]"),a("paragraphWithCss","p[attribute {color:red;}]. foo bar"),a("paragraphNestedStyles","p. [strong *foo ][strong&em _bar_][strong *]"),a("paragraphWithLanguage","p[attribute [[fr]]]. Parlez-vous français?"),a("paragraphLeftAlign","p[attribute <]. Left"),a("paragraphRightAlign","p[attribute >]. Right"),a("paragraphRightAlign","p[attribute =]. Center"),a("paragraphJustified","p[attribute <>]. Justified"),a("paragraphWithLeftIndent1em","p[attribute (]. Left"),a("paragraphWithRightIndent1em","p[attribute )]. Right"),a("paragraphWithLeftIndent2em","p[attribute ((]. Left"),a("paragraphWithRightIndent2em","p[attribute ))]. Right"),a("paragraphWithLeftIndent3emRightIndent2em","p[attribute ((())]. Right"),a("divFormatting","[punctuation div. ][punctuation&strong *foo ][punctuation&strong&em _bar_][punctuation&strong *]"),a("phraseModifierAttributes","p[attribute (my-class)]. This is a paragraph that has a class and this [em _][em&attribute (#special-phrase)][em emphasized phrase_] has an id."),a("linkWithClass",'[link "(my-class). This is a link with class":http://redcloth.org]'),a("paragraphLayouts","p. This is one paragraph.","","p. This is another."),a("div","[punctuation div. foo bar]"),a("pre","[operator pre. Text]"),a("bq.","[bracket bq. foo bar]","","Normal text."),a("footnote","[variable fn123. foo ][variable&strong *bar*]"),a("bq..ThenParagraph","[bracket bq.. foo bar]","","[bracket More quote.]","p. Normal Text"),a("bq..ThenH1","[bracket bq.. foo bar]","","[bracket More quote.]","[header&header-1 h1. Header Text]"),a("bc..ThenParagraph","[atom bc.. # Some ruby code]","[atom obj = {foo: :bar}]","[atom puts obj]","",'[atom obj[[:love]] = "*love*"]',"[atom puts obj.love.upcase]","","p. Normal text."),a("fn1..ThenParagraph","[variable fn1.. foo bar]","","[variable More.]","p. Normal Text"),a("pre..ThenParagraph","[operator pre.. foo bar]","","[operator More.]","p. Normal Text"),a("table","[variable-3&operator |_. name |_. age|]","[variable-3 |][variable-3&strong *Walter*][variable-3 | 5 |]","[variable-3 |Florence| 6 |]","","p. Normal text."),a("tableWithAttributes","[variable-3&operator |_. name |_. age|]","[variable-3 |][variable-3&attribute /2.][variable-3 Jim |]","[variable-3 |][variable-3&attribute \\2{color: red}.][variable-3 Sam |]"),a("html",'[comment <div id="wrapper">]','[comment <section id="introduction">]',"","[header&header-1 h1. Welcome]","","[variable-2 * Item one]","[variable-2 * Item two]","",'[comment <a href="http://example.com">Example</a>]',"","[comment </section>]","[comment </div>]"),a("inlineHtml",'I can use HTML directly in my [comment <span class="youbetcha">Textile</span>].'),a("notextile","[string-2 notextile. *No* formatting]"),a("notextileInline","Use [string-2 ==*asterisks*==] for [strong *strong*] text."),a("notextileWithPre","[operator pre. *No* formatting]"),a("notextileWithSpanningPre","[operator pre.. *No* formatting]","","[operator *No* formatting]"),a("phrase-in-word","foo_bar_baz"),a("phrase-non-word","[negative -x-] aaa-bbb ccc-ddd [negative -eee-] fff [negative -ggg-]"),a("phrase-lone-dash","foo - bar - baz")}();