Temporary Forum Oddities
#68
(06-22-2023, 02:37 PM)RhoSigma Wrote:
(06-22-2023, 01:05 PM)TerryRitchie Wrote: Spacing is not being preserved correctly when posting code using any of the code tags. If you look at the code I just posted here:

https://staging.qb64phoenix.com/showthre...4#pid17014

You can see my REM statements don't line up. They do in my original code however.

Hi Terry, indeed this seems to happen with the [ q b ] code tag and as I noticed somtimes it even get worse after editing/updating a post containing such codeboxes, but couldn't find out a cause for that to give @grymmjack a hint where to look for a fix.

However, you know and used already the IDE code export facility in your tutorial. Since v3.8.0 you can also export into a [ q b = e x p o r t ] forum codebox which preserves all spacing and links keywords to the Wiki pages as usual. The only "disadvantage" is that this type of codebox does not have line numbers.

Ah good an example of qb = export to test!
Code: (Select All)

_Title "test my 3 for 1 function" ' b+ 2023-06-22
For i = 1 To 12
    Print FillNumberStr$(i, "0", 1234), FillNumberStr$(i, " ", 1234), FillNumberStr$(i, "_", 1234)
Next
Print "Result make sure places is greater or equal to longest number to display"
Print "In the 1234 example that would be 4 digits for places"

Function TS$ (nn) '                                        this comment started on column 60
    TS$ = Right$("0000" + LTrim$(Str$(nn)), 4)
End Function
Function TS1$ (nn1) '                                      this comment started on column 60
    TS1$ = Right$("00" + LTrim$(Str$(nn1)), 2)
End Function
Function TS2$ (nn2) '                                      this comment started on column 60
    TS2$ = Right$("000" + LTrim$(Str$(nn2)), 3)
End Function

'  replace above Functions with a generic string filler 2023-06-22
Function FillNumberStr$ (places As Integer, char$, number As Long)
    '                                                      make sure places is >= to longest (in digits)
    '                                                      number to display, char$ might work oddly
    '                                                      with more than 1 alphanumeric.
    FillNumberStr$ = Right$(String$(places, char$) + _Trim$(Str$(number)), places)
End Function

Looks like that worked, all my comments line up on column 60.
b = b + ...
Reply


