SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Addict
    Join Date
    Apr 2009
    Posts
    356
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    User colors in code blocks possible?

    Is there a way to adjust the colors for php code blocks by user? The default reds & oranges makes the code in this topic pretty hard for me to read. I looked around in my sitepoint settings but didn't see anything about color settings.

    http://www.sitepoint.com/forums/show...e-Error-in-PHP
    Doug G
    =====
    "If you ain't the lead dog, the view is always the same - Anon

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    7 Thread(s)
    You could just use normal code tags. That way, you can color the code any way you like.

  3. #3
    Mouse catcher silver trophy
    Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,830
    Mentioned
    111 Post(s)
    Tagged
    1 Thread(s)
    If you use a browser that supports user stylesheets, you could include this code
    Code:
    .bbcode_code span[style="color:#ff8000;"] {color:#123456 !important;}
    .bbcode_code span[style="color:#dd0000;"] {color:#abcdef !important;}
    Where #123456 is the hex code you want it to use instead of orange, and #abcdef is the hex code you want it to use instead of red.

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    7 Thread(s)
    Thanks Stevie. I misunderstood the question.

  5. #5
    SitePoint Addict
    Join Date
    Apr 2009
    Posts
    356
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I meant the colors on these forums at sitepoint. I can't use normal code tags, I didn't make the post in question, and if I can add css to a page I'm viewing I don't know how. I found it difficult to read the post I quoted above on my display (a dell flatscreen) because of the reds & oranges.
    Doug G
    =====
    "If you ain't the lead dog, the view is always the same - Anon

  6. #6
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,455
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    Some browsers such as Firefox and Opera, let you use a custom CSS file that can override a site's CSS.

    What browser(s) do you use here?

  7. #7
    SitePoint Addict
    Join Date
    Apr 2009
    Posts
    356
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    What browser(s) do you use here?
    I'm using firefox at the moment, I wasn't aware you could override .css in the browser. I'll spend some time with google. Thanks for the tip.
    Doug G
    =====
    "If you ain't the lead dog, the view is always the same - Anon

  8. #8
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    7 Thread(s)
    I love user style sheets. This forum looks quite different to me thanks to one of those. This might help:

    http://en.wikibooks.org/wiki/Cascadi...r_Style_Sheets

    It has a link to more Firefox instructions. FF is easy to set up.

  9. #9
    SitePoint Addict
    Join Date
    Apr 2009
    Posts
    356
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    I love user style sheets. This forum looks quite different to me thanks to one of those. This might help:

    http://en.wikibooks.org/wiki/Cascadi...r_Style_Sheets

    It has a link to more Firefox instructions. FF is easy to set up.
    Thank you.
    Doug G
    =====
    "If you ain't the lead dog, the view is always the same - Anon


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
  •