# Testing code tags

**URL:** <https://boards.straightdope.com/t/testing-code-tags/796468>\
**Category:** About This Message Board\
**Created:** [September 16, 2017, 3:04pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468 "2017-09-16T15:04:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnny\_L.A](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johnny_l.a/32/1084_2.png) [@Johnny\_L.A](https://boards.straightdope.com/u/Johnny_L.A)\
**Post date:** [September 16, 2017, 3:04pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/1 "2017-09-16T15:04:26Z")

</div>

Testing to see if the code tags work. I’m putting this into the tags:

FILE FILEA V(1000) SEQUENTIAL +  
SYSNAME ‘H:\EZ\_Text\_Files\999999\_Input.txt’  
AR-NUM 6 12 A  
NAME 18 40 A  
\*NAME2 58 40 A  
ADDR1 58 30 A  
ADDR2 88 30 A  
CITY 118 20 A  
STATE 138 2 A  
ZIP 158 5 A  
ZIP-4 163 4 A  
PHONE-AREA 252 3 A  
PHONE-PRE 255 3 A  
PHONE-REST 258 4 A  
\*START-YEAR 189 2 N  
DOLS-MM 268 2 N  
DOLS-YY 274 2 N  
\*TERMS 203 7 A  
COMMENTS 276 2 A  
RHC 168 12 A  
RHC-BYTE-IN1 RHC 1 A INDEX SUB1  
RHC-DOLLARS 168 10 N  
RHC-CENTS 178 2 N  
BALANCE 180 12 A  
BALANCE-NUM 180 12 N 0  
BALANCE-BYTE-IN1 BALANCE 1 A INDEX SUB1  
BALANCE-DOLLARS 180 10 N  
BALANCE-CENTS 190 2 N  
CURRENT 192 12 A  
CURRENT-NUM 192 12 N 0  
CURRENT-BYTE-IN1 CURRENT 1 A INDEX SUB1  
CURRENT-DOLLARS 192 10 N  
CURRENT-CENTS 202 2 N  
01-30 204 12 A  
01-30-BYTE-IN1 01-30 1 A INDEX SUB1  
01-30-DOLLARS 204 10 N  
01-30-CENTS 214 2 N  
31-60 216 12 A  
31-60-BYTE-IN1 31-60 1 A INDEX SUB1  
31-60-DOLLARS 216 10 N  
31-60-CENTS 226 2 N  
61-90 228 12 A  
61-90-BYTE-IN1 61-90 1 A INDEX SUB1  
61-90-DOLLARS 228 10 N  
61-90-CENTS 238 2 N  
OVER-90 240 12 A  
OVER-90-BYTE-IN1 OVER-90 1 A INDEX SUB1  
OVER-90-DOLLARS 240 10 N  
OVER-90-CENTS 250 2 N

```auto

FILE FILEA V(1000) SEQUENTIAL +
SYSNAME 'H:\EZ_Text_Files\999999_Input.txt'
AR-NUM 6 12 A  
NAME 18 40 A
*NAME2 58 40 A
ADDR1 58 30 A
ADDR2 88 30 A
CITY 118 20 A
STATE 138 2 A
ZIP 158 5 A
ZIP-4 163 4 A 
PHONE-AREA 252 3 A
PHONE-PRE 255 3 A
PHONE-REST 258 4 A 
*START-YEAR 189 2 N
DOLS-MM 268 2 N
DOLS-YY 274 2 N 
*TERMS 203 7 A 
COMMENTS 276 2 A 
RHC 168 12 A  
RHC-BYTE-IN1 RHC 1 A INDEX SUB1  
RHC-DOLLARS 168 10 N
RHC-CENTS 178 2 N
BALANCE 180 12 A 
BALANCE-NUM 180 12 N 0 
BALANCE-BYTE-IN1 BALANCE 1 A INDEX SUB1 
BALANCE-DOLLARS 180 10 N
BALANCE-CENTS 190 2 N
CURRENT 192 12 A    
CURRENT-NUM 192 12 N 0
CURRENT-BYTE-IN1 CURRENT 1 A INDEX SUB1     
CURRENT-DOLLARS 192 10 N
CURRENT-CENTS 202 2 N
01-30 204 12 A  
01-30-BYTE-IN1 01-30 1 A INDEX SUB1  
01-30-DOLLARS 204 10 N
01-30-CENTS 214 2 N
31-60 216 12 A 
31-60-BYTE-IN1 31-60 1 A INDEX SUB1    
31-60-DOLLARS 216 10 N
31-60-CENTS 226 2 N
61-90 228 12 A 
61-90-BYTE-IN1 61-90 1 A INDEX SUB1 
61-90-DOLLARS 228 10 N
61-90-CENTS 238 2 N       
OVER-90 240 12 A 
OVER-90-BYTE-IN1 OVER-90 1 A INDEX SUB1 
OVER-90-DOLLARS 240 10 N
OVER-90-CENTS 250 2 N

```

ETA: Apparently not.

.

---

<div class="post-metadata">

**Author:** ![Lance\_Turbo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lance_turbo/32/6156_2.png) [@Lance\_Turbo](https://boards.straightdope.com/u/Lance_Turbo)\
**Post date:** [September 16, 2017, 5:54pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/2 "2017-09-16T17:54:14Z")

</div>

Stuff like this used to work.

```auto

	M	F
D	63	42
R	37	58

```

---

<div class="post-metadata">

**Author:** ![Musicat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/musicat/32/20189_2.png) [@Musicat](https://boards.straightdope.com/u/Musicat)\
**Post date:** [September 16, 2017, 6:06pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/3 "2017-09-16T18:06:24Z")

</div>

> [@Johnny\_L.A](#):
>
> ETA: Apparently not.

In my display, the text inside the code box is aligned with columns, and looks OK, at least at first glance. However, I am using the old vB template (3.7.3). I’ll try the new one and get back to you.

Getting back: No good. The new skin destroys the column alignment and renders your sample code box as a linear string. Baaaad.

So now we have a workaround. Set your display to the old vB template, and enjoy.

---

<div class="post-metadata">

**Author:** ![Johnny\_L.A](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johnny_l.a/32/1084_2.png) [@Johnny\_L.A](https://boards.straightdope.com/u/Johnny_L.A)\
**Post date:** [September 16, 2017, 6:20pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/4 "2017-09-16T18:20:18Z")

</div>

> [@Musicat](#):
>
> So now we have a workaround. Set your display to the old vB template, and enjoy.

That would mean that everyone who read a post would have to change the display.

I don’t knot how to change the display.

---

<div class="post-metadata">

**Author:** ![Musicat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/musicat/32/20189_2.png) [@Musicat](https://boards.straightdope.com/u/Musicat)\
**Post date:** [September 16, 2017, 6:40pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/5 "2017-09-16T18:40:47Z")

</div>

How to change the default display for your account: Scroll down to the untitled dropdown box near the left bottom and select “Straight Dope v3.7.3”. This will return your display to the version used previous to the upgrade until changed again.

Further/alternate instructions are available on the [ATMB sub-forum.](http://boards.straightdope.com/sdmb/showthread.php?t=836331)

This might not be desirable for mobile displays; it’s up to you to choose the best compromise.

---

<div class="post-metadata">

**Author:** ![Johnny\_L.A](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johnny_l.a/32/1084_2.png) [@Johnny\_L.A](https://boards.straightdope.com/u/Johnny_L.A)\
**Post date:** [September 16, 2017, 7:14pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/6 "2017-09-16T19:14:21Z")

</div>

OK, that worked. For me. But anyone reading this thread who wants to see the code-formatted post will need to make the change. I think that the code tags should work in the new version so that people don’t have to do that.

---

<div class="post-metadata">

**Author:** ![Lance\_Turbo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lance_turbo/32/6156_2.png) [@Lance\_Turbo](https://boards.straightdope.com/u/Lance_Turbo)\
**Post date:** [September 16, 2017, 7:55pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/7 "2017-09-16T19:55:08Z")

</div>

Concur with the above.

I post a lot of tables in election threads and I sometimes even post code in math threads.  
[Table](http://boards.straightdope.com/sdmb/showpost.php?p=20152028&postcount=29)

[Python](http://boards.straightdope.com/sdmb/showpost.php?p=19263314&postcount=23)

Those posts are no longer readable. A solution that involves everyone else changing their settings is not a serious solution.

---

<div class="post-metadata">

**Author:** ![Evan\_Drake](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@Evan\_Drake](https://boards.straightdope.com/u/Evan_Drake)\
**Post date:** [September 16, 2017, 8:20pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/8 "2017-09-16T20:20:06Z")

</div>

I’m not sure what you are trying to do here, but here’s a vBulletin list of BB Codes.

> **[vBulletin.org Forum - BB Code List](https://www.vbulletin.org/forum/misc.php?do=bbcode)**
>
> This is a discussion forum powered by vBulletin. To find out about vBulletin, go to http://www.vbulletin.com/ .

I used it yesterday to work out how to display html code on a php board. Actually [img] [/img] around the url worked in the end.

---

<div class="post-metadata">

**Author:** ![Lance\_Turbo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lance_turbo/32/6156_2.png) [@Lance\_Turbo](https://boards.straightdope.com/u/Lance_Turbo)\
**Post date:** [September 16, 2017, 8:47pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/9 "2017-09-16T20:47:08Z")

</div>

We’re trying to do [this](https://www.vbulletin.org/forum/misc.php?do=bbcode#code).

But your link is not a great place to see what that is.

---

<div class="post-metadata">

**Author:** ![Musicat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/musicat/32/20189_2.png) [@Musicat](https://boards.straightdope.com/u/Musicat)\
**Post date:** [September 16, 2017, 9:08pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/10 "2017-09-16T21:08:23Z")

</div>

Looks like the

```auto

 tag isn't fully, or properly, implemented in the latest vB skin/version. Unless you can provide a good reason why not, wouldn't the best solution be to implement it properly?
```

---

<div class="post-metadata">

**Author:** ![Lance\_Turbo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lance_turbo/32/6156_2.png) [@Lance\_Turbo](https://boards.straightdope.com/u/Lance_Turbo)\
**Post date:** [September 16, 2017, 9:18pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/11 "2017-09-16T21:18:15Z")

</div>

> [@Musicat](#):
>
> Looks like the
> 
> ```auto
> 
> tag isn't fully, or properly, implemented in the latest vB skin/version. Unless you can provide a good reason why not, wouldn't the best solution be to implement it properly?
> 
> ```

Who is this question addressed to?

Yes it would be nice if

```auto

 tags worked properly in the new skin. That is pretty much the point of this thread.
```

---

<div class="post-metadata">

**Author:** ![Evan\_Drake](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@Evan\_Drake](https://boards.straightdope.com/u/Evan_Drake)\
**Post date:** [September 16, 2017, 9:18pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/12 "2017-09-16T21:18:56Z")

</div>

> [@Musicat](#):
>
> In my display, the text inside the code box is aligned with columns, and looks OK, at least at first glance. However, I am using the old vB template (3.7.3). I’ll try the new one and get back to you.
> 
> Getting back: No good. The new skin destroys the column alignment and renders your sample code box as a linear string. Baaaad.
> 
> So now we have a workaround. Set your display to the old vB template, and enjoy.

One of the admins could go to _Styles_ & _Templates_ in the admincp, go to this style and play with the variables until right, as in this instruction for changing the width of the code box.  
[http://www.digitalfaq.com/forum/web-tech/3317-widen-code-box.html](http://www.digitalfaq.com/forum/web-tech/3317-widen-code-box.html)  
Tedious, but not that difficult.

---

<div class="post-metadata">

**Author:** ![Musicat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/musicat/32/20189_2.png) [@Musicat](https://boards.straightdope.com/u/Musicat)\
**Post date:** [September 16, 2017, 11:19pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/13 "2017-09-16T23:19:43Z")

</div>

> [@Lance\_Turbo](#):
>
> Who is this question addressed to?

You, if you can fix it. Otherwise, the admins.

> [@](#):
>
> Yes it would be nice if
> 
> ```auto
> 
> tags worked properly in the new skin. That is pretty much the point of this thread.
> 
> ```

When **Johnny L.A.** started this thread, it wasn’t known why his sample text didn’t display properly, or if the vB version made a difference. Now we know it does and why. That’s called _fighting ignorance._

---

<div class="post-metadata">

**Author:** ![Lance\_Turbo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lance_turbo/32/6156_2.png) [@Lance\_Turbo](https://boards.straightdope.com/u/Lance_Turbo)\
**Post date:** [September 16, 2017, 11:55pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/14 "2017-09-16T23:55:31Z")

</div>

It was known. It seems that it just wasn’t known to you.

The reskin screwed up the ‘code’ tag functionality. That’s been a known issue from day one. **Johnny L.A.** posted this thread to check if that issue had been resolved and found that it had been not.

I posted to this thread because while I’m not that prolific a poster I use ‘code’ tags in many of my posts and I this seemed like a way to bring a little extra attention to this issue.

So now not only is there no way to post a formatted table or formatted code, the reskin also screwed up all past posts that used ‘code’ tags. Changing my VB template only changes what I see so is not really a fix since other posters may be using the new template (not to mention lurkers and people who read without logging in).

I obviously would like this issue to be fixed and if I could do it myself I would.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [September 17, 2017, 12:11am UTC](https://boards.straightdope.com/t/testing-code-tags/796468/15 "2017-09-17T00:11:45Z")

</div>

It’s trivial to fix. Just remove any reference to the pre tag in the CSS, or add pre { white-space: pre !important; } anywhere in the stylesheet.

I’ve already told Ed in the “what do you think” thread, but I was told I needed to also present screenshots. Maybe one of you could do that for me?

---

<div class="post-metadata">

**Author:** ![Evan\_Drake](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@Evan\_Drake](https://boards.straightdope.com/u/Evan_Drake)\
**Post date:** [September 17, 2017, 12:39am UTC](https://boards.straightdope.com/t/testing-code-tags/796468/16 "2017-09-17T00:39:06Z")

</div>

I would help if I could, but not having the Sultan Style installed negates any repairing of it. Sorry.

Not that I can see much visual difference between the Default and the Sultan Styles, anyway. No pretty new colours.

---

<div class="post-metadata">

**Author:** ![Irishman](https://avatars.discourse-cdn.com/v4/letter/i/b487fb/32.png) [@Irishman](https://boards.straightdope.com/u/Irishman)\
**Post date:** [September 17, 2017, 4:49pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/17 "2017-09-17T16:49:46Z")

</div>

> [@Evan\_Drake](#):
>
> One of the admins could go to _Styles_ & _Templates_ in the admincp, go to this style and play with the variables until right, as in this instruction for changing the width of the code box.  
> [http://www.digitalfaq.com/forum/web-tech/3317-widen-code-box.html](http://www.digitalfaq.com/forum/web-tech/3317-widen-code-box.html)  
> Tedious, but not that difficult.

That doesn’t seem to be the right issue. That affects the size of the code box. The issue is the lack of retaining spacing and returns in the formatting within the box.

However, I posted the issue to the developer’s site, and he has added a fix.

> [@](#):
>
> You can just re-upload stvb3r.css and replaced it in your forum images/ SultanThemeVB3R/css/stvb3r.css

It now works on their site.

I posted this in Ed’s thread on bugs.

---

<div class="post-metadata">

**Author:** ![Evan\_Drake](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@Evan\_Drake](https://boards.straightdope.com/u/Evan_Drake)\
**Post date:** [September 17, 2017, 9:31pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/18 "2017-09-17T21:31:49Z")

</div>

> [@Irishman](#):
>
> That doesn’t seem to be the right issue. That affects the size of the code box. The issue is the lack of retaining spacing and returns in the formatting within the box.

Indeed — which is why I said ‘_play with the variables until right, **as in** this_ instruction’.  
You can do a lot with Styles.

I added an SSL seal recently, no help from Comodo how to add the html to a vBulletin forum. Just referred me to the same document I was complaining about.

In the end I just shoved it in the footer of each Style. Worked.

> [@](#):
>
> However, I posted the issue to the developer’s site, and he has added a fix.
> 
> It now works on their site.
> 
> I posted this in Ed’s thread on bugs.

Thanks.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [September 18, 2017, 3:14am UTC](https://boards.straightdope.com/t/testing-code-tags/796468/19 "2017-09-18T03:14:44Z")

</div>

And I’ve posted the screenshots Ed asked for, after I started feeling better. So he has the fix and the screenshots to make sure it works. (I have a feeling that his contractor requires screenshots so they know they got it right.)

---

<div class="post-metadata">

**Author:** ![Lance\_Turbo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lance_turbo/32/6156_2.png) [@Lance\_Turbo](https://boards.straightdope.com/u/Lance_Turbo)\
**Post date:** [September 19, 2017, 6:34pm UTC](https://boards.straightdope.com/t/testing-code-tags/796468/20 "2017-09-19T18:34:48Z")

</div>

```auto

#!/usr/bin/env python3

words = ["Still", "Not", "Fixed"]

for word in words:
    print(word)

```

Grrr…

[Next page](https://boards.straightdope.com/t/testing-code-tags/796468.md?page=2)