Messages In This Thread
Temporary Forum Oddities - by admin - 06-04-2023, 05:04 AM
RE: Temporary Forum Oddities - by grymmjack - 06-04-2023, 05:21 AM
RE: Temporary Forum Oddities - by TerryRitchie - 06-04-2023, 02:19 PM
RE: Temporary Forum Oddities - by bplus - 06-04-2023, 03:23 PM
RE: Temporary Forum Oddities - by bplus - 06-04-2023, 03:56 PM
RE: Temporary Forum Oddities - by bplus - 06-04-2023, 04:05 PM
RE: Temporary Forum Oddities - by grymmjack - 06-04-2023, 04:31 PM
RE: Temporary Forum Oddities - by SMcNeill - 06-04-2023, 05:15 PM
RE: Temporary Forum Oddities - by bplus - 06-04-2023, 09:55 PM
RE: Temporary Forum Oddities - by bplus - 06-04-2023, 10:27 PM
RE: Temporary Forum Oddities - by grymmjack - 06-05-2023, 12:22 AM
RE: Temporary Forum Oddities - by bplus - 06-05-2023, 04:48 PM
RE: Temporary Forum Oddities - by mnrvovrfc - 06-05-2023, 08:28 PM
RE: Temporary Forum Oddities - by bplus - 06-05-2023, 09:06 PM
RE: Temporary Forum Oddities - by mnrvovrfc - 06-06-2023, 12:00 AM
RE: Temporary Forum Oddities - by SMcNeill - 06-06-2023, 12:10 AM
RE: Temporary Forum Oddities - by SMcNeill - 06-05-2023, 09:10 PM
RE: Temporary Forum Oddities - by grymmjack - 06-06-2023, 12:03 AM
RE: Temporary Forum Oddities - by TerryRitchie - 06-06-2023, 02:07 AM
RE: Temporary Forum Oddities - by grymmjack - 06-06-2023, 12:59 PM
RE: Temporary Forum Oddities - by bplus - 06-06-2023, 12:44 AM
RE: Temporary Forum Oddities - by SMcNeill - 06-06-2023, 05:07 PM
RE: Temporary Forum Oddities - by grymmjack - 06-08-2023, 10:08 PM
RE: Temporary Forum Oddities - by grymmjack - 06-08-2023, 10:06 PM
RE: Temporary Forum Oddities - by bplus - 06-09-2023, 01:11 PM
RE: Temporary Forum Oddities - by SMcNeill - 06-09-2023, 01:40 PM
RE: Temporary Forum Oddities - by bplus - 06-09-2023, 04:33 PM
RE: Temporary Forum Oddities - by TerryRitchie - 06-09-2023, 05:01 PM
RE: Temporary Forum Oddities - by TerryRitchie - 06-10-2023, 06:39 PM
RE: Temporary Forum Oddities - by SMcNeill - 06-10-2023, 06:49 PM
RE: Temporary Forum Oddities - by TerryRitchie - 06-10-2023, 07:02 PM
RE: Temporary Forum Oddities - by SMcNeill - 06-10-2023, 06:57 PM
RE: Temporary Forum Oddities - by SMcNeill - 06-10-2023, 07:14 PM
RE: Temporary Forum Oddities - by grymmjack - 06-10-2023, 07:43 PM
RE: Temporary Forum Oddities - by grymmjack - 06-10-2023, 08:23 PM
RE: Temporary Forum Oddities - by grymmjack - 06-10-2023, 08:25 PM
RE: Temporary Forum Oddities - by grymmjack - 06-10-2023, 08:26 PM
RE: Temporary Forum Oddities - by SMcNeill - 06-10-2023, 08:45 PM
RE: Temporary Forum Oddities - by bplus - 06-10-2023, 09:22 PM
RE: Temporary Forum Oddities - by SMcNeill - 06-10-2023, 09:30 PM
RE: Temporary Forum Oddities - by bplus - 06-10-2023, 09:32 PM
RE: Temporary Forum Oddities - by bplus - 06-10-2023, 09:53 PM
RE: Temporary Forum Oddities - by mnrvovrfc - 06-10-2023, 10:29 PM
RE: Temporary Forum Oddities - by Kernelpanic - 06-11-2023, 11:36 AM
RE: Temporary Forum Oddities - by SMcNeill - 06-11-2023, 11:41 AM
RE: Temporary Forum Oddities - by mnrvovrfc - 06-11-2023, 04:54 PM
RE: Temporary Forum Oddities - by grymmjack - 06-17-2023, 01:46 PM
RE: Temporary Forum Oddities - by mnrvovrfc - 06-23-2023, 01:03 AM
RE: Temporary Forum Oddities - by grymmjack - 06-11-2023, 02:40 PM
RE: Temporary Forum Oddities - by grymmjack - 06-11-2023, 02:51 PM
RE: Temporary Forum Oddities - by bplus - 06-11-2023, 03:11 PM
RE: Temporary Forum Oddities - by grymmjack - 06-11-2023, 03:29 PM
RE: Temporary Forum Oddities - by grymmjack - 06-11-2023, 03:26 PM
RE: Temporary Forum Oddities - by bplus - 06-11-2023, 03:26 PM
RE: Temporary Forum Oddities - by grymmjack - 06-11-2023, 03:49 PM
RE: Temporary Forum Oddities - by bplus - 06-11-2023, 03:40 PM
RE: Temporary Forum Oddities - by bplus - 06-11-2023, 04:40 PM
RE: Temporary Forum Oddities - by Kernelpanic - 06-11-2023, 04:57 PM
RE: Temporary Forum Oddities - by grymmjack - 06-12-2023, 12:35 AM
RE: Temporary Forum Oddities - by grymmjack - 06-13-2023, 12:24 PM
RE: Temporary Forum Oddities - by SMcNeill - 06-13-2023, 01:09 PM
RE: Temporary Forum Oddities - by bplus - 06-13-2023, 03:33 PM
RE: Temporary Forum Oddities - by Kernelpanic - 06-13-2023, 08:04 PM
RE: Temporary Forum Oddities - by SMcNeill - 06-13-2023, 10:03 PM
RE: Temporary Forum Oddities - by grymmjack - 06-17-2023, 01:54 PM
RE: Temporary Forum Oddities - by TerryRitchie - 06-22-2023, 01:05 PM
RE: Temporary Forum Oddities - by bplus - 06-22-2023, 02:12 PM
RE: Temporary Forum Oddities - by TerryRitchie - 06-22-2023, 03:23 PM
RE: Temporary Forum Oddities - by RhoSigma - 06-22-2023, 02:37 PM
RE: Temporary Forum Oddities - by bplus - 06-22-2023, 03:18 PM
RE: Temporary Forum Oddities - by TerryRitchie - 06-22-2023, 03:25 PM
RE: Temporary Forum Oddities - by RhoSigma - 06-22-2023, 04:05 PM
RE: Temporary Forum Oddities - by TerryRitchie - 06-22-2023, 03:37 PM
RE: Temporary Forum Oddities - by bplus - 06-22-2023, 03:39 PM
RE: Temporary Forum Oddities - by TerryRitchie - 06-22-2023, 03:41 PM
RE: Temporary Forum Oddities - by RhoSigma - 06-22-2023, 05:01 PM
RE: Temporary Forum Oddities - by TerryRitchie - 06-22-2023, 11:39 PM
RE: Temporary Forum Oddities - by RhoSigma - 06-23-2023, 06:55 AM
RE: Temporary Forum Oddities - by TerryRitchie - 06-23-2023, 01:41 PM
RE: Temporary Forum Oddities - by RhoSigma - 06-23-2023, 04:13 PM
RE: Temporary Forum Oddities - by bplus - 06-22-2023, 03:44 PM
RE: Temporary Forum Oddities - by TerryRitchie - 06-22-2023, 03:49 PM
RE: Temporary Forum Oddities - by bplus - 06-22-2023, 05:40 PM
RE: Temporary Forum Oddities - by grymmjack - 06-24-2023, 02:53 PM
RE: Temporary Forum Oddities - by bplus - 06-24-2023, 03:17 PM
RE: Temporary Forum Oddities - by RhoSigma - 06-24-2023, 07:34 PM
RE: Temporary Forum Oddities - by bplus - 06-24-2023, 09:29 PM
RE: Temporary Forum Oddities - by RhoSigma - 06-24-2023, 10:02 PM
RE: Temporary Forum Oddities - by TerryRitchie - 06-24-2023, 04:45 PM
RE: Temporary Forum Oddities - by RhoSigma - 06-24-2023, 07:32 PM
RE: Temporary Forum Oddities - by bplus - 06-25-2023, 01:29 AM
RE: Temporary Forum Oddities - by RhoSigma - 06-25-2023, 07:35 AM
RE: Temporary Forum Oddities - by mnrvovrfc - 06-25-2023, 02:42 AM
RE: Temporary Forum Oddities - by RhoSigma - 06-25-2023, 07:44 AM



Users browsing this thread: 45 Guest(s)