Small improvement to [CODE] tag

Alec_t

Joined Sep 17, 2013
14,313
Testing, testing ....
C:
    func convertP(P: Double, units: String)  -> Double {
        if units == "psi" {
            let P = P*51.71492410243892
            return P
        }
        else if units == "atm"  {
            let P = P*760.0
            return P
        return P
    }
Still not working for me :(.
 
Last edited by a moderator:

wayneh

Joined Sep 9, 2010
17,498
Just verifying, with "code=objective-c":

Code:
func convertP(P: Double, units: String)  -> Double {
        if units == "psi" {
            let P = P*51.71492410243892
            return P
        }
        else if units == "atm"  {
            let P = P*760.0
            return P
        return P
    }
Looks like it works! Cool. Note that technically this is Swift 2.0 code, a descendant of Objective-C.
 

NorthGuy

Joined Jun 28, 2014
611
Is there any way to make the gray text inside code tags less pale and more contrasty. It is gray on gray background. Almost impossible to read as is. Not to mention line numbers, which are practically invisible. Here's how I see it:

pale.JPG
 

strantor

Joined Oct 3, 2010
6,798
Is there any way to make the gray text inside code tags less pale and more contrasty. It is gray on gray background. Almost impossible to read as is. Not to mention line numbers, which are practically invisible. Here's how I see it:

View attachment 88386
I'm not sure if it's been fixed, or if it's a browser or website setting. Here's how it looks for me:
objc.png
Does it look like my pic now for you? Or does it still look like your pic?

I'm using the old blue theme. Are you using the new orange theme?
 

strantor

Joined Oct 3, 2010
6,798
I use "blue" theme. It looks good now - like on your picture. Thank you for fixing it!
I surely didn't fix it, but I'll echo you: Thank you (to whoever fixed it). I was just trying to figure out whether someone else had in fact fixed it, or if I had some different settings than you.
 
Top