Multiline Comments is an actively used design pattern.

?Years Old
  • Multiline Comments ranks in the bottom 50% of entities I track
  • I have 18 facts about Multiline Comments. just email me if you need more.
  • Read more about Multiline Comments

Languages without Multiline Comments include elixir, erlang

Languages with Multiline Comments include dart, haskell, javascript, julia, matlab, python, ruby, sas

Example from dart:

/* a comment
 */

Example from julia:

#=
Comment block
=#

Example from matlab:

%{
Comment block
%}

Example from python:

'''
This is a multiline
comment.
'''

Example from ruby:

=begin
This is a multiline comment and con spwan as many lines as you
like. But =begin and =end should come in the first line only.
=end

Example from sas:

 /* For example 1 use: x=abc;
  for example 2 use: y=ghi; */

Last updated June 22nd, 2019