Comments

From SwiftAPI

Jump to: navigation, search

Contents

C/C++

Single-line Comments

// This is a single line comment

Multi-line Comments

/*
This is a 
multi-line comment
*/

Java

Single-line Comments

// This is a single line comment

Multi-line Comments

/*
This is a 
multi-line comment
*/

PHP

php.net

Single-line Comments

// This is a single line comment
 
# This is a single line comment

Multi-line Comments

/*
This is a 
multi-line comment
*/

Perl

Single-line Comments

# This is a single line comment

Multi-line Comments

# This is a 
# multi-line comment

Python

Single-line Comments

# This is a single line comment

Multi-line Comments

"""
This is a 
multi-line comment
"""

Ruby

Single-line Comments

# This is a single line comment

Multi-line Comments

=begin
This is a 
multi-line comment
=end

Swift

Single-line Comments

// This is a single line comment

Multi-line Comments

/*
This is a 
multi-line comment
*/
Personal tools