Format code
issueid=151 07-07-2008 21:56
Super Moderator
Number of reported issues by Petr Schreiber: 126
Format code

Hi Roberto,

I like a lot the way "Format Code" under Tools/Utilities work, especially how it manages indenting IF / END IF...

Could the indenting be added even for following pairs too? It would make my life easier :)

  • BEGIN CONST / END CONST
  • WITH / END WITH
  • TBGL_NewList / TBGL_EndList
  • TBGL_PushMatrix / TBGL_PopMatrix
  • TBGL_BeginPoly / TBGL_EndPoly



Thanks,
Petr
Issue Details
Issue Number 151
Issue Type Feature
Project thinAir and Visual Designer
Category Unknown
Status Suggested
Priority Unknown
Suggested Version Unknown
Implemented Version (none)
Milestone (none)
Votes for this feature 0
Votes against this feature 0
Assigned Users (none)
Tags (none)




08-07-2008 19:54
thinBasic author
That is a good idea.

Maybe it can even be possible to expand the idea allowing insertion of code blocks using right click with mouse.
So, right click in text area actually shows a popup. This popup can have new menu:
Insert\FOR ... NEXT
Insert\WHILE ... WEND
Insert\BEGIN CONST ... END CONST
...

16-07-2008 09:49
Senior Member
Hi Petr,

could you please try and test the attached ThinAIR executable with a quite complex script that contains BEGIN CONST, WITH, TBGL_NewList, TBGL_PushMatrix and TBGL_BeginPoly and let me know the results? Thanks.

Notice that in the meantime I added in the context menu (right click on script area) one item for insert some predefined code blocks, it's just a draft.

Ciao,
Roberto

16-07-2008 10:01
thinBasic author
Thank you very much Roberto seems working fine.
New RightClick/Insert is perfect.

16-07-2008 10:30
Super Moderator
Very good,

works like a charm here!

Very much appreciated,
Petr

+ Reply