Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Code Tags

  1. #1
    Join Date
    Oct 2006
    Beans
    152
    Distro
    Ubuntu 6.10 Edgy

    Exclamation Code Tags

    Hi,

    are there any chances for better "Code Tags"?

    I mean the font in the real [CODE]-Tags sucks.

    HTML-Code-Tags oder the PHP-Code-Tags have a much better Font.

    [code]-Tags are no use for example when publishing Shell output.

    And on the other hand it's stupid when I wrap my Pyhton-Program in PHP-Code-Tags.

    Here a quick comparisation:

    Code:
    The original CODE-Tags, which suck
    HTML Code:
    The HTML-Code-Tags which are all right.
    PHP Code:
    The PHP-Code-Tags which are superfluous 
    Regards
    Last edited by gummibaerchen; January 21st, 2007 at 04:50 PM. Reason: Wrapping Problem in vBB
    Edgy Eft Packages: Glade-3 3.1.4, Geany 0.10, Banshee 0.11.3, Inkscape 0.45, [] Geom - interactive geometry []
    Any questions? Send me a PM, as I don't subscribe to every thread.
    Mark Shuttleworth...

  2. #2
    Join Date
    Sep 2006
    Beans
    Hidden!

    Re: Code Tags

    gummibaerchen,

    I've raised this issue before, as well as another member, but the problem still hasn't been fixed. I have been using a combination of [code] and [font="Courier New"] tags, but it is kind of annoying to have to resort to this combination, considering I use this/these tags a lot.

  3. #3
    Join Date
    Apr 2006
    Location
    Seattle
    Beans
    2,893
    Distro
    Ubuntu Development Release

    Re: Code Tags

    Add my vote for better stylizing of CODE tags. The variable fonts in the tags tend to get annoying with code.

  4. #4
    Join Date
    Apr 2005
    Location
    Parts Unknown
    Beans
    9,213
    Distro
    Ubuntu Development Release

    Re: Code Tags

    Doing this would involve more than just changing an admin setting. As far as I can tell it would require a bit of hacking at a deeper level. At best it could make it on to an already long list of "if I ever have some free time" projects ubuntu-geek would like to do. More likely I should just say, "We hear what you're saying. Sorry, it's not something we can change at the moment."
    what's a troll? | my blog | my writing | Ubuntu Unleashed

    Don't ask support questions in PMs--post a thread so everyone can benefit!

  5. #5
    Join Date
    Apr 2006
    Location
    Seattle
    Beans
    2,893
    Distro
    Ubuntu Development Release

    Re: Code Tags

    I'm bored , so I managed to find the right style to change in case there ever is time to do it. I found this about halfway down vB's generated CSS file, however it is probably in a different file than that knowing the way it handles CSS.

    Quick font patch:
    Code:
    .ubuntu_codebackground
    {
    	font-weight: normal;
    	font: monospace, Verdana, Sans-Serif;
    	background: #F8F8F3;
    	border-right: 1px solid #ddddc5;
    	border-top: 1px solid #ddddc5;
    	border-left: 6px solid #ddddc5;
    	border-bottom: 1px solid #ddddc5;
    }
    (I love the web developer Firefox extension)

    Jacob

  6. #6
    Join Date
    Oct 2004
    Location
    USA
    Beans
    3,774

    Re: Code Tags

    It'll be fixed in the next update which will happen sometime in the next month.
    My Blog | Forum Search | Forum Guidelines
    Please don't PM support questions--post a thread so everyone can benefit!

  7. #7
    Join Date
    May 2006
    Location
    Virginia, USA
    Beans
    1,144

    Re: Code Tags

    No, the code tags actually look better.

  8. #8
    Join Date
    Dec 2006
    Location
    Hungary, Bp
    Beans
    150
    Distro
    Ubuntu 6.06 Dapper

    Re: Code Tags

    Actually I don't even understand the problem... You have problem with the fontstyle? If that's the issue, I do't see much difference, so why bother?
    One ring to rule them all, one ring to find them;
    One ring to bring them all, and in the darkness bind them.

  9. #9
    Join Date
    Sep 2006
    Beans
    Hidden!

    Re: Code Tags

    matthew/ubuntu-geek,

    I hope my tone didn't come off as being accusative ("They know, they just don't fix it."), I was just pointing out that they do know, but here's a work-around. Entering the [code][font="blar"] tags is pretty much automatic on my part now when posting code. When it is indeed fixed, I'm sure I'll redundantly add the [font] tags just out of habit for a while.


    dorcssa,

    If you notice from the first post, the text between [code] tags are rendered in a sans-serif font, not really optimal when viewing "code" (can mean a few things, namely code and terminal output). A mono-spaced font would be much better. The [html] and [php] tags render their text as mono-spaced, which is expected behavior, and wanted for the vanilla [code] tags as well.

  10. #10
    Join Date
    Oct 2006
    Beans
    152
    Distro
    Ubuntu 6.10 Edgy

    Re: Code Tags

    But why is there a special "PHP"-Tag anyway? I noticed that in many BB-softwares.

    I mean syntaxhighlighting would be the the greatest, but why only PHP?

    At least I would expect C, C++ and Python highlightings in an Ubuntuforum.
    Edgy Eft Packages: Glade-3 3.1.4, Geany 0.10, Banshee 0.11.3, Inkscape 0.45, [] Geom - interactive geometry []
    Any questions? Send me a PM, as I don't subscribe to every thread.
    Mark Shuttleworth...

Page 1 of 2 12 LastLast

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
  •