Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > Feedback > The code tag is broken again

The code tag is broken again
Thread Tools
CharlesS
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Oct 31, 2007, 07:03 PM
 
Code:
nuff said.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
shifuimam
Addicted to MacNN
Join Date: Aug 2006
Location: The deep backwoods of the PNW
Status: Offline
Reply With Quote
Oct 31, 2007, 11:31 PM
 
Did the CODE tag ever work?

I've only ever been able to get CODEX to work since I joined 'NN last year.
Sell or send me your vintage Mac things if you don't want them.
     
Mastrap
Addicted to MacNN
Join Date: Sep 2001
Location: Toronto
Status: Offline
Reply With Quote
Nov 1, 2007, 08:49 AM
 
I also don't think [code] ever worked here.

[CODEX]CODEX however does[/CODEX]
     
Mastrap
Addicted to MacNN
Join Date: Sep 2001
Location: Toronto
Status: Offline
Reply With Quote
Nov 1, 2007, 08:50 AM
 
dp, sorry
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Nov 1, 2007, 11:04 AM
 
Originally Posted by Mastrap View Post
I also don't think [code] ever worked here.

[CODEX]CODEX however does[/CODEX]
CODE worked just fine before the redesign, and I thought it was working at some point afterwards, though I can't say I'm sure.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Nov 1, 2007, 11:53 AM
 
It was working until a week or two ago.

What is with all of this bug regression MacNN admins? The image resize bug is another example....

I suggest commenting your vBulletin code patches with something like (sorry I can't wrap this with code tags):

// macnn <username> <date>
// patch description
code
// end <username> macnn

put your code into SVN branches, test each branch in a development environment. Grep for "macnn" in your existing code base when it comes time to upgrading and apply each patch by hand, and don't put the new version into production until all patches are accounted for and working.

Just my two cents...
     
Demonhood
Administrator
Join Date: Mar 2000
Location: Land of the Easily Amused
Status: Offline
Reply With Quote
Nov 1, 2007, 01:59 PM
 
when someone applied the latest VB update, they broke a few things (the code tag, the js resizer, etc.).
oops.
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Nov 1, 2007, 02:06 PM
 
Is there a sense of urgency in applying some of these vB updates in order to stay ahead of security issues?
     
C.A.T.S. CEO
Professional Poster
Join Date: Nov 2004
Location: eating kernel
Status: Offline
Reply With Quote
Nov 1, 2007, 02:40 PM
 
Originally Posted by Demonhood View Post
when someone applied the latest VB update, they broke a few things (the code tag, the js resizer, etc.).
oops.
You guys really need a test server, what happened to the one you were using with effegee?
Signature depreciated.
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Nov 1, 2007, 02:49 PM
 
I didn't think effgee had a test server, and that's why all the CODEX tags and such wound up going live.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Nov 1, 2007, 02:58 PM
 
You don't even need a test server to sort these out, all you need is a test account/install in a separate directory on your production server, and a subversion repository to manage your code base.

However, a test server would be a good in case you accidentally bring the server to its knees with an infinite loop or something, although it could just be a virtual machine.
     
reader50
Administrator
Join Date: Jun 2000
Location: California
Status: Offline
Reply With Quote
Nov 1, 2007, 03:03 PM
 
Another vote for fixing the CODE tag.
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Nov 2, 2007, 05:20 AM
 
Here's another one.
     
C.A.T.S. CEO
Professional Poster
Join Date: Nov 2004
Location: eating kernel
Status: Offline
Reply With Quote
Nov 2, 2007, 07:25 AM
 
Third'd.
Signature depreciated.
     
Oisín
Moderator Emeritus
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Nov 2, 2007, 09:14 AM
 
And don’t forget the nice PHP tag
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Mar 24, 2008, 03:48 PM
 
BUMP.

Can we get it back, pleeeeeeaaaase ?

-t
     
brassplayersrock²
Addicted to MacNN
Join Date: Mar 2006
Location: California
Status: Offline
Reply With Quote
Mar 25, 2008, 03:18 AM
 
yeah, seriously. it'll be useful to have it again.
     
ghporter
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Mar 27, 2008, 08:59 AM
 
Is the "CODEX" tag not good enough as a workaround? It IS a pain to not be able to use some sort of "code" tag, but I've made do with other tags as needed. I do not think that we have yet tracked down WHY the built in tag no longer works. As to whether or not there's an urgency in applying updates, most of the updates I've looked at were security or usability fixes, not just "here's a cool new feature that three people in the whole world will ever use" things.

Glenn -----OTR/L, MOT, Tx
     
MarkLT1
Mac Enthusiast
Join Date: Nov 2002
Location: More Cowbell...
Status: Offline
Reply With Quote
Mar 27, 2008, 09:59 AM
 
Originally Posted by ghporter View Post
Is the "CODEX" tag not good enough as a workaround? It IS a pain to not be able to use some sort of "code" tag, but I've made do with other tags as needed. I do not think that we have yet tracked down WHY the built in tag no longer works. As to whether or not there's an urgency in applying updates, most of the updates I've looked at were security or usability fixes, not just "here's a cool new feature that three people in the whole world will ever use" things.
I'm not sure how the original [code] tag worked, but CODEX does not provide for whitespace at the beginning of a line. i.e.- here is some spaced/indented code:
[codex]
int main() {
for(int i=0; i<10; i++) {
cout << i << endl;
}
}
[/codex]

now replace the white space at the beginning of the lines, with the - character, and you get what you are supposed to see:

[codex]
int main() {
----for(int i=0; i<10; i++) {
--------cout << i << endl;
----}
}
[/codex]

The second version of the code is much more easily readable.. the first version had the proper whitespace, but the CODEX tag does not replace whitespace with something like an &nbsp; to preserve whitespace at the beginning of a line.

For an example of how unreadable code can be with this codex tag, just take a look at the code I posted in the "accelerate framework" question in the developers forum. Without whitespace, it becomes quite unreadable.
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Mar 27, 2008, 11:16 AM
 
As a workaround, you can use a hard space (ALT + 255).

1
      2
            3
4

-t
     
Oisín
Moderator Emeritus
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Mar 27, 2008, 12:10 PM
 
Alt + 255?

You need to quit that job of yours, turtle. Windows is getting to you.

(Using the Danish keyboard layout in OS X, Alt + Space gives a hard space; not sure if it’s the same on an American layout, and I’m too lazy to check)
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Mar 27, 2008, 12:13 PM
 
Originally Posted by Oisín View Post
Alt + 255?

You need to quit that job of yours, turtle. Windows is getting to you.
Haha, LOL, you are right.

I'm at work, and unfortunately, stuck with Windows.

I have no freaking idea how to do that on OS X, to be honest.

-t
     
brassplayersrock²
Addicted to MacNN
Join Date: Mar 2006
Location: California
Status: Offline
Reply With Quote
Mar 27, 2008, 04:24 PM
 
someone's not paying attention
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Mar 28, 2008, 01:09 PM
 
Originally Posted by brassplayersrock² View Post
someone's not paying attention
Oh, yeah, sorry for that. I just looked at my DANISH keyboard.
Since I was hungry, I just eated it, even before I could notice the hard spaces.

-t
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 09:59 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,