I'm reading The Swift Programming Language by Apple, which contains lots of code examples I want to copy into Xcode for experimentation. Every time I paste, I have to remove the citation and quotes it adds in, which is cumbersome. Is there a way to get around this?
Example:
Example:
Code:
[COLOR="Red"]"[/COLOR]struct Card {
var rank: Rank
var suit: Suit
func simpleDescription() -> String {
return "The \(rank.simpleDescription()) of \(suit.simpleDescription())"
}
}
let threeOfSpades = Card(rank: .Three, suit: .Spades)
let threeOfSpadesDescription = threeOfSpades.simpleDescription()[COLOR="red"]”
Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks. https://itun.es/us/jEUH0.l[/COLOR]
Last edited: