PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/test/marks/inline.t2t

http://txt2tags.googlecode.com/
Unknown | 48 lines | 39 code | 9 blank | 0 comment | 0 complexity | c4d1de9d592bdf8ebf90fb6717804ca6 MD5 | raw file
 1
 2%!includeconf: test.conf
 3BODYINIT
 4
 5%%% Syntax: Marks are greedy and must be "glued" with contents
 6%% GLUED: The contents must be glued with the marks, no spaces
 7%% between them. Right after the opening mark there must be a
 8%% non-blank character, as well as right before the closing mark.
 9%% 
10%% GREEDY: If the contents boundary character is the same as
11%% the mark character, it is considered contents, not mark.
12%% So ""****bold****"" turns to ""<B>**bold**</B>"" in HTML.
13
14i) **b**         //i//         __u__         --s--         ``m``         ""r""        ''t''
15i) **bo**        //it//        __un__        --st--        ``mo``        ""ra""       ''tg''
16i) **bold**      //ital//      __undr__      --strk--      ``mono``      ""raw""      ''tggd''
17i) **bo ld**     //it al//     __un dr__     --st rk--     ``mo no``     ""r aw""     ''tg gd''
18i) **bo * ld**   //it / al//   __un _ dr__   --st - rk--   ``mo ` no``   ""r " aw""   ''tg ' gd''
19i) **bo **ld**   //it //al//   __un __dr__   --st --rk--   ``mo ``no``   ""r ""aw""   ''tg ''gd''
20i) **bo ** ld**  //it // al//  __un __ dr__  --st -- rk--  ``mo `` no``  ""r "" aw""  ''tg '' gd''
21i) ****bold****  ////ital////  ____undr____  ----strk----  ````mono````  """"raw""""  ''''tggd''''
22i) ***bold***    ///ital///    ___undr___    ---strk---    ```mono```    """raw"""    '''tggd'''
23
24%%% Syntax: Repetition is greedy
25%% When the mark character is repeated many times,
26%% the contents are expanded to the largest possible.
27%% Thats why they are greedy, the outer marks are
28%% the ones used.
29
30i)  *****         /////         _____         -----         `````        """""        '''''
31i)  ******        //////        ______        ------        ``````       """"""       ''''''
32i)  *******       ///////       _______       -------       ```````      """""""      '''''''
33i)  ********      ////////      ________      --------      ````````     """"""""     ''''''''
34i)  *********     /////////     _________     ---------     `````````    """""""""    '''''''''
35i)  **********    //////////    __________    ----------    ``````````   """"""""""   ''''''''''
36
37%%% Invalid: No contents
38
39i)     ****          ////          ____          ----          ````         """"         ''''
40i)     ** **         // //         __ __         -- --         `` ``        "" ""        '' ''
41
42%%% Invalid: Contents not "glued" with marks
43%% Spaces between the marks and the contents in any side
44%% invalidate the mark.
45
46i)  ** bold**     // ital//     __ undr__     -- strk--     `` mono``    "" raw""     '' tggd''
47i)  **bold **     //ital //     __undr __     --strk --     ``mono ``    ""raw ""     ''tggd ''
48i)  ** bold **    // ital //    __ undr __    -- strk --    `` mono ``   "" raw ""    '' tggd ''