PLDB
Languages Features Creators Calendar CSV Resources Blog About Donate Add Language
GitHub icon

Comments

< >
/* hello world */ // hi
Example from Python, Julia, Cython:
# This is a comment
Example from HTML:
<!-- Hello World in HTML -->
Example from Perl:
# This is a comment in perl =begin comment This is all part of multiline comment. You can use as many lines as you like These comments will be ignored by the compiler until the next =cut is encountered. =cut
Example from MATLAB:
% This is a comment
Example from C#, Go:
// This is a comment
Example from Fortran:
C C Lines that begin with 'C' (in the first or 'comment' column) are comments C
Example from Ruby:
# This is a single line comment.
-- A comment
# A comment
Example from CSS:
/* This is a single-line comment */ p { color: red; }
Example from Rust:
// https://doc.rust-lang.org/reference/comments.html // a comment
Example from Pascal, ADLIB, Extended Pascal:
{ This is a single line comment in pascal. But needs to be closed. }
; A comment
Example from Haskell:
-- a single line comment {- A multiline comment which can continue for many lines -}
Example from TypeScript, Objective-C, Solidity, Reason, Yacc, Groovy, OpenCL, Pug, ANTLR, CIL, Protocol Buffers, V, BCPL, Hack, FLUX, DOT, idyll, Rust MIR, Fantom, Ballerina, Zephir, Vala, Flow, QML, xBase, Click, Ceylon, Java Bytecode, JSON5, SystemVerilog, SuperCollider, Bison, HCL, POV-Ray SDL, Deno, odin, MiniD, Wren, ATS, Dafny, eC, Alloy, Modelica, PEG.js, halide, Clipper, Objective-J, Bicep, PowerBuilder, Less, AspectJ, XBase++, Croc, mlir, CIL, Cue, Eve, Koka, Argdown, Ron, OpenVera, SIL, BETA, Cg, PAWN, IGOR Pro, Felix, P4, Taichi, JAI, LPC, MQL5, Angelscript, beads-lang, Volt, JADE, Yoix, NetLinx, Concise Encoding, DM, Linden Scripting Language, ShaderLab, FutureBASIC, Mask, Harbour, Whiley, CartoCSS, SugarSS, Game Maker Language, Objective C++, Not Quite C, OX, Slice, mun-lang, SimCode, JSON with Comments, MVEL, SCSS, Script.NET, Cell, Cycript, winxed, Strips, Not eXactly C, Spatial, LoomScript, Flow9, Type Language, Treelang, Operational Control Language, Fable, Cypher Query Language, Maya Embedded Language, Logos, KRL, Q#, NS Basic, tht, dslx, Vale, gentee, Rescript, spiral, Hocon, CIR, flagship, DAX, ddfql, Tuple space, neeilang, hilvl, PowerQuery M, holyc, CFScript, Nymph, Jsonnet, Language Server Index Format, Ligo, Adventure Game Studio Script, dlvm, epsilon, Judoscript, Finite State Language, Soy, HuJSON, silk, owen-lang, verifpal, StruQL, kai, fizz, JSL, OEM, Lite-C, Sophia, Heron, Action Code Script, xxl, Pnuts, ctalk-lang, OptimJ, sora, rbscript, cooC, Static Typescript:
// A comment
Example from Elixir:
# this is a comment
Example from Erlang:
% hello world program
/* A comment */
Example from Dart:
// Hi /* Assume address is not null. */
Example from BASIC:
REM This BASIC program shows the use of the PRINT and GOTO Statements.
Example from OCaml:
(* This is a single-line comment. *) (* This is a * multi-line * comment. *)
Example from XQuery:
(: Hello World with XQuery :)
Example from SPSS:
* A comment where first character must be *.
' A comment
Example from Rexx:
* => 1000000000 */
(* A comment *)
% A comment
Example from HAML:
-# A comment
Example from Object Pascal:
(* This is a multi-line comments and it will span multiple lines. *) { This is a single line comment in pascal }
Example from SNOBOL, Refal, ActiveVFP:
* A comment
Example from Ini:
# a '#' or ';' character indicates ; a comment
Example from Batchfile:
REM A comment
Example from TLA:
\* A comment
Example from C3:
// A comment /* Another comment */
! A comment
Example from Wolfram Language:
(* A comment *)
Example from Twig:
{# A comment #}
Example from HOPE:
--- A comment
Example from Slope:
; I am a comment
Example from Jule:
// A comment /* A comment */
Example from S3:
@ a comment @
Example from groff:
Test \" comment Test Test \# comment Test
Example from Fibonacci:
(* query examples *)
Example from FML:
# This is a line comment ### This is a block comment ###
Example from Quaint:
;; A comment
Example from RELAX NG:
# Comments start with a # and continue to the end of the line:
Example from HAGGIS:
''' A comment '''
Example from Orc:
{- A comment -}
Example from Recfiles:
# Blah blah… # Unlike some file formats, comments in recfiles must be complete lines. You cannot start a comment in the middle of a line.
Example from Mouse:
~ A comment
Example from Z:
-- A simple function, that is used inside the macro below. defun ap x y ++ x y defmacro : input z:string input -- Example with print: print : Hello, World! What's going on in here?
# <This is a comment>
Example from popr:
__ A comment
Example from dedukti:
(; This is a comment ;)
Example from Lexon:
COMMENT A comment

Languages with Comments include Java, JavaScript, C, Python, SQL, HTML, C++, XML, PHP, Perl, MATLAB, C#, Fortran, Ruby, MySQL, R, Go, COBOL, CSS, Scala, Swift, Ada, PostgreSQL, Rust, Kotlin, PowerShell, Pascal, ARM, Haskell, Lua, TypeScript, SAS, Prolog, Bash, Clojure, Objective-C, Mathematica, Elixir, Visual Basic, Erlang, CUDA, Scheme, Julia, Dart, Modula-2, Tcl, VBA, ActionScript, Verilog, Solidity, Reason, BASIC, awk, Delphi, Crystal, CoffeeScript, F#, Maple, OCaml, Elm, Eiffel, YAML, Yacc, Modula-3, Racket, Smalltalk, Groovy, D, Sage, Common Lisp, GraphQL, VHDL, LaTeX, Nginx, APL, OpenCL, Smali, XQuery, SPSS, LLVM IR, Nim, PostScript, Visual Basic .NET, Chapel, Red, Haxe, Pug, Rexx, WebAssembly, LFE, PureBasic, Forth, fish, ANTLR, MIPS architecture, Lasso, VBScript, Oz, CIL, Applescript, Oberon, SVG, Tex, Idris, Protocol Buffers, ABAP, AMPL, Simula, PureScript, Logo, sed, PicoLisp, V, BCPL, PL/SQL, Processing, Dylan, Hack, HAML, REBOL, FLUX, DOT, Nearley, idyll, Rust MIR, MoonScript, Fantom, Squirrel, Terra, Monkey, BlitzBasic, Jison, Agda, EuLisp, ColdFusion, Ballerina, MUMPS, Frege, AutoIt, Emacs Lisp, x86 Assembly, Zig, GNU Octave, Makefile, Lean, TOML, Hy, Nemerle, NewLisp, Zephir, Vala, X10, Icon, Turing, Flow, J, QML, Scilab, Mercury, Io, PL/I, IDL, xBase, Click, Nextflow, PostCSS, Pony, Boo, EDN, QBasic, Ceylon, Java Bytecode, SPARQL, JSON5, Clean, Object Pascal, SystemVerilog, Opa, SuperCollider, CLIPS, Stata, Cython, NetLogo, SNOBOL, Bison, HCL, AGC, Factor, PL/pgSQL, API Blueprint, POV-Ray SDL, Pike, Isabelle, Deno, odin, Ini, Batchfile, TLA, MiniD, Wren, ATS, C3, Dafny, ClojureScript, Csound, S-algol, Perl 6, Lex, eC, B, Xojo, FoxPRO, GW-BASIC, Alloy, Dhall, Embedded Crystal, E, LiveScript, Modelica, AutoHotkey, PEG.js, halide, Clipper, Objective-J, Bicep, ECL, M4, Datalog, wisp, Wolfram Language, Gambas, Befunge, PowerBuilder, UrWeb, Less, Seed7, XS, Twig, GAP, Oberon-2, Classroom Object Oriented Language, Pig Latin, YASnippet, Genie, Maxima, PRQL, Transact-SQL, AspectJ, SETL, XBase++, KaTeX, JFlex, starlark, FreeBASIC, Falcon, Netwide Assembler, Cap'n Proto, Dc, LiveCode, DTrace, unison, Bluespec, PEG, Croc, NSIS, Golo, WxBasic, Ion, True BASIC, JCL, Augmented Backus-Naur Form, Fennel, mlir, Sather, K, CWL, Closure Templates, SourcePawn, CIL, WDL, Cue, datascript, Xtend, Ren'Py, Eve, janet, Ragel, Java Properties, Reia, EBNF, Koka, Argdown, HLSL, Fortress, PARI/GP, Ring, muPad, Ron, Unicon, XSLT, HOPE, High Level Assembly, Gosu, OpenVera, SIL, GLSL, Hjson, Expect, BETA, Action!, PL/M, carp, Mirah, Cg, LilyPond, QB64, progsbase, PAWN, IGOR Pro, UNLAMBDA, Felix, P4, Taichi, Futhark, Slope, JAI, LPC, Euphoria, MQL5, Jule, Guile, Angelscript, Dockerfile, Pizza, beads-lang, mgmt, NCAR Command Language, KiXtart, Volt, LotusScript, Filebench WML, Spin, JADE, Bel, Yoix, ThinBasic, NetLinx, Concise Encoding, blockml, ARexx, CLOS, S3, Cryptol, LookML, Mu, Aldor, OpenSCAD, Apex, Joy, BlitzMax, DM, Logica, Gettext Catalog, Linden Scripting Language, ooc, GDScript, Neko, Eclipse Command Language, Nit, clay, PIC, Tea, Lily, ShaderLab, FutureBASIC, Mask, PowerBASIC, Turbo Basic, ArkScript, Harbour, StarOffice Basic, Whiley, COMPONENT PASCAL, zephyr-asdl, Praat Script, carth, CartoCSS, SugarSS, Ch, Jasmin, RenderScript, Literate Agda, Refal, Observable, Fancy, Game Maker Language, WebIDL, storyscript, Edje Data Collection, Objective C++, Not Quite C, CLIST, omega, OX, Alpine Abuild, Slice, mun-lang, BLISS, SimCode, OpenEdge ABL, Vigil, GCC Machine Description, ActiveVFP, JSON with Comments, Shen, groff, Fibonacci, Brightscript, MVEL, C2, SCSS, Script.NET, Cell, Cycript, Raku, winxed, Caché Basic, Strips, NetRexx, SMT, Ezhil, spry, Pan, Logtalk, Not eXactly C, Mary, Spatial, SRecode Template, Creative Basic, MAXScript, LoomScript, Flow9, Type Language, MOO, Treelang, Arden syntax, dex, Operational Control Language, VHDL-AMS, Fable, Handel-C, Opal, FML, Cypher Query Language, Quaint, Lingo, Maya Embedded Language, Logos, XBLite, ACL2, lispyscript, Gerbil Scheme, HiveQL, Dale, Guix Workflow Language, MACRO-10, basic calculator, KRL, Q#, NS Basic, Plus, Module Management System, turnstile, S-PLUS, tht, monte, dslx, Xbasic, NestedText, Rc, Redcode, OCL, Gentoo Ebuild, Vale, gentee, PROMAL, Rescript, BitBake, neut, spiral, RELAX NG, Grammatical Framework, Parser 3, Hocon, CIR, Parrot BASIC, HAGGIS, Mako, Simple Actor Language System and Architecture, Frink, Gherkin, flagship, JSLT, DAX, Orc, Recfiles, ddfql, Tuple space, neeilang, hilvl, PowerQuery M, Ren, Yet Another Scripting Language, holyc, CFScript, txr, Zimpl, Nymph, Jsonnet, Boron, Mouse, Language Server Index Format, Ligo, NESL, Adventure Game Studio Script, C shell, Charity, Pawn, dlvm, epsilon, GraphQL Schema Definition Language, Z, JS++, manool, Uniform eXchange Format, Judoscript, parasail, Finite State Language, Soy, HuJSON, silk, Augeas, Claro, Fjölnir, z80, owen-lang, verifpal, StruQL, Yedalog, popr, kai, BuddyScript, fizz, JSL, ldpl, pointless, OEM, Project Mentat, Easytrieve, Lite-C, Structured Query Reporter, Caché ObjectScript, Sophia, Manchester syntax, dedukti, tremor-query, Heron, taf, atomese, TAL, Reactive Plan Language, FloScript, Action Code Script, XPL0, ISETL, Boogie, rosette-lang, rbs, xxl, Pnuts, Bla, False, Lexon, Portable Bit Map Format, Urbiscript, blz, ca65 Assembly, ctalk-lang, CLPR, ProbeVue, Plot, Netpbm grayscale image format, wah, Wart, stella, Savi, RLaB, OptimJ, AmbientTalk, Robots.txt, ppm-format, YAMP, Amazon Redshift, USD, wescheme, Rita, lain, luau, bioscript, sora, SubX, Sweet Expressions, PromQL, KonsolScript, boa, Spice, SARL, rbscript, Deesel, SNOBOL4, Smithy, PacmanConf, PkgConfig, BABEL, Lighttpd configuration file, Tick C, cooC, Real-Time Concurrent C, GAEA, ADLIB, bawk, S-Snobol, Static Typescript, Extended Pascal, Modula-2+, PL/I-FORMAC, Progol

Languages without Comments include JSON, Regular Expressions, JSONiq, Superjson, JCOF

Read more about Comments on the web: 1. 2.

HTML of this page generated by Features.ts

hasClobs.html · hasComments.html · hasConditionals.html

View source

PLDB - Build the next great programming language · Search · v2023 · Day 157 · Docs · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com