Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Swift 2.0 Basics Swift Operators Arithmetic Operators

Will Feldman
Will Feldman
3,121 Points

What do the "new playground" comments mean?

I see when you make a new playground page you are keeping the comments,

//: [Previous](@previous)

and

//: [Next](@next)

Are these important and what do they mean/do?

1 Answer

Sebastian Nitu
Sebastian Nitu
8,616 Points

Hi Will!

Sorry for the delayed response, I just saw your question!

In a nutshell, that syntax over there is called "Markup" and it is used in order to let Xcode "know" that you have multiple pages of the Playground thus helping in generating navigation buttons and some other cool stuff.

As a sidenote, Markup languages are usually used by Technical Writers in order to quickly write documentation in different environments such as Wiki (like Twiki).

You can learn more about the new Xcode Markup features here: https://developer.apple.com/library/ios/documentation/Xcode/Reference/xcode_markup_formatting_ref/index.html#//apple_ref/doc/uid/TP40016497