[quote=66772:@Emile Schwarz]Not obvious ? Yes, you are right, but we may find it by pure hazard and not notice it thus some rants from the user (I got it one and I cannot get it anymore) especially if (s)he prints at project load time.
I would never have tried deselect all inputs to test in a conscious way (but perhaps after tons of unfruitful tests).[/quote]
The other is to expand & select everything - but thats much harder
[quote=66770:@Emile Schwarz]Wrong ? It add a space at line end and issue a LF, then print the remainding of the line. It does not care if the space comes inside a word.
[/quote]
Lets just say that I can’t find bug reports about printing - I searched and found 2 but they aren’t these problems
[quote=66770:@Emile Schwarz]Also, when Copy / Paste (Preview 10.8.5 and prior), it often forgot a LF and so two or more lines (PDF) appears in one (TextEdit).
[/quote]
I’m not sure what you mean ?
[quote=66770:@Emile Schwarz]
Q: Is the MenuEditor contents printed / Printable ?
Maybe nothing is print if the MenuBar is the standard one (nothing added to it) ?[/quote]
Not sure what it is you want printed ?
A picture of it ?
I do not have a problem with Xojo not willing to provide documentation exposing Xojo Project format. I rather that they support addins /addon to the IDE and expose APIs to interact with it to determine, the list of projects, project items in each project, and in each project item ability to determine classes, properties, Actions, variables (including source code) etc.
[quote=66877:@Joginder Nahil]I do not have a problem with Xojo not willing to provide documentation exposing Xojo Project format. I rather that they support addins /addon to the IDE and expose APIs to interact with it to determine, the list of projects, project items in each project, and in each project item ability to determine classes, properties, Actions, variables (including source code) etc.
[/quote]
There’s no such api currently
I really like this answer: an honest (as usual) answer.
Select a piece of code with two or more lines,
Paste it in TextEdit (for example)
Look at line endings: there often be what was two lines in a single line.
[quote]Not sure what it is you want printed ?
A picture of it ?[/quote]
Yes. In fact, what can be done is a series of pictures that shows the menus (all menus down). I realize that menu can have sub-menus, so it can be a serie of Picture with one MenuBar item displayed at a time "wil all sub-menus open" or ? You got the idea.
Unfortunately, if there is some dynamically filled menus, the job start to be difficult [For Open Recent you can place sor some meaningfull text in the sub-menu area.
I fooled around that long time ago (10 years ago) by drawing all menus in one picture (and add a save the generated image MenuItem), but I had a “flat” MenuBar, excepted for Fonts, but when we see a Fonts menu, we know what can be found there (and make screen shot of the available Fonts).
I am sorry, but for unknow reasons, I am great at founding bugs (falling into bugs) without really searching them. I do not say what happens when I search bugs (I even found bugs that do not exists ;- ).
I personally think that Xojo will benefit from professional 3rd party plug-ins, add-ins or whatever. Maybe the diehards on this forum see no use for it but as Xojo is releasing the iOS framework this year it will attrack people who have never looked at Xojo and are wondering 'hey, no line numbers, no connected logic structures… Is this a pro tool or what?
I have to print and handover the source to my customers and for 59,-, I won’t think twice.
I do not think Xojo as a skeleton that Third party will populate for us with $.
I think at Xojo like if it is an OS: you can sale very specific (niche march for example) code, but the OS is sold as complete as possible.
And, yes, I will not buy iPhone target, but if iOS compile came inside "Console, Desktop, Web, Pro, I will be happy.
How many technologies are Xojo native and you do not use them (but pay for) ?
On the other hand, if you sold a software for, say, $129 and have to pay (once) a plug-in for $59, I will understand you. It is (probably) worth the price.
The print utility that I am working on is coming along fantastically…
It will support a custom keyword library… with syntax sections that somewhat match the ones in the IDE now, but will then extend that to all the user to redefine, or add their own keywords either in the already existing categories or in up to 9 user defined one.
Each group of syntax keywords will have a Foreground Color (as the IDE does), but will also support BACKGROUND colors and BOLD font if desired (these extensions also apply to the standard syntax groups).
Once I get then indent portion working, I will release a copy on my website for all to play with.
After that other features are in the works (not necessararly in this order)
*control block control lines
*menu printing (it will of course only print what is defined at design time, it cannot “guess” what a runtime version would be)
*picture of window forms (again as they exist at design time)
*list of controls on each form
*table of contents (Norm… computers are fast enough to make two passes at the data )
*Index
*Cover Page
*ultimately an optional analysis to attempt to find possible dead code etc.
*oh yeah, and I am adding a VB.NET like “Task” list while I’m at it
It will be a separate program… and the initial version will require the project be saved in VCP format, as that was by far the easiest to parse in my opinion.
Depending on interest, I may try for XML or Binary format (depending)
For those still interested… here is a sample of what my source code printer can do so far
The colors are a bit obnoxious on purpose… it makes it easier to insure each element is being colored properly.
Right now it defaults to 72dpi, but the final version will support finer print quality based on the printer involved.
ALL the colors are under the control of the user, as well as determining if certain items (line #'s, dividing lines, connect lines etc) appear or not. This test has everything turned on that works as of now…
[quote=67072:@Dave S]For those still interested… here is a sample of what my source code printer can do so far
[/quote]
Looking forward to try it out some day.
You’re very talented Dave
make sure you try the really screwy cases like I mentioned #if target really messes with indentation if you get it wrong
This sort of thing is perfectly legal
#if targetWin32
if true then
#endif
msgbox "hello world"
#if targetWin32
end if
#endif
dim c as integer
select case c
case 0
#if true
case 1
#if true
if true then
#endif
msgbox "yellow world"
#if true
end if
#endif
#endif
case 2
#if targetWin32
if true then
#endif
msgbox "yellow world"
#if targetWin32
end if
#endif
end select
Yeah Norman… but lets just say my printer won’t handle them any “worse” than the Xojo IDE does
Since those require actual compiler information… my approach for now is to simply ignore any start or end blocks contained inside a directives.
Is this the optimal solution? No… but like I said… no “worse” than the IDE just different… and “worse” is a subjective term here… not saying it is “bad”.
However… your above code did expose another bug in my code so far [it lost track of the indents on the directives]
They don’t actually and the new version of the IDE (2014r1) handles them MUCH better than it does now
I’d go so far as to say it now handles them “correctly” - which it didn’t before
Be very interested to see how the “new” IDE handles them…
And FYI… my program does make one other silly assumption… that is that the code does in fact compile correctly…
Which you above test does not…
When I tweaked it so it did compile… my program printed it properly… but still work to do
EDIT :
Here is how my program handles your above situation as of now… Not too bad in my opinion [not that I’m biased you understand]
Personally I do think the ide is more “right” than its ever been (this one actually was one of my long standing bug reports that I worked on over Christmas)
Colorizing includes the “if” and “end if” “end select” etc (ie/ end select is colorized the same as select - and does obey the users preferences)
code inside the #if matches indent levels event though they are not contiguous (see the last if end if beep all inside various #if constructs"
code folding all still works
methods don’t start on line 2 and the “Sub” and “End Sub” lines should not count as “lines” in your code
Colorizing includes the “if” and “end if” “end select” etc (ie/ end select is colorized the same as select - and does obey the users preferences)
*Compiler Directives will actually have there own color schema
code inside the #if matches indent levels event though they are not contiguous (see the last if end if beep all inside various #if constructs"
I believe mine now does this as well (see line 4 and 5 in my example)
code folding all still works
not an issue for me as my output is static
methods don’t start on line 2 and the “Sub” and “End Sub” lines should not count as “lines” in your code
I guess that might be considered up for debate. While the IDE does hide that… they really are documentable statements