Results 1 to 14 of 14

Thread: CODE tags

  1. #1
    Toymods Pimp Chief Engine Builder Norbie's Avatar
    Join Date
    Aug 2005
    Location
    QLD
    Posts
    3,806

    Default CODE tags

    Code:
    This font should be fixed width!
    So yeah, half the point of the CODE tags is to have a fixed width font, but it ain't. Can someone look into this?

    It's making it hard to show off my mad SQL skillz.

  2. #2
    Founding ****** Automotive Encyclopaedia Mos's Avatar
    Join Date
    Jul 2005
    Location
    NSW
    Posts
    1,157

    Default Re: CODE tags

    Can't you do this?
    Code:
    Fixed width font
    Can show off your skills as you please
    Admin, I.T., Founding Member, Toymods Car Club Inc.
    2000 IS200 Sports Luxury 1UZ-FE VVTi, 1991 MX83 Grande 2JZ-GTE (sold)

  3. #3
    Is a Chief Engine Builder wilbo666's Avatar
    Join Date
    Sep 2005
    Location
    QLD
    Posts
    3,468

    Default Re: CODE tags

    You mean like so Mos?

    Code:
    
    12345678
    1  4   8
    
    Norbie is lame and without skillz? :P
    

    Change the font to Courier new or something that is fixed width dude

    Cheers
    Wilbo
    Last edited by wilbo666; 07-06-2008 at 09:57 PM.

  4. #4
    Junior Member Too Much Toyota
    Join Date
    Sep 2005
    Location
    Qld
    Posts
    5,590

    Default Re: CODE tags

    courier, courier-new (or Monaco on a Mac) are fixed-width fonts - arial is a proportionally-spaced font
    ------------------------------
    ST185 road barge / MZ11 forest barge / RA65 garage barge

  5. #5
    Is a Chief Engine Builder wilbo666's Avatar
    Join Date
    Sep 2005
    Location
    QLD
    Posts
    3,468

    Default Re: CODE tags

    Indeed,

    Don't use arial I stuffed up with my spaces and arial happend to work (when I first tried courier new thinking it should and it didn't...my memory is crap and I can never remember which fonts are fixed width ), doh! Idiot I am

    Cheers
    Wilbo

  6. #6
    30DET... The only way. Carport Converter Kyosho's Avatar
    Join Date
    Dec 2005
    Location
    NSW
    Posts
    1,925

    Default Re: CODE tags

    Quote Originally Posted by wilbo666
    You mean like so Mos?

    Code:
    
    12345678
    1  4   8
    
    Norbie is lame and without skillz? :P
    Change the font to Courier new or something that is fixed width dude

    Cheers
    Wilbo
    That isn't fixed width. If it was, your 8 wouldn't appear under neath the 5 AND the 6, it would be directly under one, or the other.
    My Dead Supra...
    Quote Originally Posted by ReQuieM in the A70 Thread
    There is some serious talent in this thread for linking anything to fuckin gay sex. Its extraordinary.

  7. #7
    Founding ****** Automotive Encyclopaedia Mos's Avatar
    Join Date
    Jul 2005
    Location
    NSW
    Posts
    1,157

    Default Re: CODE tags

    Quote Originally Posted by Kyosho
    That isn't fixed width. If it was, your 8 wouldn't appear under neath the 5 AND the 6, it would be directly under one, or the other.
    Huh? Not sure what you're reading, or what wilbo edited, but they're fixed width now, and were the first time I read the post yesterday too....
    Admin, I.T., Founding Member, Toymods Car Club Inc.
    2000 IS200 Sports Luxury 1UZ-FE VVTi, 1991 MX83 Grande 2JZ-GTE (sold)

  8. #8
    Toymods Pimp Chief Engine Builder Norbie's Avatar
    Join Date
    Aug 2005
    Location
    QLD
    Posts
    3,806

    Default Re: CODE tags

    I'm aware you can change the font, but my point remains: the CODE tag should automatically use a fixed-width font, otherwise what's the point of having it at all?

  9. #9
    Is a Chief Engine Builder wilbo666's Avatar
    Join Date
    Sep 2005
    Location
    QLD
    Posts
    3,468

    Default Re: CODE tags

    Quote Originally Posted by Kyosho
    That isn't fixed width. If it was, your 8 wouldn't appear under neath the 5 AND the 6, it would be directly under one, or the other.

    Have a look at what happens if you try and do what I did without the code tags

    The forum software will automatically remove multiple adjacent 'spaces'...

    I.e. on the second line, 2, 3, 5, 6, 7 are spaces...

    12345678
    1 4 8


    Code:
    12345678
    1  4   8
    See how multiple spaces get removed by the forum software when the code tags aren't used?


    I do agree with norbie tho, can we make the default font for code tags fixed width? This is such a software based forum so I can see it being important

    Cheers
    Wilbo

  10. #10
    Founding ****** Automotive Encyclopaedia Mos's Avatar
    Join Date
    Jul 2005
    Location
    NSW
    Posts
    1,157

    Default Re: CODE tags

    Quote Originally Posted by Norbie
    I'm aware you can change the font, but my point remains: the CODE tag should automatically use a fixed-width font, otherwise what's the point of having it at all?
    It preserves formatting as well.

    Quote Originally Posted by wilbo666
    I do agree with norbie tho, can we make the default font for code tags fixed width? This is such a software based forum so I can see it being important
    I had a look at it for an hour yesterday. I don't know if it's the templates or something else. I don't have time to look into it any further. Given there is a workaround, it's not high on any priority list.

    Mos.
    Admin, I.T., Founding Member, Toymods Car Club Inc.
    2000 IS200 Sports Luxury 1UZ-FE VVTi, 1991 MX83 Grande 2JZ-GTE (sold)

  11. #11
    Junior Member Too Much Toyota
    Join Date
    Sep 2005
    Location
    Qld
    Posts
    5,590

    Default Re: CODE tags

    problem is also at the client end - many OS's include a version of Courier that include kerning information, proportional spacing, hinting ,etc.

    So despite the web server's and browsers' best intentions of using a fixed with font, the OS supplies them with font resource that include proportional spacing and pair-kerning.

    Unless the display environment (the browser) ignores that information, selecting a fixed width font via a CSS may result in extra font data being used.
    ------------------------------
    ST185 road barge / MZ11 forest barge / RA65 garage barge

  12. #12
    30DET... The only way. Carport Converter Kyosho's Avatar
    Join Date
    Dec 2005
    Location
    NSW
    Posts
    1,925

    Default Re: CODE tags

    Is what I see...

    And I assume this is incorrect from what you're saying...

    What I saw the other day was different as well... The numbers on the second line were halfway between 2 numbers above...

    This is using Ubuntu 8.04 with Firefox 3 BTW
    My Dead Supra...
    Quote Originally Posted by ReQuieM in the A70 Thread
    There is some serious talent in this thread for linking anything to fuckin gay sex. Its extraordinary.

  13. #13
    Aerial Superpony Domestic Engineer SeptemberSquall's Avatar
    Join Date
    Sep 2005
    Location
    Victoria
    Posts
    730

    Default Re: CODE tags

    test 1234567890
    i pulled three hundred rocks from the land to build my house
    i walked quiet through the forest like a tiny quiet forest mouse

    the oceans will rise
    please stand by the shore

  14. #14
    Toymods V8 Member Too Much Toyota CrUZida's Avatar
    Join Date
    Aug 2005
    Location
    WA
    Posts
    8,214

    Default Re: CODE tags

    Quote Originally Posted by Kyosho
    Is what I see...

    And I assume this is incorrect from what you're saying...

    What I saw the other day was different as well... The numbers on the second line were halfway between 2 numbers above...

    This is using Ubuntu 8.04 with Firefox 3 BTW
    This is what you should be seeing.
    Last edited by CrUZida; 09-08-2010 at 04:32 PM.
    Peewee
    1985 MZ12 Soarer - 1UZ Powered
    2013 86 GTS

Similar Threads

  1. Error code - "Load signal circuit" help needed (4Y-E)
    By Hen in forum Tech and Conversions
    Replies: 10
    Last Post: 10-02-2008, 02:23 AM
  2. code 13 and 34, how do i fix
    By Mr DOHC in forum Tech and Conversions
    Replies: 11
    Last Post: 13-07-2007, 01:55 PM
  3. Trouble matching paint Code. 1973 RT104
    By RT104GT in forum Tech and Conversions
    Replies: 9
    Last Post: 16-08-2006, 01:55 PM
  4. engine diagnostics code????????
    By pinkky in forum Tech and Conversions
    Replies: 13
    Last Post: 12-06-2006, 12:47 PM
  5. 1995 Celica radio code
    By splatt in forum Tech and Conversions
    Replies: 15
    Last Post: 16-05-2006, 07:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •