You learn something new every day! - Gideros Forum

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

You learn something new every day!

Maintainer
I just found out today (thanks @hgy29) that you can output HTML to the output panel console window!!!

I've added a couple of examples to the new documentation that show coloured text and a table.

http://wiki.giderosmobile.com/index.php/Gideros_Studio_IDE#Output_Panel
+1 -1 (+4 / -0 ) Share on Facebook

• Member
I told ya, there're many hidden gems in Gideros we're yet to discover

Likes: SinisterSoft

> Newcomers roadmap: from where to start learning Gideros
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)﻿
+1 -1 (+1 / -0 ) Share on Facebook
• Member
Apollo14 said:

I told ya, there're many hidden gems in Gideros we're yet to discover

Likes: antix

+1 -1 (+1 / -0 ) Share on Facebook
• Maintainer
@oleg Hopefully not for long.

Great work at the translations so far Oleg. If more people help like you have been doing then things should get much better for non-native English speakers.
• Maintainer
I've already made my Sudoku, but knowing I could output a table to the console would have been handy when making the algorithms for generating new puzzles.
• Member
edited September 2018
I tend to use rPrint to print tables to the console.
 function rPrint(s, l, i) -- recursive Print (structure, limit, indent) l = (l) or 100; i = i or ""; -- default item limit, indent string if (l<1) then print "ERROR: Item limit reached."; return l-1 end; local ts = type(s); if (ts ~= "table") then print (i,ts,s); return l-1 end print (i,ts); -- print "table" for k,v in pairs(s) do -- print "[KEY] VALUE" l = rPrint(v, l, i.."\t["..tostring(k).."]"); if (l < 0) then break end end return l end
But I'm guessing HTML helps in some way?

My Gideros games: www.totebo.com
• Member
in zerobranestudio the 'watch variable' feature can list tables in a readable way too.
• Member

@oleg Hopefully not for long.

Great work at the translations so far Oleg. If more people help like you have been doing then things should get much better for non-native English speakers.

http://wiki.giderosmobile.com/index.php/Special:WithoutInterwiki
• Maintainer
edited September 2018
@oleg What does that link do? It says the pages don't have language links, but the ones I checked in the list do.

@totebo The html table can look like a proper table, with lines, headers, etc...

The table example was just to show that you could output full html, not just change the colour of text. It's nothing to do with Lua tables, I mean HTML tables.

https://html.com/tables/