Tabs in script caption

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Tabs in script caption

Post by PeterH »

I see strange effects if I use tab-characters in script-caption or -ID. The ID isn't recognized, if there's a tab in front of it's ':', and the following Menu will show strange characters for the Tab. (But a Tab in front of :: seems to be no problem...)

I think the tab should be interpreted as at least one space? Then following would be correct:
(I will use > to represent Tab-character in the sample)

Test3>L5>::input $1, Enter Text, default
>>::msg text = $1

The Tab having a problem seems to be the first one, directly in front of :

This would be shown 'perfectly formatted' in editor. (And I like this aligned view!)

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Tabs in script caption

Post by admin »

Yep, thanks. Fixed.

PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Post by PeterH »

Verified: very fine!

A reason, why you substitute 2 space chars for a tab?
(But I don't think it matters anyway...)

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

PeterH wrote:A reason, why you substitute 2 space chars for a tab?
(But I don't think it matters anyway...)
My experience is that tabs normally cause a 4 char indent as typical/minimum, and 8 chars is 2nd most common...I can't recall any times where it's only 2 chars.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Post by PeterH »

j_c_hallgren wrote:My experience is that tabs normally cause a 4 char indent as typical/minimum, and 8 chars is 2nd most common...I can't recall any times where it's only 2 chars.
In edit tab expands to 1-7 spaces, as is neccessary for alignment. There can be other values for other programs - so XY will not be able to do this 1:1.
The problem was the function: tab followed by : wasn't recognized. So I had expected that tab would (for function) be replaced by just one space.
But as I said: it really doesn't matter.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

PeterH wrote:Verified: very fine!

A reason, why you substitute 2 space chars for a tab?
(But I don't think it matters anyway...)
Because I use 1 tab = 2 spaces everywhere I can. :)

Pagat
Posts: 310
Joined: 09 Oct 2007 21:23
Location: Austria

Post by Pagat »

admin wrote:Because I use 1 tab = 2 spaces everywhere I can. :)
Me too! So there are already two persons who use 1 tab = 2 spaces :)
OS: Windows 11, 64-bit, Version 25H2, Build 26200.8655 (10.0), AMD64
Monitor: 1/2 (Primary) Primary Screen DPI: 96 (100%)

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

Pagat wrote:
admin wrote:Because I use 1 tab = 2 spaces everywhere I can. :)
Me too! So there are already two persons who use 1 tab = 2 spaces :)
:) But of course, PeterH is right: in this context it does not matter at all. As long as you don't place tabs in the middle of your script captions, you won't note any difference.

PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Post by PeterH »

admin wrote:Because I use 1 tab = 2 spaces everywhere I can. :)
The best reason (and the best answer) I can think of :D :roll:

Post Reply