fixed-width font how?

Discussion in 'Feedback' started by botpro, Jan 15, 2016.

  1. botpro

    botpro

    Hi,
    is it possible to put a pre-formatted text (ie. a table in simple text format) into a special block
    of the posting so that the formatting stays intact?
    I tried the CODE block but the formatting gets lost :-(
    Any other method or trick?
     
  2. komorebi

    komorebi

    It seems to work:

    Code:
      2-space-indent
        4-space-indent
            8-space-indent
    
    table1 (using spaces)
    ------------------------
    th1     th2     th3
    ------------------------
    r1c1    r1c2    r1c3
    ------------------------
    r2c1    r2c1    r2c3
    
    Code:
    table2 (using tabs)
    -------------------------
    c0    c1    c2
    -------------------------
    
    Code:
      .------------------------------.
      |            Basket            |
      +----+-----------------+-------+
      | Id | Name            | Price |
      +----+-----------------+-------+
      |  1 | Dummy product 1 |  24.4 |
      |  2 | Dummy product 2 |  21.2 |
      |  3 | Dummy product 3 |  12.3 |
      +----+-----------------+-------+
      |    | Total           |  57.9 |
      '----+-----------------+-------'
    
    Code:
    ........___________________
    ....../ `-___________--_____|] - - - - - - - - ░ ▒▓▓█D
    ...../==o;;;;;;;;______.:/
    .....), -.(_(__) /
    ....// (..) ), --"
    ...//___//
    
    Code:
    XXXXXXXXXXXXXXXXXXFEDERAL RESERVE NOTEXXXXXXXXXXXXXXXXXXX
    XXX  XX       THE UNITED STATES OF AMERICA        XXX  XX
    XXXX XX  -------       ------------               XXXX XX
    XXXX XX              /   jJ===-\    \      C7675  XXXX XX
    XXXXXX     OOO      /   jJ - -  L    \      ---    XXXXXX
    XXXXX     OOOOO     |   JJ  |   X    |       __     XXXXX
    XXX    3   OOO      |   JJ ---  X    |      OOOO    3 XXX
    XXX                 |   J|\    /|    |     OOOOOO     XXX
    XXX     C36799887   |   /  |  |  \   |      OOOO      XXX
    XXX                 |  |          |  |       --       XXX
    XXX      -------    \ /            \ /                XXX
    X  XX                \ ____________ /               X  XX
    XX XXX 3_________        --------  ___   _______ 3 XXX XX
    XX XXX            ___   ONE DOLLAR  i              XXX XX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    


    Code:
    +---------------------------+
    | ///////////////////////// |
    +---------------------------+
    | [              1,264.45 ] |
    +---------------------------+
    |                           |
    |                           |
    | [sto] [rcl] [<--] [AC/ON] |
    |                           |
    | [ ( ] [ ) ] [sqr] [  /  ] |
    |                           |
    | [ 7 ] [ 8 ] [ 9 ] [  *  ] |
    |                           |
    | [ 4 ] [ 5 ] [ 6 ] [  -  ] |
    |                           |
    | [ 1 ] [ 2 ] [ 3 ] [  +  ] |
    |                           |
    | [ 0 ] [ . ] [+/-] [  =  ] |
    |                           |
    +---------------------------+
    
    Code:
                 .-""-._
                / ___/  \         _&_
          _.--""|/    `\|        // \\
        .'      ( ^/ ^  )'.     / / \ \
       /         | _   |   \   // / \ \\
       |        _\____/    |  /_/_/_\_\_\
       |      .' \____/-._ |     .-"-.
       |     /            `;    /#    \
       |    /  /     _|_.---\   |     |
       |.-.;   :--.-(_/.____/.-""\___/"-.
       /    \ / ~~/   /\   \{"=.______.="}
      /--. ; /___/_~~/ ; .--\"=...__...="}
    /    \-/  `\______|/    \-.______..-;
    |    /`|   |       \    |   ||||   ||
    |   /_ |   |_______/    |   ||||   ||
    |   \_/|   |-------'    |--'||'--._||
    |      |   |            |   ||     |>
    |______|   |____________|._ || _..-;|
    |      [___]            |  `||()   ||
    |______ |\/|____________|jgs||     ()
      (__)   \__/        (__)    ()
    
     
    Last edited: Jan 16, 2016
  3. botpro

    botpro

    cool! that's exactly what I need.
    Funny, last time I tried the CODE block it didn't work, as said. Will try it again.
    Thanks for the wonderful examples.
     
  4. botpro

    botpro

    testing myself...
    Code:
    table1 (using spaces)
    ------------------------
    th1 th2 th3
    ------------------------
    r1c1 r1c2 r1c3
    ------------------------
    r2c1 r2c1 r2c3
    
    

    Hmm. why is it not working when I do it???
     
  5. botpro

    botpro

    Code:
    table1 (using spaces)
    ------------------------
    th1     th2     th3
    ------------------------
    r1c1    r1c2    r1c3
    ------------------------
    r2c1    r2c1    r2c3
    
    Ok, now it works. One has to do it via the 6th icon (table/code) from right on top of the editor...
    When editing a posting it is the 5th icon from right.
     
    Last edited: Jan 17, 2016
    komorebi likes this.