sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Posting tables of data in the forum

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 3 Posters 1.5k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dan RathbunD Offline
      Dan Rathbun
      last edited by

      Finally figured out how to post tables, on this forum. Comes in handy for listing arguments and so forth.

      So I thot' I'd share.

      To post tables of data, use the (floatl) tag, and type the table in columns.

      This is a BBcode table:

      [floatl:glq9ab7r]num
      1
      2
      3[/floatl:glq9ab7r][floatl:glq9ab7r]value
      1.2
      8
      'Hi'[/floatl:glq9ab7r][floatl:glq9ab7r]type
      float
      int
      string[/floatl:glq9ab7r][floatl:glq9ab7r]Note:(heading row)
      This is the first row
      And of course the second row
      Followed by the last row[/floatl:glq9ab7r]

      ... is typed like this:

      [floatl][u]num[/u]
      1
      2
      3[/floatl][floatl][u]value[/u]
      1.2
      8
      'Hi'[/floatl][floatl][u]type[/u]
      float
      int
      string[/floatl][floatl][u]Note[/u];(heading row)
      This is the first row
      And of course the second row
      Followed by the last row[/floatl]
      

      If text is follow the table, there must be tablerows+1 linefeeds before the text, so it gets pushed down below the table.

      If you wish monospaced text, wrap the table code in a (ruby) tag. If you wish both monospaced and a certain color, wrap it in a (color) tag first, then wrap in a (ruby) tag.

      A blue monospaced table:

      %(#4000BF)[[floatl:glq9ab7r]num 1 2 3[/floatl:glq9ab7r][floatl:glq9ab7r]value 1.2 8 'Hi'[/floatl:glq9ab7r][floatl:glq9ab7r]type float int string[/floatl:glq9ab7r][floatl:glq9ab7r]Note:(heading row) This is the first row And of course the second row Followed by the last row[/floatl:glq9ab7r]]

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        The forum actually supports real tables, although it is easy to get lost in the tags.

        [table=tablebg table1:3f3ppq8p][thead:3f3ppq8p][tr=:3f3ppq8p][th=2:3f3ppq8p]Oh look Ma, I can do tables too![/th:3f3ppq8p][/tr:3f3ppq8p][/thead:3f3ppq8p][tbody:3f3ppq8p][tr=bg1:3f3ppq8p][td=1,:3f3ppq8p]This is the left cell[/td:3f3ppq8p][td=1,:3f3ppq8p]And this (you've guessed it) is the right cell[/td:3f3ppq8p][/tr:3f3ppq8p][tr=bg2:3f3ppq8p][td=1,:3f3ppq8p]This is row[/td:3f3ppq8p][td=1,:3f3ppq8p]This is the second cell of that row.[/td:3f3ppq8p][/tr:3f3ppq8p][/tbody:3f3ppq8p][/table:3f3ppq8p]

        [table=tablebg table1][thead][tr=][th=2]Oh look Ma, I can do tables too![/th][/tr][/thead][tbody][tr=bg1][td=1,]This is the left cell[/td][td=1,]And this (you've guessed it) is the right cell[/td][/tr][tr=bg2][td=1,]This is row[/td][td=1,]This is the second cell of that row.[/td][/tr][/tbody][/table]
        

        Perhaps a simple forum table generator would make them easier to use.

        Hi

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          Oh - so there are more BBCodes available than those available as buttons? Any list?

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            <span class="syntaxdefault"><br />function hello<br /></span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">  print </span><span class="syntaxstring">"hello world"<br /></span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault"> </span>
            
            
            def hello
              puts "hello world"
            end
            
            

            No Ruby fun - only PHP...

            Thomas Thomassen — SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              @jim said:

              The forum actually supports real tables, although it is easy to get lost in the tags.

              Oh! they do work! I tried [table] ... [/table] tags but they just rendered as text. (I didn't use [thead] or [tbody] tags.)

              @jim said:

              ... Perhaps a simple forum table generator would make them easier to use.

              Yes we don't need fancy tables. I'd envisage a popup window with a title box and a grid of textboxes (the 1st being the header row, so draw a <HR> under it.) Then we just type into the cells, and the applet then writes all the tags and such.

              I don't think we need cell column spanning.

              It might be nice to format columns as left just'd text, or right just'd numbers, or centered. (via a control at the top of the data columns.)

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                We really should have that for SCF.

                Thomas Thomassen — SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  🎉 🎉 🎉

                  Thomas Thomassen — SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • Dan RathbunD Offline
                    Dan Rathbun
                    last edited by

                    @dan rathbun said:

                    Looks like this phpBB MOD is gonna be orhpaned...

                    The author ("UseLess") saw this post, and refuted my assumption, viz:

                    @unknownuser said:

                    http://www.phpbbstyles.co.uk[/url:2e64680u] in [url=http://www.phpbbstyles.co.uk/info/viewtopic.php?f=6&t=39&p=360#p362:2e64680u]Re: [MODDB] phpBB Syntax Highlighter - 1.0.12[/url:2e64680u]":2e64680u]

                    No it's not.

                    It [meaning ver 1.0.14 ] just won't be submitted to phpBB for validation.

                    If enough people test the latest version, there's only been 4 downloads of 1.0.14 and not yet of 1.0.14a and report no major problems then it'll be released. But until I get at least some feedback on how it works in various enviroments then it'll stay at DEV status.

                    It might be time to talk to TBD about this issue.

                    I'm not here much anymore.

                    1 Reply Last reply Reply Quote 0
                    • Dan RathbunD Offline
                      Dan Rathbun
                      last edited by

                      HOLD the PRESSES!

                      Just checked on GeSHi. The bugs have been fixed in version 1.0.8.8

                      The reason I saw the bugs was that UseLess's test forum, is still running GeSHi version 1.0.8.4 with his Syntax Highlighter.

                      This is a cool test page at GeSHi where you can type code into a textarea in any language and see how it looks after lexing.
                      GeSHi Highlighter Demo page

                      I'm not here much anymore.

                      1 Reply Last reply Reply Quote 0
                      • Dan RathbunD Offline
                        Dan Rathbun
                        last edited by

                        @thomthom said:

                        We really should have that for SCF.

                        BAD NEWS... re, phpBB Syntax Highlighter

                        (1) The MOD author answered me, and confirmed that the HTML NCR bug(s) are caused by GeSHi's Ruby lexer. His suggestion of correcting the bugs on SCF before outputting the webpage is not feasible. (Too many bugs involving '#' characters, and other characters replaced by HTML numeric character references, in both single and double quoted strings.)

                        and worse...

                        (2) He wrote in the MOD discussion forum:
                        @unknownuser said:

                        phpBB Syntax Highlighter - 1.0.12](http://www.phpbbstyles.co.uk/info/viewtopic.php?f) at phpBBStyles":3lxjk95m]
                        After having read the changes to the mod validation requirements I have decided not to update this mod.

                        Support will be provided for the last release version which is 1.0.12 but 1.0.14 will not be released and will not be submitted for validation by the phpBB MOD Team.

                        Looks like this phpBB MOD is gonna be orhpaned... 😢

                        I'm not here much anymore.

                        1 Reply Last reply Reply Quote 0
                        • Dan RathbunD Offline
                          Dan Rathbun
                          last edited by

                          @thomthom said:

                          No Ruby fun - only PHP...

                          I posted a Ruby Hilited test example(s) at the phpBBStyles forum, ie: Code Test - Ruby
                          EDIT: corrected URL as topic was moved by phpbbstyles moderator.
                          .. in order to see how well the phpBB Syntax Highlighter MOD works/looks.

                          • Adds a BBCode 'syntax' which allows you to post programs / scripts in upto 132 languages and have the post Syntax Highlighted using GeSHi.General description:
                            http://www.phpbb.com/customise/db/mod/syntax_highlighter
                            More info (install notes, etc.):
                            http://www.phpbb.com/community/viewtopic.php?t=1697035#p10232505
                            Extra info:
                            http://www.phpbbstyles.co.uk/info/viewtopic.php?f=6&t=39&p=83

                          Supported coding Syntaxes: [ emphasis on some by me ]
                          @unknownuser said:

                          Syntax Highlighter - 1.0.8](http://www.phpbbstyles.co.uk/info/viewtopic.php?f)":sk3p0i6l]
                          now supports 138 languages.
                          Supported Syntaxes: abap, actionscript, actionscript3, ada, apache, applescript, apt_sources, asm, asp, autoit, avisynth, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cfdg, cfm, cil, cmake, cobol, cpp, cpp-qt, csharp, css, d, dcs, delphi, diff, div, dos, dot, eiffel, email, erlang, fo, fortran, freebasic, genero, gettext, glsl, gml, gnuplot, groovy, haskell, hq9plus, html4strict, idl, ini, inno, intercal, io, java, java5, javascript, kixtart, klonec, klonecpp, latex, lisp, locobasic, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, make, matlab, mirc, modula3, mpasm, mxml, mysql, nsis, oberon2, objc, ocaml, ocaml-brief, oobas, oracle11, oracle8, pascal, per, perl, php, php-brief, phpbb, pic16, pixelbender, plsql, povray, powershell, progress, prolog, properties, providex, python, qbasic, rails, rebol, reg, robots, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, tcl, teraterm, text, thinbasic, tsql, typoscript, vb, vbnet, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xhtml, xml, xorg_conf, xpp, z80

                          Using GeSHi version: 1.0.8.4

                          I'm not here much anymore.

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement